Skip to content

Commit fc4c190

Browse files
committed
Land rapid7#3839, @jabra-'s updates to dns_amp to support spoofing
1 parent 8f63075 commit fc4c190

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

modules/auxiliary/scanner/dns/dns_amp.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
class Metasploit3 < Msf::Auxiliary
99

1010
include Msf::Auxiliary::Report
11+
include Msf::Exploit::Capture
1112
include Msf::Auxiliary::UDPScanner
13+
include Msf::Auxiliary::DRDoS
1214

1315
def initialize
1416
super(
@@ -89,7 +91,12 @@ def scanner_prescan(batch)
8991
end
9092

9193
def scan_host(ip)
92-
scanner_send(@msearch_probe, ip, datastore['RPORT'])
94+
if spoofed?
95+
datastore['ScannerRecvWindow'] = 0
96+
scanner_spoof_send(@msearch_probe, ip, datastore['RPORT'], datastore['SRCIP'], datastore['NUM_REQUESTS'])
97+
else
98+
scanner_send(@msearch_probe, ip, datastore['RPORT'])
99+
end
93100
end
94101

95102
def scanner_process(data, shost, sport)

0 commit comments

Comments
 (0)