daily pastebin goal
61%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. // Copyright MoreArt | Recode SundaBlackHat
  3. if(isset($_GET[bin])){
  4.     $bin = $_GET['bin'];
  5. $ch = curl_init();
  6.  
  7. curl_setopt($ch, CURLOPT_URL, "https://ccbin.su/");
  8. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  9. curl_setopt($ch, CURLOPT_POSTFIELDS, "select%5B%5D=all&list=$bin&bankname=&country=&website=&phone=&btnSearch=");
  10. curl_setopt($ch, CURLOPT_POST, 1);
  11. curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');
  12.  
  13. $headers = array();
  14. $headers[] = "Origin: https://ccbin.su";
  15. $headers[] = "Accept-Language: en-US,en;q=0.8";
  16. $headers[] = "Upgrade-Insecure-Requests: 1";
  17. $headers[] = "User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36";
  18. $headers[] = "Content-Type: application/x-www-form-urlencoded";
  19. $headers[] = "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8";
  20. $headers[] = "Cache-Control: max-age=0";
  21. $headers[] = "Authority: ccbin.su";
  22. $headers[] = "Cookie: __cfduid=d2cffb6f95830f4e61b3267becb1c14a81506995428; PHPSESSID=7012111bd66609268184334b4721deca";
  23. $headers[] = "Referer: https://ccbin.su/";
  24. curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
  25.  
  26. $result = curl_exec($ch);
  27. if (curl_errno($ch)) {
  28.     echo 'Error:' . curl_error($ch);
  29. }
  30. curl_close ($ch);
  31. preg_match_all('/<td>(.*)<\/td>/',$result,$info);
  32. $jenis = $info[1][0];
  33. $bank =  $info[1][1];
  34. $kelas = $info[1][2];
  35. $tipe =  $info[1][3];
  36. $country = $info[1][4];
  37. $data = array(
  38. 'BIN' => $bin,
  39. 'JENIS' => $jenis,
  40. 'TYPE' => "$kelas $tipe",
  41. 'BANK'=> $bank,
  42. 'NEGARA' => $country
  43.                 );
  44. print_r(json_encode($data));
  45.  
  46. }
  47. ?>
RAW Paste Data
Pastebin PRO CHRISTMAS Special!
Get 60% OFF Pastebin PRO accounts!
Top