From: Bigmac Turdsplash Date: 2009-09-07T13:10:49+09:00 Subject: Re: i need to strip \n and nil 7stud -- wrote: > Bigmac Turdsplash wrote: >> require 'socket' >> >> host = '192.168.1.4' >> port = 2000 >> sock = TCPSocket.open(host, port) >> >> data = sock.recvfrom(999999) >> destFile = File.open('/tmp/poop.exe', 'wb') >> destFile.print data >> destFile.close >> >> >> Ok, just to show you what im working with... it works, but there is a >> file size limit when working with recvfrom() >> > > Skipping the basics of a language never works, does it? lol, oops... data = sock.read how can i send a hole directory? #server directory = File.new('/pentest/windows-binaries/tools/') #client folder.open('/tmp/directory/', 'wb') -- Posted via http://www.ruby-forum.com/.