Minor Ruby style cleanup
parent
ef89a3d323
commit
f1bf607386
|
@ -11,7 +11,8 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
include Msf::Auxiliary::Report
|
include Msf::Auxiliary::Report
|
||||||
|
|
||||||
def initialize(info = {})
|
def initialize(info = {})
|
||||||
super(update_info(info,
|
super(update_info(
|
||||||
|
info,
|
||||||
'Name' => 'Memcached Extractor',
|
'Name' => 'Memcached Extractor',
|
||||||
'Description' => %q(
|
'Description' => %q(
|
||||||
This module extracts the slabs from a memcached instance. It then
|
This module extracts the slabs from a memcached instance. It then
|
||||||
|
@ -33,7 +34,7 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
|
|
||||||
register_advanced_options(
|
register_advanced_options(
|
||||||
[
|
[
|
||||||
OptInt.new('MAXKEYS', [ true, 'Maximum number of keys to be pulled from a slab', 100] )
|
OptInt.new('MAXKEYS', [true, 'Maximum number of keys to be pulled from a slab', 100])
|
||||||
], self.class
|
], self.class
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
@ -104,7 +105,7 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
vprint_status("#{peer} - Connecting to memcached server...")
|
vprint_status("#{peer} - Connecting to memcached server...")
|
||||||
begin
|
begin
|
||||||
connect
|
connect
|
||||||
if version = determine_version
|
if (version = determine_version)
|
||||||
vprint_good("#{peer} - Connected to memcached version #{version}")
|
vprint_good("#{peer} - Connected to memcached version #{version}")
|
||||||
report_service(
|
report_service(
|
||||||
host: ip,
|
host: ip,
|
||||||
|
|
Loading…
Reference in New Issue