Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include("socks5.php");
- $server_name = "www.google.com";
- $server_port = 80;
- $socks = new socks5("127.0.0.1", 3128);
- if ($socks->connect($server_name, $server_port)) {
- $headers[] = "GET / HTTP/1.1";
- $headers[] = "Host: $server_name:$server_port";
- $packet = join("\r\n", $headers)."\r\n\r\n";
- $responce = $socks->send($packet);
- echo $responce;
- }
- exit;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement