From bd2f73f40a3fef6da803e4a361583d879a6c8af6 Mon Sep 17 00:00:00 2001 From: Jon Hart Date: Sun, 27 Sep 2015 14:55:19 -0700 Subject: [PATCH] Fix #6008 for wireshark_lwres_getaddrbyname --- modules/exploits/multi/misc/wireshark_lwres_getaddrbyname.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/exploits/multi/misc/wireshark_lwres_getaddrbyname.rb b/modules/exploits/multi/misc/wireshark_lwres_getaddrbyname.rb index 10e103dc67..ee804483e5 100644 --- a/modules/exploits/multi/misc/wireshark_lwres_getaddrbyname.rb +++ b/modules/exploits/multi/misc/wireshark_lwres_getaddrbyname.rb @@ -204,10 +204,10 @@ class Metasploit3 < Msf::Exploit::Remote p.payload = sploit p.recalc - capture_sendto(p, rhost) + sent = capture_sendto(p, rhost) close_pcap - handler + handler if sent else print_status("Sending malformed LWRES packet to #{rhost}") connect_udp