Advertisement
Guest User

Untitled

a guest
Feb 20th, 2020
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.46 KB | None | 0 0
  1. <?php
  2. date_default_timezone_set("Asia/Jakarta");
  3.  
  4. $csrf = '';
  5. $cookie = '';
  6.  
  7. $sleep_1 = "60";
  8. $sleep_2 = "30";
  9.  
  10. $heads = explode("\n", "Host: www.paypal.com\nSec-Fetch-Dest: empty\nX-Requested-With: XMLHttpRequest\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Safari/537.36\nContent-Type: application/json\nOrigin: https://www.paypal.com\nSec-Fetch-Site: same-origin\nSec-Fetch-Mode: cors\nReferer: https://www.paypal.com/myaccount/money/currencies/USD/transfer/GBP/review\nCookie: ".$cookie);
  11. $urls = "https://www.paypal.com/myaccount/money/api/currencies/transfer";
  12.  
  13. $POST_USD_GBP = '{"sourceCurrency":"USD","sourceAmount":0.01,"targetCurrency":"GBP","_csrf":"'.$csrf.'"}';
  14. $POST_GBP_USD = '{"sourceCurrency":"GBP","sourceAmount":0.03,"targetCurrency":"USD","_csrf":"'.$csrf.'"}';
  15.  
  16. while (true) {
  17.  
  18. for ($b = 1; $b <= 3; $b++) {
  19. $USD_TO_GBP = sendRequest(
  20. $urls,
  21. $POST_USD_GBP,
  22. $heads
  23. );
  24.  
  25. if (strpos($USD_TO_GBP, 'Security Challenge')) {
  26. print "\nSecurity Challenge"; exit;
  27. }
  28. sleep($sleep_2);
  29. }
  30.  
  31. /* Script Created By : Will Pratama */
  32.  
  33. sleep($sleep_2);
  34.  
  35. $GBP_TO_USD = sendRequest(
  36. $urls,
  37. $POST_GBP_USD,
  38. $heads
  39. );
  40.  
  41. if (strpos($GBP_TO_USD, 'Security Challenge')) {
  42. print "\nSecurity Challenge"; exit;
  43. }
  44.  
  45. @$saldo = getStr($GBP_TO_USD, '"totalAvailable":{"amount":"', '"', 1, 0);
  46. if (!empty($saldo)) {
  47. print PHP_EOL."[".date("Y-m-d H:i:s")."] Your \033[44mPaypal\033[0m Saldo : \033[0;36m$".$saldo."\033[0m";
  48. } else {
  49. print PHP_EOL."GAGAL\n".$GBP_TO_USD;
  50. }
  51.  
  52. print PHP_EOL."Sleep 1 \033[41mMinutes\033[0m, Please Wait...".PHP_EOL;
  53. sleep($sleep_1);
  54. }
  55.  
  56.  
  57. function sendRequest($url, $param, $headers, $request = 'POST')
  58. {
  59. $ch = curl_init();
  60. $data = array(
  61. CURLOPT_URL => $url,
  62. CURLOPT_POSTFIELDS => $param,
  63. CURLOPT_HTTPHEADER => $headers,
  64. CURLOPT_CUSTOMREQUEST => $request,
  65. CURLOPT_HEADER => true,
  66. CURLOPT_RETURNTRANSFER => true,
  67. CURLOPT_FOLLOWLOCATION => true,
  68. CURLOPT_SSL_VERIFYPEER => false
  69. );
  70. curl_setopt_array($ch, $data);
  71. $execute = curl_exec($ch);
  72. $header_size = curl_getinfo($ch, CURLINFO_HEADER_SIZE);
  73. $header = substr($execute, 0, $header_size);
  74. $body = substr($execute, $header_size);
  75. curl_close($ch);
  76. return $body;
  77. }
  78.  
  79. function getStr($page, $str1, $str2, $line_str2, $line)
  80. {
  81. $get = explode($str1, $page);
  82. $get2 = explode($str2, $get[$line_str2]);
  83. return $get2[$line];
  84. }
  85.  
  86. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement