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
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