$bin = $binaa;
//===================================================
function getFlags($code) {
$code = strtoupper($code);
if ($code === 'AFGHANISTAN') return '🇦🇫';
if ($code === 'ALBANIA') return '🇦🇱';
if ($code === 'ALGERIA') return '🇩🇿';
if ($code === 'ANDORRA') return '🇦🇩';
if ($code === 'ANGOLA') return '🇦🇴';
if ($code === 'ANTIGUA AND BARBUDA') return '🇦🇬';
if ($code === 'ARGENTINA') return '🇦🇷';
if ($code === 'ARMENIA') return '🇦🇲';
if ($code === 'AUSTRALIA') return '🇦🇺';
if ($code === 'AUSTRIA') return '🇦🇹';
if ($code === 'AZERBAIJAN') return '🇦🇿';
if ($code === 'BAHAMAS') return '🇧🇸';
if ($code === 'BAHRAIN') return '🇧🇭';
if ($code === 'BANGLADESH') return '🇧🇩';
if ($code === 'BARBADOS') return '🇧🇧';
if ($code === 'BELARUS') return '🇧🇾';
if ($code === 'BELGIUM') return '🇧🇪';
if ($code === 'BELIZE') return '🇧🇿';
if ($code === 'BENIN') return '🇧🇯';
if ($code === 'BHUTAN') return '🇧🇹';
if ($code === 'BOLIVIA') return '🇧🇴';
if ($code === 'BOSNIA AND HERZEGOVINA') return '🇧🇦';
if ($code === 'BOTSWANA') return '🇧🇼';
if ($code === 'BRAZIL') return '🇧🇷';
if ($code === 'BRUNEI') return '🇧🇳';
if ($code === 'BULGARIA') return '🇧🇬';
if ($code === 'BURKINA FASO') return '🇧🇫';
if ($code === 'BURUNDI') return '🇧🇮';
if ($code === 'CABO VERDE') return '🇨🇻';
if ($code === 'CAMBODIA') return '🇰🇭';
if ($code === 'CAMEROON') return '🇨🇲';
if ($code === 'CANADA') return '🇨🇦';
if ($code === 'CENTRAL AFRICAN REPUBLIC') return '🇨🇫';
if ($code === 'CHAD') return '🇹🇩';
if ($code === 'CHILE') return '🇨🇱';
if ($code === 'CHINA') return '🇨🇳';
if ($code === 'COLOMBIA') return '🇨🇴';
if ($code === 'COMOROS') return '🇰🇲';
if ($code === 'CONGO') return '🇨🇬';
if ($code === 'CONGO, DEMOCRATIC REPUBLIC OF THE') return '🇨🇩';
if ($code === 'COSTA RICA') return '🇨🇷';
if ($code === 'CROATIA') return '🇭🇷';
if ($code === 'CUBA') return '🇨🇺';
if ($code === 'CYPRUS') return '🇨🇾';
if ($code === 'CZECH REPUBLIC') return '🇨🇿';
if ($code === 'DENMARK') return '🇩🇰';
if ($code === 'DJIBOUTI') return '🇩🇯';
if ($code === 'DOMINICA') return '🇩🇲';
if ($code === 'DOMINICAN REPUBLIC') return '🇩🇴';
if ($code === 'ECUADOR') return '🇪🇨';
if ($code === 'EGYPT') return '🇪🇬';
if ($code === 'EL SALVADOR') return '🇸🇻';
if ($code === 'EQUATORIAL GUINEA') return '🇬🇶';
if ($code === 'ERITREA') return '🇪🇷';
if ($code === 'ESTONIA') return '🇪🇪';
if ($code === 'ESWATINI') return '🇸🇿';
if ($code === 'ETHIOPIA') return '🇪🇹';
if ($code === 'FIJI') return '🇫🇯';
if ($code === 'FINLAND') return '🇫🇮';
if ($code === 'FRANCE') return '🇫🇷';
if ($code === 'GABON') return '🇬🇦';
if ($code === 'GAMBIA') return '🇬🇲';
if ($code === 'GEORGIA') return '🇬🇪';
if ($code === 'GERMANY') return '🇩🇪';
if ($code === 'GHANA') return '🇬🇭';
if ($code === 'GREECE') return '🇬🇷';
if ($code === 'GRENADA') return '🇬🇩';
if ($code === 'GUATEMALA') return '🇬🇹';
if ($code === 'GUINEA') return '🇬🇳';
if ($code === 'GUINEA-BISSAU') return '🇬🇼';
if ($code === 'GUYANA') return '🇬🇾';
if ($code === 'HAITI') return '🇭🇹';
if ($code === 'HONDURAS') return '🇭🇳';
if ($code === 'HUNGARY') return '🇭🇺';
if ($code === 'ICELAND') return '🇮🇸';
if ($code === 'INDIA') return '🇮🇳';
if ($code === 'INDONESIA') return '🇮🇩';
if ($code === 'IRAN') return '🇮🇷';
if ($code === 'IRAQ') return '🇮🇶';
if ($code === 'IRELAND') return '🇮🇪';
if ($code === 'ISRAEL') return '🇮🇱';
if ($code === 'ITALY') return '🇮🇹';
if ($code === 'IVORY COAST') return '🇨🇮';
if ($code === 'JAMAICA') return '🇯🇲';
if ($code === 'JAPAN') return '🇯🇵';
if ($code === 'JORDAN') return '🇯🇴';
if ($code === 'KAZAKHSTAN') return '🇰🇿';
if ($code === 'KENYA') return '🇰🇪';
if ($code === 'KIRIBATI') return '🇰🇮';
if ($code === 'KUWAIT') return '🇰🇼';
if ($code === 'KYRGYZSTAN') return '🇰🇬';
if ($code === 'LAOS') return '🇱🇦';
if ($code === 'LATVIA') return '🇱🇻';
if ($code === 'LEBANON') return '🇱🇧';
if ($code === 'LESOTHO') return '🇱🇸';
if ($code === 'LIBERIA') return '🇱🇷';
if ($code === 'LIBYA') return '🇱🇾';
if ($code === 'LIECHTENSTEIN') return '🇱🇮';
if ($code === 'LITHUANIA') return '🇱🇹';
if ($code === 'LUXEMBOURG') return '🇱🇺';
if ($code === 'MADAGASCAR') return '🇲🇬';
if ($code === 'MALAWI') return '🇲🇼';
if ($code === 'MALAYSIA') return '🇲🇾';
if ($code === 'MALDIVES') return '🇲🇻';
if ($code === 'MALI') return '🇲🇱';
if ($code === 'MALTA') return '🇲🇹';
if ($code === 'MARSHALL ISLANDS') return '🇲🇭';
if ($code === 'MAURITANIA') return '🇲🇷';
if ($code === 'MAURITIUS') return '🇲🇺';
if ($code === 'MEXICO') return '🇲🇽';
if ($code === 'MICRONESIA') return '🇫🇲';
if ($code === 'MOLDOVA') return '🇲🇩';
if ($code === 'MONACO') return '🇲🇨';
if ($code === 'MONGOLIA') return '🇲🇳';
if ($code === 'MONTENEGRO') return '🇲🇪';
if ($code === 'MOROCCO') return '🇲🇦';
if ($code === 'MOZAMBIQUE') return '🇲🇿';
if ($code === 'MYANMAR') return '🇲🇲';
if ($code === 'NAMIBIA') return '🇳🇦';
if ($code === 'NAURU') return '🇳🇷';
if ($code === 'NEPAL') return '🇳🇵';
if ($code === 'NETHERLANDS') return '🇳🇱';
if ($code === 'NEW ZEALAND') return '🇳🇿';
if ($code === 'NICARAGUA') return '🇳🇮';
if ($code === 'NIGER') return '🇳🇪';
if ($code === 'NIGERIA') return '🇳🇬';
if ($code === 'NORTH KOREA') return '🇰🇵';
if ($code === 'NORTH MACEDONIA') return '🇲🇰';
if ($code === 'NORWAY') return '🇳🇴';
if ($code === 'OMAN') return '🇴🇲';
if ($code === 'PAKISTAN') return '🇵🇰';
if ($code === 'PALAU') return '🇵🇼';
if ($code === 'PALESTINE') return '🇵🇸';
if ($code === 'PANAMA') return '🇵🇦';
if ($code === 'PAPUA NEW GUINEA') return '🇵🇬';
if ($code === 'PARAGUAY') return '🇵🇾';
if ($code === 'PERU') return '🇵🇪';
if ($code === 'PHILIPPINES') return '🇵🇭';
if ($code === 'POLAND') return '🇵🇱';
if ($code === 'PORTUGAL') return '🇵🇹';
if ($code === 'QATAR') return '🇶🇦';
if ($code === 'ROMANIA') return '🇷🇴';
if ($code === 'RUSSIA') return '🇷🇺';
if ($code === 'RWANDA') return '🇷🇼';
if ($code === 'SAINT KITTS AND NEVIS') return '🇰🇳';
if ($code === 'SAINT LUCIA') return '🇱🇨';
if ($code === 'SAINT VINCENT AND THE GRENADINES') return '🇻🇨';
if ($code === 'SAMOA') return '🇼🇸';
if ($code === 'SAN MARINO') return '🇸🇲';
if ($code === 'SAO TOME AND PRINCIPE') return '🇸🇹';
if ($code === 'SAUDI ARABIA') return '🇸🇦';
if ($code === 'SENEGAL') return '🇸🇳';
if ($code === 'SERBIA') return '🇷🇸';
if ($code === 'SEYCHELLES') return '🇸🇨';
if ($code === 'SIERRA LEONE') return '🇸🇱';
if ($code === 'SINGAPORE') return '🇸🇬';
if ($code === 'SLOVAKIA') return '🇸🇰';
if ($code === 'SLOVENIA') return '🇸🇮';
if ($code === 'SOLOMON ISLANDS') return '🇸🇧';
if ($code === 'SOMALIA') return '🇸🇴';
if ($code === 'SOUTH AFRICA') return '🇿🇦';
if ($code === 'SOUTH KOREA') return '🇰🇷';
if ($code === 'SOUTH SUDAN') return '🇸🇸';
if ($code === 'SPAIN') return '🇪🇸';
if ($code === 'SRI LANKA') return '🇱🇰';
if ($code === 'SUDAN') return '🇸🇩';
if ($code === 'SURINAME') return '🇸🇷';
if ($code === 'SWEDEN') return '🇸🇪';
if ($code === 'SWITZERLAND') return '🇨🇭';
if ($code === 'SYRIA') return '🇸🇾';
if ($code === 'TAIWAN') return '🇹🇼';
if ($code === 'TAJIKISTAN') return '🇹🇯';
if ($code === 'TANZANIA') return '🇹🇿';
if ($code === 'THAILAND') return '🇹🇭';
if ($code === 'TIMOR-LESTE') return '🇹🇱';
if ($code === 'TOGO') return '🇹🇬';
if ($code === 'TONGA') return '🇹🇴';
if ($code === 'TRINIDAD AND TOBAGO') return '🇹🇹';
if ($code === 'TUNISIA') return '🇹🇳';
if ($code === 'TURKEY') return '🇹🇷';
if ($code === 'TURKMENISTAN') return '🇹🇲';
if ($code === 'TUVALU') return '🇹🇻';
if ($code === 'UGANDA') return '🇺🇬';
if ($code === 'UKRAINE') return '🇺🇦';
if ($code === 'UNITED ARAB EMIRATES') return '🇦🇪';
if ($code === 'UNITED KINGDOM') return '🇬🇧';
if ($code === 'UNITED STATES') return '🇺🇸';
if ($code === 'URUGUAY') return '🇺🇾';
if ($code === 'UZBEKISTAN') return '🇺🇿';
if ($code === 'VANUATU') return '🇻🇺';
if ($code === 'VENEZUELA') return '🇻🇪';
if ($code === 'VIETNAM') return '🇻🇳';
if ($code === 'YEMEN') return '🇾🇪';
if ($code === 'ZAMBIA') return '🇿🇲';
if ($code === 'ZIMBABWE') return '🇿🇼';
return '🏳';
}
//===================================================
$url = "https://bincc.pro/";
$data = 'action=searchbins&bins='.$bin.'&bank=&country=';
$header = array(
'Host: bincc.pro',
'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:131.0) Gecko/20100101 Firefox/131.0',
'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/png,image/svg+xml,*/*;q=0.8',
'Accept-Language: en-GB,en;q=0.5',
'Accept-Encoding: gzip, deflate, br, zstd',
'Content-Type: application/x-www-form-urlencoded',
'Content-Length: '.strlen($data),
'Origin: https://bincc.pro',
'Connection: keep-alive',
'Referer: https://bincc.pro/',
'Upgrade-Insecure-Requests: 1',
'Sec-Fetch-Dest: document',
'Sec-Fetch-Mode: navigate',
'Sec-Fetch-Site: same-origin',
'Sec-Fetch-User: ?1',
'Priority: u=0, i',
);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate, br');
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
$result = curl_exec($ch);
$status_code = @curl_getinfo($ch, CURLINFO_HTTP_CODE);
preg_match_all('/<td[^>]*style="text-align: left;"[^>]*>(.*?)<\/td>/', $result, $matches);
//========================================
$binx = $matches[1][0];
$country = $matches[1][1];
$type = $matches[1][2];
$Level = $matches[1][3];
$scheme = $matches[1][4];
$Bank = $matches[1][5];
//========================================
$binresult = '
{"country":"'.$country.'",
"scheme":"'.$scheme.'",
"type":"'.$type.'",
"brand":"'.$Level.'",
"emoji":"'.getFlags($country).'",
"bank":{"name":"'.$Bank.'"}}';
//========================================
echo $binresult;
© 2023 Quttera Ltd. All rights reserved.