Skip to content

Commit f1bf607

Browse files
committed
Minor Ruby style cleanup
1 parent ef89a3d commit f1bf607

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

modules/auxiliary/gather/memcached_extractor.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ class Metasploit3 < Msf::Auxiliary
1111
include Msf::Auxiliary::Report
1212

1313
def initialize(info = {})
14-
super(update_info(info,
14+
super(update_info(
15+
info,
1516
'Name' => 'Memcached Extractor',
1617
'Description' => %q(
1718
This module extracts the slabs from a memcached instance. It then
@@ -33,7 +34,7 @@ def initialize(info = {})
3334

3435
register_advanced_options(
3536
[
36-
OptInt.new('MAXKEYS', [ true, 'Maximum number of keys to be pulled from a slab', 100] )
37+
OptInt.new('MAXKEYS', [true, 'Maximum number of keys to be pulled from a slab', 100])
3738
], self.class
3839
)
3940
end
@@ -104,7 +105,7 @@ def run_host(ip)
104105
vprint_status("#{peer} - Connecting to memcached server...")
105106
begin
106107
connect
107-
if version = determine_version
108+
if (version = determine_version)
108109
vprint_good("#{peer} - Connected to memcached version #{version}")
109110
report_service(
110111
host: ip,

0 commit comments

Comments
 (0)