Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- #Proxy checker V 1.0
- #By El3ct71k, [email protected]
- function Proxy($file) {
- $fp = fopen($file, 'r');
- $whitelist = fopen('whitelist.txt', 'a+');
- $blacklist = fopen('blacklist.txt', 'a+');
- $logs = '';
- foreach(explode("\r\n", fread($fp, filesize($file))) as $proxy) {
- $opts = array('http' => array('proxy' => 'tcp://'.$proxy, 'request_fulluri' => true));
- $context = stream_context_create($opts);
- if(@file_get_contents('http://dynupdate.no-ip.com/ip.php', false, $context)==True) {
- $logs .= "[+] ".$proxy."<br />";
- fwrite($whitelist, $proxy."\r\n");
- }
- else {
- fwrite($blacklist, $proxy."\r\n");
- $logs .= "[-] ".$proxy." Not work.<br />";
- }
- }
- fclose($fp);
- fclose($whitelist);
- fclose($blacklist);
- echo $logs;
- }
- Proxy('proxylist.txt');
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement