From 971492382496f7c1513abd1d5ffbe3fa3f45fd6e Mon Sep 17 00:00:00 2001 From: nixawk Date: Wed, 6 Jan 2016 00:54:54 +0800 Subject: [PATCH] ensure disconnect / remove self.class from register_options --- modules/auxiliary/scanner/redis/redis_server.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/auxiliary/scanner/redis/redis_server.rb b/modules/auxiliary/scanner/redis/redis_server.rb index d47cfea679..6193ff75e9 100644 --- a/modules/auxiliary/scanner/redis/redis_server.rb +++ b/modules/auxiliary/scanner/redis/redis_server.rb @@ -22,7 +22,7 @@ class Metasploit3 < Msf::Auxiliary 'Author' => [ 'iallison ', 'Nixawk' ], 'License' => MSF_LICENSE)) - register_options([Opt::RPORT(6379)], self.class) + register_options([Opt::RPORT(6379)]) deregister_options('RHOST') end @@ -38,6 +38,7 @@ class Metasploit3 < Msf::Auxiliary :info => data) rescue ::Exception => e print_error("Unable to connect: #{e}") + ensure disconnect end end