Wordpress 等でのPHPのマルウェア・ウィルス・改ざんコードをデコードして難読化をオンラインで解除し、
元の読みやすいコードに戻し解読できます。
<?php goto BfHz7; S9kW7: function a($year) { $yearWords = array("\60" => '', "\x31" => "\117\156\145", "\x32" => "\x54\167\157", "\x33" => "\124\x68\x72\145\145", "\64" => "\106\157\x75\162", "\x35" => "\x46\151\166\145", "\66" => "\x53\x69\170", "\x37" => "\x53\x65\x76\x65\156", "\70" => "\105\x69\x67\x68\x74", "\x39" => "\x4e\x69\156\145", "\x31\60" => "\x54\145\x6e"); $yearWordsSml = array("\61\60" => "\x54\145\156", "\x31\x31" => "\105\154\x65\x76\145\156", "\x31\x32" => "\x54\167\x65\x6c\x76\145", "\x31\x33" => "\124\x68\x69\x72\x74\145\x65\156", "\61\x34" => "\106\157\165\162\x74\x65\145\x6e", "\61\65" => "\106\x69\x66\x74\145\145\x6e", "\61\x36" => "\123\x69\170\164\145\145\x6e", "\x31\67" => "\x53\x65\166\145\156\164\x65\x65\156", "\61\x38" => "\105\151\147\x68\x74\145\145\156", "\x31\71" => "\116\x69\156\145\x74\145\x65\156", "\62\60" => "\124\x77\145\x6e\x74\x79"); $yearWordsBig = array("\x30" => '', "\x32" => "\x54\x77\145\156\x74\x79", "\63" => "\x54\150\x69\x72\x74\171", "\64" => "\106\157\x72\164\171", "\x35" => "\x46\x69\x66\x74\171", "\66" => "\123\x69\x78\164\171", "\67" => "\x53\x65\x76\145\x6e\164\171", "\x38" => "\x45\151\147\150\164\171", "\x39" => "\x4e\x69\x6e\x65\x74\x79"); $th = intval($year[0] . $year[1]); $ty = intval($year[2] . $year[3]); if ($th < 20) { $thWord = "\x4e\x69\156\x65\164\145\x65\156"; } else { $thWord = "\124\x77\x6f\40\x54\150\157\x75\x73\141\x6e\144"; } if ($ty < 10) { $tyWord = str_replace(array_keys($yearWords), array_values($yearWords), $ty); } else { if ($ty < 20) { $tyWord = str_replace(array_keys($yearWordsSml), array_values($yearWordsSml), $ty); } else { $tyWord = str_replace(array_keys($yearWordsBig), array_values($yearWordsBig), $year[2]) . "\40" . str_replace(array_keys($yearWords), array_values($yearWords), $year[3]); } } return $thWord . "\40" . $tyWord; } goto UrBD0; LGDD5: function b($brn, $dob, $captcha, $cookie, $CaptchaDeText, $__RequestVerificationToken) { $data = array(); $postData = http_build_query(array("\x55\x42\122\x4e" => $brn, "\x42\x69\162\x74\x68\104\141\164\x65" => $dob, "\103\x61\160\164\143\150\x61\111\156\160\x75\x74\x54\145\x78\164" => $captcha, "\x43\x61\x70\164\x63\x68\x61\104\145\124\145\170\x74" => $CaptchaDeText, "\137\x5f\x52\145\x71\165\145\163\164\x56\x65\x72\151\146\151\x63\x61\164\x69\x6f\x6e\x54\x6f\153\x65\156" => $__RequestVerificationToken)); $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, "\x68\x74\x74\x70\163\x3a\57\57\145\166\145\162\151\x66\x79\56\142\144\162\151\163\56\x67\x6f\x76\56\142\144\57\125\102\x52\x4e\126\145\162\x69\146\x69\143\x61\x74\x69\157\x6e\x2f\x53\145\x61\x72\143\x68"); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_TIMEOUT, 5); curl_setopt($curl, CURLOPT_POSTFIELDS, $postData); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($curl, CURLOPT_HTTPHEADER, array("\103\x6f\157\153\x69\x65\x3a\40" . $cookie, "\x52\x65\146\x65\162\x65\x72\x3a\40\150\x74\x74\160\x73\x3a\x2f\x2f\x65\166\x65\162\x69\146\x79\56\142\144\162\x69\x73\56\147\157\x76\56\142\144\x2f\125\x42\x52\x4e\126\x65\x72\151\146\x69\143\x61\x74\151\x6f\156\x2f\x53\145\x61\162\143\x68", "\125\x73\x65\x72\x2d\x41\x67\x65\x6e\x74\x3a\40\x4d\157\x7a\x69\154\x6c\x61\x2f\x35\56\60\40\x28\127\x69\156\x64\157\167\163\40\x4e\x54\40\x31\60\56\x30\x3b\40\x57\151\x6e\66\64\x3b\x20\170\66\64\x29\x20\101\160\160\154\145\127\x65\x62\113\151\164\x2f\65\x33\x37\56\63\x36\x20\50\x4b\x48\124\115\114\x2c\40\154\151\x6b\145\40\x47\x65\143\153\x6f\x29\x20\x43\150\x72\x6f\155\145\x2f\x31\x30\x38\x2e\60\56\x30\x2e\x30\x20\x53\141\x66\x61\162\151\57\x35\63\67\x2e\63\x36")); $content = curl_exec($curl); curl_close($curl); if (!empty($content)) { $html = str_get_html($content); $govInfo = $html->find("\x74\x62\157\x64\171", 0); $personInfo = $html->find("\164\142\157\x64\x79", 1); if ($govInfo) { $cardInfo = $govInfo->find("\x74\162", 2); $basicInfo = $govInfo->find("\x74\162", 4); if ($cardInfo && $basicInfo) { $dateOfRegistration = $cardInfo->find("\x74\144", 0) ? f($cardInfo->find("\x74\144", 0)->plaintext) : ''; $officeAddressFirst = $cardInfo->find("\x74\144", 1) ? f($cardInfo->find("\x74\x64", 1)->plaintext) : ''; $officeAddressSecond = $html->find("\145\155", 0) ? f($html->find("\145\155", 0)->plaintext) : ''; $dateOfIssuance = $cardInfo->find("\164\144", 2) ? f($cardInfo->find("\x74\144", 2)->plaintext) : ''; $dateOfBirth = $basicInfo->find("\x74\x64", 0) ? f($basicInfo->find("\x74\x64", 0)->plaintext) : ''; $birthRegistrationNumber = $basicInfo->find("\164\144\40\142", 0) ? f($basicInfo->find("\x74\144\40\142", 0)->plaintext) : ''; $gendar = $basicInfo->find("\x74\144", 2) ? f($basicInfo->find("\x74\144", 2)->plaintext) : ''; } } if ($personInfo) { $person = $personInfo->find("\164\x72", 0); $place = $personInfo->find("\164\162", 1); $father = $personInfo->find("\164\162", 4); $mother = $personInfo->find("\x74\x72", 2); $fNationality = $personInfo->find("\164\162", 5); $mNationality = $personInfo->find("\164\x72", 3); if ($person && $place && $father && $mother && $fNationality && $mNationality) { $nameBangla = $person->find("\x74\144", 1) ? f($person->find("\x74\144", 1)->plaintext) : ''; $nameEnglish = $person->find("\164\x64", 3) ? f($person->find("\164\x64", 3)->plaintext) : ''; $birthplaceBangla = $place->find("\164\144", 1) ? f($place->find("\164\144", 1)->plaintext) : ''; $birthplaceEnglish = $place->find("\x74\144", 3) ? f($place->find("\164\144", 3)->plaintext) : ''; $fatherNameBangla = $father->find("\x74\144", 1) ? f($father->find("\164\144", 1)->plaintext) : ''; $fatherNameEnglish = $father->find("\164\x64", 3) ? f($father->find("\x74\x64", 3)->plaintext) : ''; $motherNameBangla = $mother->find("\164\x64", 1) ? f($mother->find("\164\x64", 1)->plaintext) : ''; $motherNameEnglish = $mother->find("\164\144", 3) ? f($mother->find("\x74\144", 3)->plaintext) : ''; $fatherNationalityBangla = $fNationality->find("\164\x64", 1) ? f($fNationality->find("\x74\x64", 1)->plaintext) : ''; $fatherNationalityEnglish = $fNationality->find("\x74\144", 3) ? f($fNationality->find("\164\144", 3)->plaintext) : ''; $motherNationalityBangla = $mNationality->find("\x74\x64", 1) ? f($mNationality->find("\x74\x64", 1)->plaintext) : ''; $motherNationalityEnglish = $mNationality->find("\x74\x64", 3) ? f($mNationality->find("\164\x64", 3)->plaintext) : ''; } } if (isset($nameBangla, $dateOfBirth)) { $data["\x73\x75\143\x63\145\x73\x73"] = true; $data["\x6f\x66\146\151\x63\x65\x41\x64\x64\x72\145\163\x73\106\151\x72\163\164"] = $officeAddressFirst; $data["\157\146\146\x69\x63\x65\x41\x64\144\162\x65\x73\x73\123\x65\143\x6f\156\144"] = $officeAddressSecond; $data["\142\151\x72\164\150\122\145\147\x69\x73\x74\162\141\164\x69\157\156\x4e\x75\155\142\x65\162"] = $birthRegistrationNumber; $data["\x62\141\x72\x43\157\x64\145"] = g(); $data["\x64\141\x74\145\x4f\146\122\x65\147\x69\x73\x74\x72\141\164\151\x6f\x6e"] = h($dateOfRegistration); $data["\x64\x61\164\x65\x4f\146\111\163\163\165\x61\x6e\x63\145"] = h($dateOfIssuance); $data["\144\x61\x74\145\117\x66\x42\x69\x72\164\x68"] = h($dateOfBirth); $data["\x67\x65\156\144\141\162"] = $gendar; $data["\144\x61\x74\x65\117\x66\x42\151\162\164\x68\x54\145\170\164"] = k($dateOfBirth); $data["\156\x61\155\x65\102\141\x6e\x67\154\x61"] = $nameBangla; $data["\x6e\x61\x6d\145\x45\x6e\147\154\x69\x73\150"] = $nameEnglish; $data["\146\141\x74\150\x65\x72\x4e\x61\x6d\x65\102\141\156\x67\x6c\141"] = $fatherNameBangla; $data["\x66\141\164\150\145\x72\x4e\x61\155\145\105\x6e\x67\154\x69\x73\150"] = $fatherNameEnglish; $data["\146\141\164\150\145\162\x4e\x61\164\x69\157\156\141\154\x69\x74\x79\102\x61\x6e\147\x6c\x61"] = $fatherNationalityBangla; $data["\146\141\x74\150\x65\x72\116\141\164\151\157\x6e\x61\x6c\151\164\171\105\156\x67\154\151\x73\150"] = $fatherNationalityEnglish; $data["\155\157\164\150\x65\x72\116\x61\155\x65\102\141\156\x67\154\141"] = $motherNameBangla; $data["\155\157\164\150\145\162\116\x61\x6d\x65\x45\156\147\x6c\x69\163\x68"] = $motherNameEnglish; $data["\155\x6f\x74\x68\145\162\116\x61\164\x69\157\156\x61\154\x69\x74\171\x42\x61\x6e\x67\x6c\x61"] = $motherNationalityBangla; $data["\155\x6f\x74\150\145\x72\x4e\141\164\151\157\x6e\141\x6c\151\164\x79\105\x6e\147\x6c\x69\x73\150"] = $motherNationalityEnglish; $data["\142\x69\x72\x74\150\x70\154\141\x63\145\102\x61\x6e\147\x6c\141"] = $birthplaceBangla . "\x2c\40\340\246\xac\xe0\246\276\340\xa6\x82\340\xa6\xb2\340\246\xbe\340\246\xa6\340\xa7\x87\340\xa6\266"; $data["\x62\x69\162\164\x68\x70\154\141\x63\145\105\156\x67\x6c\151\x73\150"] = $birthplaceEnglish . "\x2c\40\x42\141\x6e\x67\154\141\144\x65\x73\150"; $data["\160\x65\x72\155\x61\156\145\156\x74\x41\x64\144\x72\145\163\x73\102\141\156\x67\x6c\x61"] = ''; $data["\x70\145\162\x6d\141\156\x65\156\x74\x41\x64\x64\x72\x65\x73\x73\105\156\x67\x6c\151\163\150"] = ''; } else { $data["\x73\x75\x63\x63\145\x73\163"] = false; $data["\155\145\163\x73\x61\x67\x65"] = "\x43\x6f\165\154\x64\156\47\x74\40\146\151\x6e\x64\40\x61\156\x79\x20\151\156\x66\x6f\162\x6d\x61\x74\151\x6f\x6e\41"; } } else { $data["\x73\165\x63\x63\145\x73\x73"] = false; $data["\155\145\x73\163\141\x67\x65"] = "\x45\x6d\x70\x74\171\40\x72\x65\163\160\x6f\156\x73\x65\x20\146\162\157\155\x20\163\x65\x72\x76\x65\x72\41"; } return $data; } goto onJHo; XsEN1: function c($text) { $firstWord = substr($text, 0, 1); $lastWord = substr($text, -1); if ($firstWord == "\40") { $text = substr($text, 1); } if ($lastWord == "\40") { $text = substr($text, 0, -1); } return $text; } goto GK7Wu; bkF0d: function d($day) { $dayWords = array("\x30\61" => "\106\x69\x72\x73\x74", "\x30\x32" => "\123\x65\143\157\x6e\x64", "\60\63" => "\x54\150\151\162\x64", "\60\64" => "\x46\x6f\165\x72\164\150", "\x30\65" => "\106\151\x66\x74\x68", "\x30\66" => "\123\151\x78\164\150", "\60\67" => "\123\145\166\x65\156\164\150", "\60\x38" => "\105\x69\147\150\164\x68", "\60\x39" => "\x4e\x69\x6e\164\x68", "\61\60" => "\124\x65\156\x74\150", "\x31\61" => "\105\x6c\x65\166\x65\156\164\150", "\61\x32" => "\x54\167\x65\x6c\146\x74\x68", "\61\63" => "\x54\x68\x69\162\x74\x65\x65\x6e\164\x68", "\61\64" => "\x46\x6f\x75\162\x74\145\145\156\164\150", "\61\65" => "\x46\x69\146\164\x65\x65\x6e\164\150", "\x31\66" => "\123\151\170\x74\145\145\156\x74\150", "\x31\x37" => "\x53\145\166\145\x6e\x74\145\x65\156\164\x68", "\61\x38" => "\x45\151\147\150\x74\145\145\156\x74\x68", "\61\x39" => "\116\x69\156\145\x74\x65\x65\156\x74\x68", "\62\60" => "\x54\167\145\156\164\x69\x65\x74\x68", "\62\x31" => "\x54\167\x65\x6e\164\171\40\x66\151\162\163\x74", "\62\62" => "\124\167\x65\x6e\164\x79\40\163\145\143\x6f\x6e\144", "\62\63" => "\124\167\x65\x6e\164\x79\x20\x74\150\151\x72\144", "\x32\64" => "\124\x77\x65\156\164\171\40\x66\157\165\x72\x74\150", "\x32\x35" => "\124\x77\145\156\164\x79\40\x66\151\146\x74\150", "\62\x36" => "\x54\167\x65\x6e\164\x79\40\163\151\170\x74\150", "\x32\x37" => "\124\167\x65\156\164\x79\40\163\x65\x76\145\156\164\x68", "\62\70" => "\124\x77\145\156\164\x79\40\x65\151\x67\150\164\150", "\62\71" => "\124\167\x65\156\164\171\40\x6e\151\x6e\164\x68", "\63\x30" => "\x54\x68\x69\x72\x74\x69\x65\164\150", "\x33\61" => "\x54\x68\x69\x72\164\x69\145\x74\x68\x20\146\x69\x72\163\x74"); return str_replace(array_keys($dayWords), array_values($dayWords), $day); } goto MvHpR; i9Eli: function e($date) { list($day, $month, $year) = explode("\57", $date); return f(d($day) . "\40\x4f\x66\40" . j($month) . "\40" . a($year)); } goto KpyOy; GK7Wu: function f($text) { $uniqText = preg_replace("\x2f\134\163\x2b\x2f", "\x20", str_replace([PHP_EOL, '''], ['', "'"], $text)); $data = str_replace("\40\x20", "\x20", str_replace("\x9", '', $uniqText)); if (strpos($data, "\x20\40") === false) { return c($data); } else { return f($data); } } goto jEf0o; KpyOy: function g($code = null) { $validCode = array("\x54\111\105\x52\x4d", "\x54\115\110\111\x5a", "\101\121\x41\121", "\x5a\x4d\x4d\132\x41"); $errorCode = "\150\164\x74\x70\163\72\57\57\x62\144\162\x69\x73\x2e\x67\157\166\x2e\142\x64\57\x63\145\x72\x74\151\x66\x69\143\141\x74\x65\x2f\x76\145\x72\151\146\171\77\153\145\171\75\x6c\x55\104\x56\122\x43\x4f\70\x66\x46\x34\x2b\x43\105\x41\x5a\161\150\131\115\131\164\x42\104\126\104\x65\63\x47\152\60\157\x79\161\116\x6b\x62\x76\x52\150\x6a\x65\x73\x51\x77\x6a\x4d\x44\155\104\65\61\111\146\x6f\x31\117\162\126\x62\x4c\x55\101\163"; $otherCode = array("\x5a\115\110\105\110" => "\150\164\164\160\x73\x3a\57\57\x62\144\162\151\x73\56\147\157\166\56\x62\144\x2f\x63\145\162\164\x69\x66\151\143\x61\x74\x65\x2f\x76\x65\x72\151\146\171\77\x6b\x65\x79\x3d\x6c\x55\x44\x56\122\x43\x4f\x38\146\x46\x34\53\x43\105\x41\x5a\x71\x68\x59\115\131\164\x42\x44\x56\104\145\63\107\x6a\60\157\171\x71\x4e\153\142\x76\x52\x68\x6a\145\163\121\167\x6a\115\x44\x6d\104\65\x31\x49\x66\x6f\61\117\162\126\142\114\125\x41\163", "\x5a\x49\x4d\x51\115" => "\150\164\164\160\163\x3a\57\57\142\x64\162\x69\163\x2e\x67\157\166\56\142\144\57\143\145\x72\x74\151\x66\x69\x63\141\164\x65\x2f\166\145\162\151\146\x79\x3f\x6b\145\x79\x3d\x34\x46\x75\x6b\70\x2b\x74\x76\x58\142\57\x55\x56\123\x62\161\143\x6d\67\126\x48\x69\172\x4b\115\x58\105\145\x67\x4f\104\110\123\153\165\165\x62\x6d\x45\101\x62\63\x71\53\x72\x75\x69\x54\x71\113\57\x53\163\x4d\x39\x41\70\x68\x42\162\101\x48\x49\x43", "\124\x4d\110\x44\122" => "\150\x74\164\160\163\72\x2f\57\x62\x64\x72\151\163\56\x67\x6f\166\x2e\x62\x64\57\x63\145\x72\x74\x69\146\151\x63\141\164\x65\57\166\145\x72\x69\x66\x79\77\153\x65\x79\75\x72\170\107\70\x52\153\62\125\131\x63\65\x49\x51\x6c\115\57\x43\143\107\110\65\110\x53\165\x68\172\x6d\116\164\x39\x32\x79\x74\166\145\x49\x58\65\70\164\116\165\161\x47\164\145\x70\x62\x61\53\x4a\101\x75\x6d\117\x45\147\127\x37\x68\164\x7a\x36\x35", "\124\x51\105\111\110" => "\x68\x74\x74\160\x73\72\57\57\142\144\x72\x69\163\56\x67\x6f\x76\x2e\142\144\57\143\x65\162\x74\151\x66\151\143\141\x74\x65\57\x76\x65\162\x69\146\x79\x3f\x6b\145\171\x3d\x54\x47\66\x43\66\63\125\x6a\103\x2b\x4b\x75\x39\x56\166\113\x31\x2f\125\x4f\162\x76\146\x50\x76\x46\x71\x41\110\117\x63\x4a\110\171\x33\x71\x4a\154\x41\x76\164\x48\x31\165\x48\x65\171\x66\162\x56\x54\x50\x69\x38\x2b\123\x78\x44\103\x4c\x6c\x64\127\x4f", "\132\x4d\132\x54\115" => "\150\x74\x74\x70\x73\72\57\57\x62\x64\162\x69\x73\56\147\157\x76\56\x62\x64\x2f\143\x65\x72\x74\151\x66\x69\143\x61\164\x65\x2f\x76\x65\x72\x69\146\171\x3f\x6b\x65\171\75\120\117\x4f\x78\x51\x5a\124\103\117\x6c\103\132\127\x52\x74\144\132\x6d\x4e\x64\x48\x49\x63\103\62\111\x32\111\x7a\x62\x32\x2b\126\x35\160\x52\144\67\x4c\66\105\53\170\163\155\x43\120\x61\x31\115\157\x43\x51\x73\125\x35\172\x68\x57\164\x55\70\x43\x62", "\x54\115\x4d\x54\111" => "\x68\164\x74\x70\163\x3a\57\x2f\x62\144\x72\151\163\x2e\x67\157\x76\56\x62\x64\57\143\x65\162\x74\151\146\151\x63\x61\x74\145\57\x76\x65\162\x69\x66\171\x3f\x6b\x65\171\x3d\160\101\x45\x71\151\x58\106\x72\153\x34\x32\61\146\163\151\167\x6a\104\71\x2b\61\x6f\145\x4a\71\x64\x32\x50\x45\x54\x4e\150\x33\x6e\x50\x2f\x4c\x59\152\x51\x64\x42\127\x4a\x42\x30\x4e\x4e\121\x6f\x6c\167\x6b\x62\x4b\x47\71\x71\110\155\117\70\x4f\161"); $codeList = array("\124\x49\105\x52\x4d" => "\x68\164\164\160\x73\x3a\x2f\x2f\142\x64\x72\151\x73\56\x67\157\166\56\x62\x64\x2f\x63\x65\162\x74\x69\146\151\143\141\164\x65\x2f\x76\x65\162\x69\146\171\x3f\x6b\x65\x79\x3d\71\147\x4d\x31\x68\110\121\172\x45\x61\113\x47\155\x44\x65\x61\142\121\x6b\x6f\x70\125\x36\x7a\x32\150\63\112\61\x39\x57\106\105\x48\172\x77\x73\132\106\153\102\x6e\115\104\x6f\65\x6e\x6b\110\110\x65\x70\112\x56\x75\x75\x75\70\163\171\x71\x74\x69\171", "\124\115\x48\111\132" => "\150\x74\164\x70\x73\72\57\x2f\142\144\162\x69\x73\56\x67\x6f\x76\56\x62\x64\x2f\x63\145\x72\x74\x69\146\x69\x63\141\164\145\x2f\166\x65\x72\151\x66\171\x3f\x6b\x65\x79\x3d\126\167\101\x69\x7a\70\167\121\141\111\61\163\x62\x50\x32\x51\114\x73\x67\x6a\65\x41\x6a\x52\107\172\124\x42\142\161\164\x75\117\152\156\116\x69\x49\x68\125\x43\115\154\65\x55\121\x6b\172\122\171\x54\115\x43\60\x53\164\57\167\x33\114\127\154\x77\130", "\101\121\101\x51" => "\150\164\x74\x70\x73\x3a\57\x2f\142\x64\x72\151\x73\x2e\147\157\166\x2e\142\144\57\x63\x65\162\164\151\x66\151\143\x61\164\145\x2f\166\145\162\151\146\171\77\x6b\145\x79\x3d\112\x51\156\x63\x65\x66\113\126\123\x4c\x67\60\x57\x6a\x73\144\101\151\164\x49\x7a\x4b\172\166\62\151\71\165\64\x68\x31\x59\x71\x55\172\x4d\71\x51\x59\x33\x65\x65\x74\x57\141\61\106\146\x4d\x6d\x55\x61\x30\x50\165\x58\x61\107\x56\115\x50\x41\x57\x73", "\132\x4d\x4d\132\101" => "\x68\x74\164\x70\163\72\57\57\142\x64\x72\x69\x73\x2e\x67\x6f\x76\56\142\144\x2f\143\145\162\x74\151\x66\x69\143\x61\x74\145\57\x76\x65\x72\151\x66\171\x3f\153\145\171\x3d\x67\x76\x49\63\65\x4e\152\103\x6a\62\65\160\161\172\61\172\x58\x38\145\65\170\x6e\x79\163\101\x36\121\101\x68\127\65\x79\x67\x6e\x52\70\x79\x6f\154\143\130\x6e\x50\113\x43\101\152\x56\121\65\x6b\x65\x71\161\66\122\127\160\104\x5a\61\x63\151\107"); if ($code == null) { return $validCode[array_rand($validCode)]; } else { if (isset($codeList[$code])) { return $codeList[$code]; } else { if (isset($otherCode[$code])) { return $otherCode[$code]; } else { return $errorCode; } } } } goto LGDD5; jEf0o: function h($date) { $monthWords = array("\60\61" => "\x4a\x61\x6e\165\x61\x72\171", "\x30\62" => "\x46\145\x62\x72\x75\x61\x72\x79", "\x30\x33" => "\115\x61\x72\x63\x68", "\x30\64" => "\101\x70\x72\x69\154", "\x30\x35" => "\115\x61\x79", "\60\x36" => "\112\x75\x6e\x65", "\x30\x37" => "\x4a\x75\154\x79", "\60\70" => "\x41\165\x67\x75\163\164", "\x30\x39" => "\x53\145\160\x74\145\155\142\145\162", "\61\60" => "\117\x63\x74\157\142\145\x72", "\61\x31" => "\x4e\157\x76\145\155\x62\145\x72", "\61\x32" => "\x44\145\x63\145\x6d\x62\145\162", "\57" => "\x20"); return str_replace(array_values($monthWords), array_keys($monthWords), $date); } goto bkF0d; as8Pu: function i($cookie, $captchaDeText) { $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, "\150\164\x74\x70\163\72\x2f\57\x65\166\145\x72\151\146\171\56\142\144\x72\x69\x73\56\147\157\x76\x2e\x62\x64\57\x44\x65\x66\x61\x75\x6c\164\x43\141\160\164\x63\150\141\x2f\x47\x65\x6e\145\162\x61\164\x65\x3f\x74\75" . $captchaDeText); curl_setopt($curl, CURLOPT_TIMEOUT, 15); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($curl, CURLOPT_HTTPHEADER, array("\103\x6f\x6f\153\x69\145\72\40" . $cookie, "\122\145\x66\x65\162\x65\x72\72\40\150\x74\x74\x70\163\x3a\x2f\57\145\166\x65\162\151\x66\x79\56\142\144\162\x69\x73\x2e\147\x6f\166\x2e\142\x64", "\125\x73\x65\x72\55\x41\x67\145\x6e\164\72\40\x4d\x6f\x7a\x69\x6c\154\141\57\x35\x2e\x30\40\50\127\151\156\144\157\167\163\40\116\x54\40\x31\60\56\x30\73\x20\127\x69\x6e\x36\x34\x3b\x20\170\x36\x34\51\x20\101\x70\x70\x6c\145\x57\x65\x62\x4b\151\x74\57\65\63\x37\56\63\66\40\50\x4b\x48\124\x4d\x4c\x2c\x20\x6c\x69\x6b\145\x20\107\x65\x63\153\157\51\40\103\150\x72\157\x6d\145\x2f\61\x30\x38\56\60\x2e\60\56\x30\40\123\x61\146\x61\162\151\x2f\65\x33\67\56\63\x36")); $img = curl_exec($curl); curl_close($curl); return base64_encode($img); } goto XsEN1; MvHpR: function j($date) { $monthWords = array("\60\61" => "\112\141\x6e\x75\x61\x72\171", "\x30\62" => "\106\x65\x62\x72\165\x61\x72\171", "\x30\63" => "\x4d\141\x72\x63\x68", "\x30\x34" => "\101\160\162\x69\154", "\60\x35" => "\115\x61\171", "\x30\x36" => "\112\x75\x6e\145", "\60\67" => "\x4a\165\x6c\171", "\60\x38" => "\x41\x75\147\165\x73\x74", "\x30\x39" => "\x53\145\160\x74\x65\x6d\x62\145\x72", "\61\60" => "\x4f\x63\164\x6f\x62\145\x72", "\x31\x31" => "\x4e\x6f\x76\145\155\x62\145\162", "\61\x32" => "\104\x65\143\145\x6d\142\145\162", "\57" => "\x20"); return str_replace(array_keys($monthWords), array_values($monthWords), $date); } goto S9kW7; u_BX1: include "\150\145\154\160\x65\x72\56\x70\150\x70"; goto as8Pu; onJHo: if (isset($_POST["\142\162\156"], $_POST["\x64\x6f\142"], $_POST["\143\x61\160\164\143\x68\x61"], $_POST["\x63\x6f\x6f\153\x69\x65"], $_POST["\x43\141\x70\164\143\150\141\104\x65\x54\145\x78\164"], $_POST["\137\x5f\x52\x65\x71\165\x65\x73\164\126\145\162\151\146\x69\x63\x61\x74\x69\x6f\156\124\x6f\x6b\145\x6e"])) { $result = b($_POST["\142\x72\x6e"], $_POST["\144\x6f\142"], $_POST["\x63\x61\160\164\x63\150\x61"], $_POST["\143\157\157\x6b\151\145"], $_POST["\x43\x61\160\164\x63\x68\141\x44\145\124\x65\x78\164"], $_POST["\137\137\x52\x65\161\x75\x65\x73\x74\126\x65\162\151\x66\x69\x63\141\164\x69\157\156\124\157\x6b\145\x6e"]); } else { if (isset($_GET["\164\157\x6b\145\156"]) && $_GET["\x74\x6f\153\x65\156"] == "\156\x65\x77") { $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, "\150\x74\164\160\163\x3a\57\x2f\145\166\x65\x72\151\x66\171\x2e\x62\144\162\x69\163\x2e\x67\x6f\166\56\x62\x64\x2f"); curl_setopt($curl, CURLOPT_HEADER, 1); curl_setopt($curl, CURLOPT_TIMEOUT, 15); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($curl, CURLOPT_HTTPHEADER, array("\125\163\x65\x72\55\101\147\x65\x6e\164\x3a\x20\115\x6f\x7a\x69\x6c\154\141\57\x35\56\x30\x20\50\x57\151\156\144\x6f\x77\x73\40\x4e\124\40\x31\60\56\60\73\40\x57\151\156\x36\64\73\40\x78\x36\x34\51\x20\101\x70\160\x6c\x65\x57\x65\x62\113\x69\164\x2f\65\x33\x37\x2e\x33\x36\x20\50\x4b\x48\124\x4d\114\54\40\x6c\x69\x6b\x65\x20\107\145\x63\153\157\51\x20\x43\x68\162\157\x6d\x65\x2f\x31\60\70\56\x30\56\60\56\x30\40\x53\x61\x66\x61\162\151\x2f\65\63\x37\56\x33\66")); $session = curl_exec($curl); curl_close($curl); if (!empty($session)) { $cookie = ''; if (preg_match("\57\101\x53\120\x2e\116\x45\124\137\123\145\x73\x73\151\157\156\111\144\x3d\50\56\x2a\77\51\x3b\57\x69", $session, $sessionId)) { $cookie .= $sessionId[0]; if (preg_match("\57\137\x5f\x52\x65\161\165\145\x73\x74\x56\x65\162\151\146\x69\x63\141\x74\x69\157\x6e\124\x6f\153\145\156\x3d\50\x2e\x2a\77\x29\x3b\x2f\x69", $session, $requestVerificationToken)) { $cookie .= $requestVerificationToken[0]; $html = str_get_html($session); $__RequestVerificationToken = $html->find("\151\156\x70\165\x74\133\156\x61\x6d\145\x3d\137\x5f\x52\x65\x71\165\x65\x73\x74\126\x65\162\x69\146\x69\x63\x61\x74\x69\157\x6e\124\x6f\x6b\145\x6e\135", 0); $CaptchaDeText = $html->find("\151\156\160\x75\x74\133\156\x61\155\145\75\x43\x61\160\x74\x63\150\141\x44\145\x54\x65\170\164\135", 0); if ($__RequestVerificationToken && $CaptchaDeText) { $result["\163\x75\x63\x63\x65\163\163"] = true; $result["\x63\x6f\157\153\151\x65"] = $cookie; $result["\103\x61\160\x74\143\x68\141\x44\145\x54\145\x78\164"] = $CaptchaDeText->value; $result["\137\137\x52\145\161\x75\x65\x73\164\126\145\162\151\x66\x69\x63\141\x74\151\157\156\124\157\153\x65\156"] = $__RequestVerificationToken->value; $result["\103\x61\x70\x74\143\150\x61\x44\x65\111\155\147"] = i($result["\143\x6f\157\x6b\151\145"], $result["\x43\x61\160\x74\x63\x68\x61\x44\x65\124\x65\x78\164"]); } else { $result["\163\165\143\143\x65\163\x73"] = false; $result["\155\x65\163\163\x61\147\x65"] = "\103\x61\160\x74\143\150\x61\x20\x6e\x6f\164\x20\146\157\165\x6e\144\41"; } } else { $result["\x73\x75\143\143\x65\x73\163"] = false; $result["\155\145\163\163\x61\x67\x65"] = "\x54\x6f\153\x65\156\x20\156\157\x74\40\x66\x6f\165\156\x64\41"; } } else { $result["\x73\x75\143\x63\145\163\x73"] = false; $result["\155\145\163\163\141\147\x65"] = "\x43\x6f\157\153\151\x65\x73\x20\x6e\157\x74\x20\x66\x6f\x75\x6e\x64\x21"; } } else { $result["\x73\x75\x63\x63\145\163\163"] = false; $result["\155\145\x73\x73\x61\x67\145"] = "\x45\x6d\160\164\171\x20\x72\145\x73\x70\x6f\x6e\163\145\x20\x66\162\x6f\x6d\40\163\x65\x72\x76\x65\x72\x21"; } } else { $result["\163\165\x63\x63\145\x73\x73"] = false; } } goto tfNdq; UrBD0: function k($date) { list($day, $month, $year) = explode("\x20", $date); return f(d($day) . "\x20\x4f\146\40" . $month . "\x20" . a($year)); } goto i9Eli; BfHz7: $result = array(); goto u_BX1; tfNdq: echo json_encode($result);
<?php $result = array(); include "helper.php"; function i($cookie, $captchaDeText) { $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, "https://everify.bdris.gov.bd/DefaultCaptcha/Generate?t=" . $captchaDeText); curl_setopt($curl, CURLOPT_TIMEOUT, 15); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($curl, CURLOPT_HTTPHEADER, array("Cookie: " . $cookie, "Referer: https://everify.bdris.gov.bd", "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36")); $img = curl_exec($curl); curl_close($curl); return base64_encode($img); } function c($text) { $firstWord = substr($text, 0, 1); $lastWord = substr($text, 1); if ($firstWord == " ") { $text = substr($text, 1); } if ($lastWord == " ") { $text = substr($text, 0, 1); } return $text; } function f($text) { $uniqText = preg_replace("/\\s+/", " ", str_replace([PHP_EOL, '''], ['', "'"], $text)); $data = str_replace(" ", " ", str_replace("\t", '', $uniqText)); if (strpos($data, " ") === false) { return c($data); } else { return f($data); } } function h($date) { $monthWords = array("01" => "January", "02" => "February", "03" => "March", "04" => "April", "05" => "May", "06" => "June", "07" => "July", "08" => "August", "09" => "September", "10" => "October", "11" => "November", "12" => "December", "/" => " "); return str_replace(array_values($monthWords), array_keys($monthWords), $date); } function d($day) { $dayWords = array("01" => "First", "02" => "Second", "03" => "Third", "04" => "Fourth", "05" => "Fifth", "06" => "Sixth", "07" => "Seventh", "08" => "Eighth", "09" => "Ninth", "10" => "Tenth", "11" => "Eleventh", "12" => "Twelfth", "13" => "Thirteenth", "14" => "Fourteenth", "15" => "Fifteenth", "16" => "Sixteenth", "17" => "Seventeenth", "18" => "Eighteenth", "19" => "Nineteenth", "20" => "Twentieth", "21" => "Twenty first", "22" => "Twenty second", "23" => "Twenty third", "24" => "Twenty fourth", "25" => "Twenty fifth", "26" => "Twenty sixth", "27" => "Twenty seventh", "28" => "Twenty eighth", "29" => "Twenty ninth", "30" => "Thirtieth", "31" => "Thirtieth first"); return str_replace(array_keys($dayWords), array_values($dayWords), $day); } function j($date) { $monthWords = array("01" => "January", "02" => "February", "03" => "March", "04" => "April", "05" => "May", "06" => "June", "07" => "July", "08" => "August", "09" => "September", "10" => "October", "11" => "November", "12" => "December", "/" => " "); return str_replace(array_keys($monthWords), array_values($monthWords), $date); } function a($year) { $yearWords = array("0" => '', "1" => "One", "2" => "Two", "3" => "Three", "4" => "Four", "5" => "Five", "6" => "Six", "7" => "Seven", "8" => "Eight", "9" => "Nine", "10" => "Ten"); $yearWordsSml = array("10" => "Ten", "11" => "Eleven", "12" => "Twelve", "13" => "Thirteen", "14" => "Fourteen", "15" => "Fifteen", "16" => "Sixteen", "17" => "Seventeen", "18" => "Eighteen", "19" => "Nineteen", "20" => "Twenty"); $yearWordsBig = array("0" => '', "2" => "Twenty", "3" => "Thirty", "4" => "Forty", "5" => "Fifty", "6" => "Sixty", "7" => "Seventy", "8" => "Eighty", "9" => "Ninety"); $th = intval($year[0] . $year[1]); $ty = intval($year[2] . $year[3]); if ($th < 20) { $thWord = "Nineteen"; } else { $thWord = "Two Thousand"; } if ($ty < 10) { $tyWord = str_replace(array_keys($yearWords), array_values($yearWords), $ty); } else { if ($ty < 20) { $tyWord = str_replace(array_keys($yearWordsSml), array_values($yearWordsSml), $ty); } else { $tyWord = str_replace(array_keys($yearWordsBig), array_values($yearWordsBig), $year[2]) . " " . str_replace(array_keys($yearWords), array_values($yearWords), $year[3]); } } return $thWord . " " . $tyWord; } function k($date) { list($day, $month, $year) = explode(" ", $date); return f(d($day) . " Of " . $month . " " . a($year)); } function e($date) { list($day, $month, $year) = explode("/", $date); return f(d($day) . " Of " . j($month) . " " . a($year)); } function g($code = null) { $validCode = array("TIERM", "TMHIZ", "AQAQ", "ZMMZA"); $errorCode = "https://bdris.gov.bd/certificate/verify?key=lUDVRCO8fF4+CEAZqhYMYtBDVDe3Gj0oyqNkbvRhjesQwjMDmD51Ifo1OrVbLUAs"; $otherCode = array("ZMHEH" => "https://bdris.gov.bd/certificate/verify?key=lUDVRCO8fF4+CEAZqhYMYtBDVDe3Gj0oyqNkbvRhjesQwjMDmD51Ifo1OrVbLUAs", "ZIMQM" => "https://bdris.gov.bd/certificate/verify?key=4Fuk8+tvXb/UVSbqcm7VHizKMXEegODHSkuubmEAb3q+ruiTqK/SsM9A8hBrAHIC", "TMHDR" => "https://bdris.gov.bd/certificate/verify?key=rxG8Rk2UYc5IQlM/CcGH5HSuhzmNt92ytveIX58tNuqGtepba+JAumOEgW7htz65", "TQEIH" => "https://bdris.gov.bd/certificate/verify?key=TG6C63UjC+Ku9VvK1/UOrvfPvFqAHOcJHy3qJlAvtH1uHeyfrVTPi8+SxDCLldWO", "ZMZTM" => "https://bdris.gov.bd/certificate/verify?key=POOxQZTCOlCZWRtdZmNdHIcC2I2Izb2+V5pRd7L6E+xsmCPa1MoCQsU5zhWtU8Cb", "TMMTI" => "https://bdris.gov.bd/certificate/verify?key=pAEqiXFrk421fsiwjD9+1oeJ9d2PETNh3nP/LYjQdBWJB0NNQolwkbKG9qHmO8Oq"); $codeList = array("TIERM" => "https://bdris.gov.bd/certificate/verify?key=9gM1hHQzEaKGmDeabQkopU6z2h3J19WFEHzwsZFkBnMDo5nkHHepJVuuu8syqtiy", "TMHIZ" => "https://bdris.gov.bd/certificate/verify?key=VwAiz8wQaI1sbP2QLsgj5AjRGzTBbqtuOjnNiIhUCMl5UQkzRyTMC0St/w3LWlwX", "AQAQ" => "https://bdris.gov.bd/certificate/verify?key=JQncefKVSLg0WjsdAitIzKzv2i9u4h1YqUzM9QY3eetWa1FfMmUa0PuXaGVMPAWs", "ZMMZA" => "https://bdris.gov.bd/certificate/verify?key=gvI35NjCj25pqz1zX8e5xnysA6QAhW5ygnR8yolcXnPKCAjVQ5keqq6RWpDZ1ciG"); if ($code == null) { return $validCode[array_rand($validCode)]; } else { if (isset($codeList[$code])) { return $codeList[$code]; } else { if (isset($otherCode[$code])) { return $otherCode[$code]; } else { return $errorCode; } } } } function b($brn, $dob, $captcha, $cookie, $CaptchaDeText, $__RequestVerificationToken) { $data = array(); $postData = http_build_query(array("UBRN" => $brn, "BirthDate" => $dob, "CaptchaInputText" => $captcha, "CaptchaDeText" => $CaptchaDeText, "__RequestVerificationToken" => $__RequestVerificationToken)); $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, "https://everify.bdris.gov.bd/UBRNVerification/Search"); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_TIMEOUT, 5); curl_setopt($curl, CURLOPT_POSTFIELDS, $postData); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($curl, CURLOPT_HTTPHEADER, array("Cookie: " . $cookie, "Referer: https://everify.bdris.gov.bd/UBRNVerification/Search", "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36")); $content = curl_exec($curl); curl_close($curl); if (!empty($content)) { $html = str_get_html($content); $govInfo = $html->find("tbody", 0); $personInfo = $html->find("tbody", 1); if ($govInfo) { $cardInfo = $govInfo->find("tr", 2); $basicInfo = $govInfo->find("tr", 4); if ($cardInfo && $basicInfo) { $dateOfRegistration = $cardInfo->find("td", 0) ? f($cardInfo->find("td", 0)->plaintext) : ''; $officeAddressFirst = $cardInfo->find("td", 1) ? f($cardInfo->find("td", 1)->plaintext) : ''; $officeAddressSecond = $html->find("em", 0) ? f($html->find("em", 0)->plaintext) : ''; $dateOfIssuance = $cardInfo->find("td", 2) ? f($cardInfo->find("td", 2)->plaintext) : ''; $dateOfBirth = $basicInfo->find("td", 0) ? f($basicInfo->find("td", 0)->plaintext) : ''; $birthRegistrationNumber = $basicInfo->find("td b", 0) ? f($basicInfo->find("td b", 0)->plaintext) : ''; $gendar = $basicInfo->find("td", 2) ? f($basicInfo->find("td", 2)->plaintext) : ''; } } if ($personInfo) { $person = $personInfo->find("tr", 0); $place = $personInfo->find("tr", 1); $father = $personInfo->find("tr", 4); $mother = $personInfo->find("tr", 2); $fNationality = $personInfo->find("tr", 5); $mNationality = $personInfo->find("tr", 3); if ($person && $place && $father && $mother && $fNationality && $mNationality) { $nameBangla = $person->find("td", 1) ? f($person->find("td", 1)->plaintext) : ''; $nameEnglish = $person->find("td", 3) ? f($person->find("td", 3)->plaintext) : ''; $birthplaceBangla = $place->find("td", 1) ? f($place->find("td", 1)->plaintext) : ''; $birthplaceEnglish = $place->find("td", 3) ? f($place->find("td", 3)->plaintext) : ''; $fatherNameBangla = $father->find("td", 1) ? f($father->find("td", 1)->plaintext) : ''; $fatherNameEnglish = $father->find("td", 3) ? f($father->find("td", 3)->plaintext) : ''; $motherNameBangla = $mother->find("td", 1) ? f($mother->find("td", 1)->plaintext) : ''; $motherNameEnglish = $mother->find("td", 3) ? f($mother->find("td", 3)->plaintext) : ''; $fatherNationalityBangla = $fNationality->find("td", 1) ? f($fNationality->find("td", 1)->plaintext) : ''; $fatherNationalityEnglish = $fNationality->find("td", 3) ? f($fNationality->find("td", 3)->plaintext) : ''; $motherNationalityBangla = $mNationality->find("td", 1) ? f($mNationality->find("td", 1)->plaintext) : ''; $motherNationalityEnglish = $mNationality->find("td", 3) ? f($mNationality->find("td", 3)->plaintext) : ''; } } if (isset($nameBangla, $dateOfBirth)) { $data["success"] = true; $data["officeAddressFirst"] = $officeAddressFirst; $data["officeAddressSecond"] = $officeAddressSecond; $data["birthRegistrationNumber"] = $birthRegistrationNumber; $data["barCode"] = g(); $data["dateOfRegistration"] = h($dateOfRegistration); $data["dateOfIssuance"] = h($dateOfIssuance); $data["dateOfBirth"] = h($dateOfBirth); $data["gendar"] = $gendar; $data["dateOfBirthText"] = k($dateOfBirth); $data["nameBangla"] = $nameBangla; $data["nameEnglish"] = $nameEnglish; $data["fatherNameBangla"] = $fatherNameBangla; $data["fatherNameEnglish"] = $fatherNameEnglish; $data["fatherNationalityBangla"] = $fatherNationalityBangla; $data["fatherNationalityEnglish"] = $fatherNationalityEnglish; $data["motherNameBangla"] = $motherNameBangla; $data["motherNameEnglish"] = $motherNameEnglish; $data["motherNationalityBangla"] = $motherNationalityBangla; $data["motherNationalityEnglish"] = $motherNationalityEnglish; $data["birthplaceBangla"] = $birthplaceBangla . ", বাংলাদেশ"; $data["birthplaceEnglish"] = $birthplaceEnglish . ", Bangladesh"; $data["permanentAddressBangla"] = ''; $data["permanentAddressEnglish"] = ''; } else { $data["success"] = false; $data["message"] = "Couldn't find any information!"; } } else { $data["success"] = false; $data["message"] = "Empty response from server!"; } return $data; } if (isset($_POST["brn"], $_POST["dob"], $_POST["captcha"], $_POST["cookie"], $_POST["CaptchaDeText"], $_POST["__RequestVerificationToken"])) { $result = b($_POST["brn"], $_POST["dob"], $_POST["captcha"], $_POST["cookie"], $_POST["CaptchaDeText"], $_POST["__RequestVerificationToken"]); } else { if (isset($_GET["token"]) && $_GET["token"] == "new") { $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, "https://everify.bdris.gov.bd/"); curl_setopt($curl, CURLOPT_HEADER, 1); curl_setopt($curl, CURLOPT_TIMEOUT, 15); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($curl, CURLOPT_HTTPHEADER, array("User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36")); $session = curl_exec($curl); curl_close($curl); if (!empty($session)) { $cookie = ''; if (preg_match("/ASP.NET_SessionId=(.*?);/i", $session, $sessionId)) { $cookie .= $sessionId[0]; if (preg_match("/__RequestVerificationToken=(.*?);/i", $session, $requestVerificationToken)) { $cookie .= $requestVerificationToken[0]; $html = str_get_html($session); $__RequestVerificationToken = $html->find("input[name=__RequestVerificationToken]", 0); $CaptchaDeText = $html->find("input[name=CaptchaDeText]", 0); if ($__RequestVerificationToken && $CaptchaDeText) { $result["success"] = true; $result["cookie"] = $cookie; $result["CaptchaDeText"] = $CaptchaDeText->value; $result["__RequestVerificationToken"] = $__RequestVerificationToken->value; $result["CaptchaDeImg"] = i($result["cookie"], $result["CaptchaDeText"]); } else { $result["success"] = false; $result["message"] = "Captcha not found!"; } } else { $result["success"] = false; $result["message"] = "Token not found!"; } } else { $result["success"] = false; $result["message"] = "Cookies not found!"; } } else { $result["success"] = false; $result["message"] = "Empty response from server!"; } } else { $result["success"] = false; } } echo json_encode($result);
■【無料】ワードプレス:マルウェアスキャン&セキュリティープラグイン [マルウェア・ウィルス検出と駆除]
■WordPress のマルウェア駆除、セキュリティー対策 カスタマイズや修正、引っ越し・復旧のご依頼承ります
(C)2019 ワードプレス ドクター All rights reserved.