Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(whois =~ /CONNECT/)
- Thread.new do
- ircserver = whois.gsub("HTTP/1.0", "").gsub(/\s+/, "").gsub("CONNECT", "")
- irchost, ircport = ircserver.split(":")
- socks = TCPSocket.open(irchost, ircport)
- socks.puts whois
- i = socks.gets
- peer.puts i
- Thread.new do
- loop do#New loop
- server = socks.gets#Gets everything from server
- peer.puts server#Sends it to client
- end
- end
- Thread.new do
- loop do
- info = peer.gets
- socks.puts info
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement