1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-10-29 18:07:27 +01:00

ensure disconnect / remove self.class from register_options

This commit is contained in:
nixawk 2016-01-06 00:54:54 +08:00
parent 20cd156047
commit 9714923824

View File

@ -22,7 +22,7 @@ class Metasploit3 < Msf::Auxiliary
'Author' => [ 'iallison <ian[at]team-allison.com>', '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