Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Copyright MoreArt | Recode SundaBlackHat
- if(isset($_GET[bin])){
- $bin = $_GET['bin'];
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, "https://ccbin.su/");
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, "select%5B%5D=all&list=$bin&bankname=&country=&website=&phone=&btnSearch=");
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');
- $headers = array();
- $headers[] = "Origin: https://ccbin.su";
- $headers[] = "Accept-Language: en-US,en;q=0.8";
- $headers[] = "Upgrade-Insecure-Requests: 1";
- $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";
- $headers[] = "Content-Type: application/x-www-form-urlencoded";
- $headers[] = "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8";
- $headers[] = "Cache-Control: max-age=0";
- $headers[] = "Authority: ccbin.su";
- $headers[] = "Cookie: __cfduid=d2cffb6f95830f4e61b3267becb1c14a81506995428; PHPSESSID=7012111bd66609268184334b4721deca";
- $headers[] = "Referer: https://ccbin.su/";
- curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
- $result = curl_exec($ch);
- if (curl_errno($ch)) {
- echo 'Error:' . curl_error($ch);
- }
- curl_close ($ch);
- preg_match_all('/<td>(.*)<\/td>/',$result,$info);
- $jenis = $info[1][0];
- $bank = $info[1][1];
- $kelas = $info[1][2];
- $tipe = $info[1][3];
- $country = $info[1][4];
- $data = array(
- 'BIN' => $bin,
- 'JENIS' => $jenis,
- 'TYPE' => "$kelas $tipe",
- 'BANK'=> $bank,
- 'NEGARA' => $country
- );
- print_r(json_encode($data));
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement