Skip to content

Commit 259a368

Browse files
committed
Land rapid7#3841, @jabra-'s modifications to ssdp_amp to support spoofing
2 parents fc4c190 + b7a0847 commit 259a368

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

modules/auxiliary/scanner/upnp/ssdp_amp.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
class Metasploit3 < Msf::Auxiliary
99
include Msf::Auxiliary::Report
10+
include Msf::Exploit::Capture
1011
include Msf::Auxiliary::UDPScanner
1112
include Msf::Auxiliary::DRDoS
1213

@@ -45,7 +46,12 @@ def scanner_prescan(batch)
4546
end
4647

4748
def scan_host(ip)
48-
scanner_send(@msearch_probe, ip, datastore['RPORT'])
49+
if spoofed?
50+
datastore['ScannerRecvWindow'] = 0
51+
scanner_spoof_send(@msearch_probe, ip, datastore['RPORT'], datastore['SRCIP'], datastore['NUM_REQUESTS'])
52+
else
53+
scanner_send(@msearch_probe, ip, datastore['RPORT'])
54+
end
4955
end
5056

5157
def scanner_process(data, shost, sport)

0 commit comments

Comments
 (0)