how to create socket proxy tcp

Started on the old forum in December 2011 · view the original in the archive · old links redirect here

No replies · 419 views · started 14 years ago · 1 min read

socket Newbie · 1 posts #1

how to create a proxy tcp socket from my script ex script :

<?php $host=" "; $port=" "; //paste here script proxy to connect tcp // $sock_server = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); $hasil=socket_connect($sock_server ,'$host',$port); switch(socket_select($r = array($sock_server ), $w = array($sock_server ), $f = array($sock_server), 5)) { case 2: echo "[-] Connection Refused \n"; break; case 1: echo "[+] Connected ok\n"; break; case 0: echo "[-] Timeout host down or ip has been banned \n"; break; } ?>

in the sense myWeb request to the proxy, the proxy requests to the host pls reply

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close