From 58671fd68452deb716c7fa3ee7c306d9d8e8bc9e Mon Sep 17 00:00:00 2001 From: kris <> Date: Thu, 9 Jul 2009 07:08:25 +0000 Subject: [PATCH] disconnect() tcp socket instead of just close()ing it git-svn-id: file:///home/svn/framework3/trunk@6758 4d416f70-5f16-0410-b530-b9f4589650da --- modules/auxiliary/scanner/portscan/tcp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/auxiliary/scanner/portscan/tcp.rb b/modules/auxiliary/scanner/portscan/tcp.rb index 4c51e11b59..9972216e3c 100644 --- a/modules/auxiliary/scanner/portscan/tcp.rb +++ b/modules/auxiliary/scanner/portscan/tcp.rb @@ -63,7 +63,7 @@ class Metasploit3 < Msf::Auxiliary ) print_status(" TCP OPEN #{ip}:#{port}") report_service(:host => ip, :port => port) - s.close + disconnect(s) rescue ::Interrupt raise $! rescue ::Rex::ConnectionError