Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- echo "
- ___ _ _ __ _ _ __ _ _ __ _ _ _ _ ____ ___
- / __)( )( )( )( \( )/ _)( )( ) ( ) ( \( ) ( \/\/ )(_ _)( _)
- \__ \ )__( )( ) (( (_ )__( /__\ ) ( ___\ / )( ) _)
- (___/(_)(_)(__)(_)\_)\__)(_)(_)(_)(_)(_)\_)(___)\/\/ (__) (_)
- Simple Bot Auto Views with Proxy - coded by ShinChan
- ";
- echo "Input your proxy list: ";
- $list = trim(fgets(STDIN));
- $open = fopen("$list","r");
- $size = filesize("$list");
- $read = fread($open,$size);
- $lists = explode("\r\n",$read);
- $s = 0;
- $f = 0;
- $t = 0;
- echo "\n";
- foreach($lists as $proxy){
- echo "Checking $proxy => ";
- $chi = curl_init();
- curl_setopt($chi, CURLOPT_URL, "http://blog.n45ht.web.id");
- curl_setopt($chi, CURLOPT_PROXY, $proxy);
- curl_setopt($chi, CURLOPT_HTTPPROXYTUNNEL, true);
- curl_setopt($chi, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($chi, CURLOPT_FOLLOWLOCATION, 1);
- curl_setopt($chi, CURLOPT_HEADER, 1);
- curl_setopt($chi, CURLOPT_TIMEOUT, '10');
- $ie = curl_exec($chi);
- curl_close($chi);
- if(!$ie){
- echo "PROXY ERROR\n";
- $f = $f+1;
- }else{
- echo "OK\n";
- $s = $s+1;
- }
- }
- $t = $s+$f;
- echo "\nSuccess : $s; Failed : $f; Total : $t;\n";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement