echo $hmenu; exit; } elseif ($argv[1] == '-c') { $ltype = ','; } elseif ($argv[1] == '-n') { $ltype = "\n"; } else { echo "Error: no list type entered"; echo $hmenu; exit; } $arrSites = array("2ch", "aliveproxy", "atomintersoft", "compinfo", "cybersyndrome", "freeproxych", "freeproxy", "freeproxylists", "getfreeproxy", "ipaddress", "ipcn", "j1f", "proxiesthatwork", "myproxy", "proxygo", "proxyleech", "proxylist", "proxylists", "pheaven", "proxyserverfinder", "rosinstrument", "samair", "speedtest", "xroxy"); $arrSitesH = array("2ch", "aliveproxy", "atomintersoft", "compinfo", "cybersyndrome", "freeproxych", "freeproxy", "freeproxylists", "getfreeproxy", "ipaddress", "ipcn", "j1f", "proxiesthatwork", "myproxy", "proxygo", "proxyleech", "proxylist", "proxylists", "pheaven", "proxyserverfinder", "rosinstrument", "samair", "speedtest", "xroxy", "hidemyass"); $cntSite = count($arrSites) - 1; // off by one syndrome strikes again $pb = new proxybot($config['needle'], $userAgentString, $curlheader); // create the proxybot class instance $arrayHashes = array(); // this is a jumble of shit spaghett code if (isset($argv[2])) { if (is_numeric($argv[2])) { // max number of proxies if ($argv[2] < 15) { $rsites = $pb->uniqueRand(2, 0, $cntSite); // 2 random numbers between zero and number of sites $sites = array(); for ($i = 0; $i < 2; $i++) { $sites[] = $arrSites[$rsites[$i]]; } // loop through and grab the names of the randomly chosen site } elseif ($argv[2] < 50) {
exit; } } if ($ltype == '' || $ltype == ' ' || $ltype == null) { echo "Options malformed. Exiting!\n"; } if ($pathnew == '' || $pathnew == ' ' || $pathnew == null) { echo "Options malformed. Exiting!\n"; } $yatmpvar = ''; $he = fopen($pathnew, "r"); while (!feof($he)) { $output = fgets($he, 1024); $yatmpvar .= $output; } $pb = new proxybot($config['needle'], $userAgentString, $curlheader); // create the proxybot class instance $yatemplol = explode($ltype, $yatmpvar); for ($i = 0, $limit = count($yatemplol); $i < $limit; ++$i) { if ($yatemplol[$i] == "\n") { unset($yatemplol[$i]); } elseif ($yatemplol[$i] == '' || $yatemplol[$i] == ' ') { unset($yatemplol[$i]); } } $proxtype = 'new'; $yacntr = 0; if (strcmp($proxtype, 'good') == 0 || strcmp($proxtype, 'inactive') == 0) { // proxytype is good or inactive for ($i = 0; $i < count($yatemplol); $i++) { if (isset($yatemplol[$i])) {