Merge results initialization fix
parent
ec5fd723ba
commit
0b8987f2af
|
@ -66,7 +66,7 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
|
|
||||||
# Fingerprint a single host
|
# Fingerprint a single host
|
||||||
def run_host(ip)
|
def run_host(ip)
|
||||||
|
@results = {}
|
||||||
@thost = ip
|
@thost = ip
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
@ -140,8 +140,6 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
# The response parsers
|
# The response parsers
|
||||||
#
|
#
|
||||||
def parse_reply(pkt)
|
def parse_reply(pkt)
|
||||||
|
|
||||||
@results ||= {}
|
|
||||||
|
|
||||||
# Ignore "empty" packets
|
# Ignore "empty" packets
|
||||||
return if not pkt[1]
|
return if not pkt[1]
|
||||||
|
|
|
@ -73,6 +73,8 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
|
|
||||||
# Fingerprint a single host
|
# Fingerprint a single host
|
||||||
def run_batch(batch)
|
def run_batch(batch)
|
||||||
|
@results = {}
|
||||||
|
|
||||||
print_status("Sending #{@probes.length} probes to #{batch[0]}->#{batch[-1]} (#{batch.length} hosts)")
|
print_status("Sending #{@probes.length} probes to #{batch[0]}->#{batch[-1]} (#{batch.length} hosts)")
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
@ -171,7 +173,6 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
# The response parsers
|
# The response parsers
|
||||||
#
|
#
|
||||||
def parse_reply(pkt)
|
def parse_reply(pkt)
|
||||||
@results ||= {}
|
|
||||||
|
|
||||||
# Ignore "empty" packets
|
# Ignore "empty" packets
|
||||||
return if not pkt[1]
|
return if not pkt[1]
|
||||||
|
|
Loading…
Reference in New Issue