gnopaste
Userdata
Name
Anonymous
Scriptlanguage
PHP
Tabwidth
4
Date
08/10/2008 06:12:55 pm
IP
66.244.191.61
Description
The user was too lazy to give a description
Code (
Hide rownumbers
)
<?PHP
function
post($site, $data)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$site);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
curl_setopt($ch, CURLOPT_REFERER, $site);
curl_setopt($ch, CURLOPT_COOKIEFILE, "tmp2.txt");
curl_setopt($ch, CURLOPT_COOKIEJAR, "tmp2.txt");
$result = curl_exec ($ch);
return
$result;
}
function
Login_Paypal($user, $pass)
{
$input = post("https:
//www.paypal.com:443/us/cgi-bin/webscr?cmd=_login-submit&dispatch=5885d80a13c0db1f80512b0980fcab74f8f86a7539c796f1ab7d42731da209a2 login_cmd=&login_params=&", "login_email=".$user."&login_password=".$pass."&submit.x=Log+In&form_charset=UTF-8&browser_name=Firefox&browser_version=2&operating_system=Windows");
return
$input;
}
$user = "RAIINLOVE";
$pass = "sa";
$content = Login_Paypal($user, $pass);
if
( preg_match(
'%My Account Overview %'
, $content) ){
preg_match(
'% Welcome%'
, $content);
print
("WE ARE ONLINE");
}
else
{
print
("Something went wrong");
}
?>
submitter »
gnopaster
|
imprint
« imprint
»
Terms of use
«
»
digital bit dot ch - t4c's new home
«