Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- date_default_timezone_set("Asia/Jakarta");
- $csrf = '';
- $cookie = '';
- $sleep_1 = "60";
- $sleep_2 = "30";
- $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);
- $urls = "https://www.paypal.com/myaccount/money/api/currencies/transfer";
- $POST_USD_GBP = '{"sourceCurrency":"USD","sourceAmount":0.01,"targetCurrency":"GBP","_csrf":"'.$csrf.'"}';
- $POST_GBP_USD = '{"sourceCurrency":"GBP","sourceAmount":0.03,"targetCurrency":"USD","_csrf":"'.$csrf.'"}';
- while (true) {
- for ($b = 1; $b <= 3; $b++) {
- $USD_TO_GBP = sendRequest(
- $urls,
- $POST_USD_GBP,
- $heads
- );
- if (strpos($USD_TO_GBP, 'Security Challenge')) {
- print "\nSecurity Challenge"; exit;
- }
- sleep($sleep_2);
- }
- /* Script Created By : Will Pratama */
- sleep($sleep_2);
- $GBP_TO_USD = sendRequest(
- $urls,
- $POST_GBP_USD,
- $heads
- );
- if (strpos($GBP_TO_USD, 'Security Challenge')) {
- print "\nSecurity Challenge"; exit;
- }
- @$saldo = getStr($GBP_TO_USD, '"totalAvailable":{"amount":"', '"', 1, 0);
- if (!empty($saldo)) {
- print PHP_EOL."[".date("Y-m-d H:i:s")."] Your \033[44mPaypal\033[0m Saldo : \033[0;36m$".$saldo."\033[0m";
- } else {
- print PHP_EOL."GAGAL\n".$GBP_TO_USD;
- }
- print PHP_EOL."Sleep 1 \033[41mMinutes\033[0m, Please Wait...".PHP_EOL;
- sleep($sleep_1);
- }
- function sendRequest($url, $param, $headers, $request = 'POST')
- {
- $ch = curl_init();
- $data = array(
- CURLOPT_URL => $url,
- CURLOPT_POSTFIELDS => $param,
- CURLOPT_HTTPHEADER => $headers,
- CURLOPT_CUSTOMREQUEST => $request,
- CURLOPT_HEADER => true,
- CURLOPT_RETURNTRANSFER => true,
- CURLOPT_FOLLOWLOCATION => true,
- CURLOPT_SSL_VERIFYPEER => false
- );
- curl_setopt_array($ch, $data);
- $execute = curl_exec($ch);
- $header_size = curl_getinfo($ch, CURLINFO_HEADER_SIZE);
- $header = substr($execute, 0, $header_size);
- $body = substr($execute, $header_size);
- curl_close($ch);
- return $body;
- }
- function getStr($page, $str1, $str2, $line_str2, $line)
- {
- $get = explode($str1, $page);
- $get2 = explode($str2, $get[$line_str2]);
- return $get2[$line];
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement