gnopaste

Sorry for this ugly message. We are searching for some translators.
Please send me an eMail or jabber: t4c@im.digital-bit.ch
Got: de, en, pl, ro, lu, ru, es - Need: everything else

Name
Anonymous
Scriptlanguage
PHP
Tabwidth
4
Date
08/10/2008 06:12:55 pm
IP
66.244.191.61

The user was too lazy to give a description

  1. <?PHP
  2. function post($site, $data)
  3.  
  4. {
  5.  
  6. $ch = curl_init();
  7.  
  8.         curl_setopt($ch, CURLOPT_URL,$site);
  9.  
  10.         curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)");
  11.  
  12.         curl_setopt($ch, CURLOPT_POST, 1);
  13.  
  14.         curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
  15.  
  16.         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  17.  
  18.         curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
  19.  
  20.         curl_setopt($ch, CURLOPT_REFERER, $site);
  21.  
  22.         curl_setopt($ch, CURLOPT_COOKIEFILE, "tmp2.txt");
  23.  
  24.         curl_setopt($ch, CURLOPT_COOKIEJAR, "tmp2.txt");
  25.  
  26.                 $result = curl_exec ($ch);
  27.  
  28. return $result;
  29.  
  30. }
  31.  
  32. function Login_Paypal($user, $pass)
  33.  
  34. {
  35.  
  36. $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");
  37. return $input;
  38.  
  39. }
  40.  
  41.  
  42.  
  43.  
  44. $user = "RAIINLOVE";
  45. $pass = "sa";
  46. $content = Login_Paypal($user, $pass);
  47.  
  48.     if( preg_match('%My Account Overview %', $content) ){
  49.  
  50.         preg_match('% Welcome%', $content);
  51.  
  52.         print("WE ARE ONLINE");
  53.  
  54.  
  55.       }
  56.  
  57.       else{
  58.  
  59.         print("Something went wrong");
  60.  
  61.       }
  62.  
  63.  
  64.  
  65. ?>
submitter » gnopaster | imprint « imprint     
» Terms of use «
» digital bit dot ch - t4c's new home «