Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php if (!isset($_GET['bin'])) { die('Falha ao consultar bin'); }$bin = $_GET['bin']; $c..
Decoded Output download
<?php if (!isset($_GET['bin'])) { die('Falha ao consultar bin'); }$bin = $_GET['bin']; $ch = curl_init("https://binlist.pro/"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36"); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_HEADER, true); $result = curl_exec($ch); curl_close($ch); preg_match('/_token\"\svalue=\"([^\"]+)/i', $result, $token); preg_match_all('/Set-Cookie:([^\;]+)/i', $result, $cookies); $cookies = join('; ', $cookies[1]); if (!isset($token[1])) { die('Falha ao consultar bin'); } $ch = curl_init("https://binlist.pro/process_bin"); curl_setopt_array($ch, [ CURLOPT_RETURNTRANSFER => true, CURLOPT_SSL_VERIFYPEER => false, CURLOPT_SSL_VERIFYHOST => false, CURLOPT_USERAGENT => "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36", CURLOPT_FOLLOWLOCATION => true, CURLOPT_COOKIE => $cookies, CURLOPT_POST => true, CURLOPT_POSTFIELDS => http_build_query([ '_token' => $token[1], 'bins' => $bin, ]), ]); $result = curl_exec($ch); curl_close($ch); preg_match('/(<table.*<\/table>)/is', $result, $table); if (!isset($table[1])) { die('Falha ao consultar bin'); } $table = $table[1]; $table = str_replace("<th>Brand</th>", "<th>Bandeira</th>", $table); $table = str_replace("<th>Type</th>", "<th>Tipo</th>", $table); $table = str_replace("<th>Category</th>", "<th>Categoria</th>", $table); $table = str_replace("<th>Country</th>", "<th>Pas</th>", $table); $table = str_replace("<th>Bank</th>", "<th>Banco</th>", $table); echo $table; ?>
Did this file decode correctly?
Original Code
<?php if (!isset($_GET['bin'])) { die('Falha ao consultar bin'); }$bin = $_GET['bin']; $ch = curl_init("\x68\x74\x74\x70\x73\x3a\x2f\x2f\x62\x69\x6e\x6c\x69\x73\x74\x2e\x70\x72\x6f\x2f"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36"); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_HEADER, true); $result = curl_exec($ch); curl_close($ch); preg_match('/_token\"\svalue=\"([^\"]+)/i', $result, $token); preg_match_all('/Set-Cookie:([^\;]+)/i', $result, $cookies); $cookies = join('; ', $cookies[1]); if (!isset($token[1])) { die('Falha ao consultar bin'); } $ch = curl_init("\x68\x74\x74\x70\x73\x3a\x2f\x2f\x62\x69\x6e\x6c\x69\x73\x74\x2e\x70\x72\x6f\x2f\x70\x72\x6f\x63\x65\x73\x73\x5f\x62\x69\x6e"); curl_setopt_array($ch, [ CURLOPT_RETURNTRANSFER => true, CURLOPT_SSL_VERIFYPEER => false, CURLOPT_SSL_VERIFYHOST => false, CURLOPT_USERAGENT => "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36", CURLOPT_FOLLOWLOCATION => true, CURLOPT_COOKIE => $cookies, CURLOPT_POST => true, CURLOPT_POSTFIELDS => http_build_query([ '_token' => $token[1], 'bins' => $bin, ]), ]); $result = curl_exec($ch); curl_close($ch); preg_match('/(<table.*<\/table>)/is', $result, $table); if (!isset($table[1])) { die('Falha ao consultar bin'); } $table = $table[1]; $table = str_replace("<th>Brand</th>", "<th>Bandeira</th>", $table); $table = str_replace("<th>Type</th>", "<th>Tipo</th>", $table); $table = str_replace("<th>Category</th>", "<th>Categoria</th>", $table); $table = str_replace("<th>Country</th>", "<th>Pas</th>", $table); $table = str_replace("<th>Bank</th>", "<th>Banco</th>", $table); echo $table;
Function Calls
None |
Stats
MD5 | 2e004823c6c35b7a85542f68df43c094 |
Eval Count | 0 |
Decode Time | 35 ms |