From fec1533b50951e399be512c4ad53ea5e48dadc9f Mon Sep 17 00:00:00 2001 From: James Lee Date: Fri, 21 Nov 2008 02:01:43 +0000 Subject: [PATCH] revert r5969 which breaks behind nat git-svn-id: file:///home/svn/framework3/trunk@5970 4d416f70-5f16-0410-b530-b9f4589650da --- lib/msf/core/handler/reverse_tcp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/msf/core/handler/reverse_tcp.rb b/lib/msf/core/handler/reverse_tcp.rb index 7fc186cf53..f5500e32e7 100644 --- a/lib/msf/core/handler/reverse_tcp.rb +++ b/lib/msf/core/handler/reverse_tcp.rb @@ -59,7 +59,7 @@ module ReverseTcp # Switch to IPv6 ANY address if the LHOST is also IPv6 addr = Rex::Socket.resolv_nbo(datastore['LHOST']) - lsnr = Rex::Socket.addr_ntoa(addr) + lsnr = (addr.length == 4) ? "0.0.0.0" : "::0" self.listener_sock = Rex::Socket::TcpServer.create( 'LocalHost' => lsnr,