JakRapp

https://www.cardbinlist.com/search.html?bin=

Dec 11th, 2017
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.69 KB | None | 0 0
  1. // https://www.cardbinlist.com/search.html?bin=
  2. $ccno    = str_replace(' ', '', $ccno);
  3. $binq     = str_replace(' ', '', $_POST['ccno']);
  4. $binq     = substr($binq, 0, 6);
  5. $bins = file_get_contents("https://www.cardbinlist.com/search.html?bin=$binq");
  6. $bin = preg_match_all("/headline\":\"(.*)\",\"datePublished/xs", $bins, $binn) ? $binn[1][0] : null;
  7. $bin2 = preg_match_all("/caption\":\"BIN(.*)\",\"width\":\"600\",\"height\":\"400\"}}<\/script>/xs", $bins, $binn2) ? $binn2[1][0] : null;
  8. $bin3 = explode(" ",$bin);
  9. $bin4 = explode(" ",$bin2);
  10. $ccbrand = strtoupper($bin3[2]);
  11. $ccbank  = $bin3[5].' '.$bin3[6].' '.$bin3[7];
  12. $cctype  = strtoupper($bin4[3]);
  13. $ccklas  = strtoupper($bin3[3]);
Add Comment
Please, Sign In to add comment