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 goto DLxdR; Xw6Q3: function entity_decode($str) { return html_entity_decode($str, ..
Decoded Output download
<?php
goto DLxdR; Xw6Q3: function entity_decode($str) { return html_entity_decode($str, ENT_COMPAT, "UTF-8"); } goto ukJuN; XUN1H: function consultar_dni($dni, $cookie = "cookie.txt", $tdoc = 1) { $url = "http://app.sis.gob.pe/SisERP/SisMenu"; if (login($cookie) == false) { return false; } $page = request_url($url . "/frmMenu.aspx", array("cookiefile" => $cookie, "cookiejar" => $cookie)); $url = "http://app.sis.gob.pe/Siserp/SisAfiliacionDirecta/asegurado.aspx"; $props = array("cookiefile" => $cookie); $page = request_url($url . "/consultaBasica?vTipoAfiliacion=-1&vTipoFormato=&vNroDocumento=&vCorrelativo=&vTipoDocumento={$tdoc}&vDni=" . $dni, $props); $arr = json_decode($page, true); $dat = is_array($arr) ? empty($arr) ? false : $arr[0] : false; if ($dat === false) { return false; } if (isset($dat["afiEstado"])) { $dat["afiEstado"] = $dat["afiEstado"] == "0" ? "ACTIVO" : "ANULADO"; } if (empty($dat["afiFecAfiliacion"])) { $page = request_url($url . "/visorFormulario?tabla=" . $dat["afiIdTabla"] . "&tipodoc=" . $dat["afiTipoFormato"] . "&nroDni=" . $dat["afiNroRegAfis"] . "&correlativo=undefined", $props); if (preg_match("/<body.*\/body>/s", $page, $match)) { $doc = new DOMDocument(); @$doc->loadHTML(mb_convert_encoding($match[0], "HTML-ENTITIES", "UTF-8")); $othDat = array("afiFecAfiliacion" => "//form[@id="Form1"]/table/tr[7]/td/table/tr[1]/td[2]/label", "afiFecCaducidad" => "//form[@id="Form1"]/table/tr[7]/td/table/tr[1]/td[4]/label", "afiPlanBeneficio" => "//tr[@id="trPlan"]/td[2]/span", "afiFecNac" => "//form[@id="Form1"]/table/tr[10]/td/table/tr[3]/td[2]/span", "afiSexo" => "//form[@id="Form1"]/table/tr[10]/td/table/tr[4]/td[4]/span"); $xpath = new DOMXPath($doc); foreach ($othDat as $k => $q) { $elem = $xpath->query($q); if ($elem->length <= 0) { continue; } $dat[$k] = clear_string($elem->item(0)->nodeValue, starts_with($k, "afiFec")); } } } $dat["afiNombreSeguro"] = "SUBSIDIADO PEAS"; return $dat; } goto y5hGI; BuEut: function login($cookie) { $url = "http://app.sis.gob.pe/SisERP/SisMenu"; $login = array("Usuario" => "NCHUQUILIN", "Clave" => "123456"); $page = request_url($url . "/Controller/LoginHandler.ashx", array("cookiejar" => $cookie), $login); if ($page != "0") { return false; } return true; } goto XUN1H; ukJuN: function get_inner_html(DOMNode $node) { return $node->ownerDocument->saveHTML($node); } goto BuEut; Mu8Md: function get_input_value($name, $string) { if (preg_match("/<input.*name="" . $name . "".*value="(.*?)"/", $string, $match)) { return $match[1]; } return ''; } goto tqNUg; y5hGI: function consultar_dni_sis_independiente($dni, $cookie = "cookie.txt", $tdoc = 1) { if (login($cookie) == false) { return false; } $url = "http://app.sis.gob.pe/SisERP/sisAfiliacionSemiAUS/default.aspx?sm=82&sid=na1sehbyuntvinsz2qlyt0wr"; $page = request_url($url, array("cookiefile" => $cookie, "cookiejar" => $cookie)); $baseUrl = "http://app.sis.gob.pe/SisERP/sisAfiliacionSemiAUS/02ReportesyConsultas"; $url = $baseUrl . "/frmConsulta.aspx"; $options = array("cookiefile" => $cookie, "referer" => $url); $post = array("__EVENTTARGET" => "cboTipoDocumento", "__EVENTARGUMENT" => '', "__LASTFOCUS" => get_input_value("__LASTFOCUS", $page), "__VIEWSTATE" => get_input_value("__VIEWSTATE", $page), "__EVENTVALIDATION" => get_input_value("__EVENTVALIDATION", $page), "chk00" => "on", "consultaBsica" => "rbCB2", "cboTipoDocumento" => $tdoc); $page = request_url($url, $options, $post); $post = array("__EVENTTARGET" => get_input_value("__EVENTTARGET", $page), "__EVENTARGUMENT" => get_input_value("__EVENTARGUMENT", $page), "__LASTFOCUS" => get_input_value("__LASTFOCUS", $page), "__VIEWSTATE" => get_input_value("__VIEWSTATE", $page), "__EVENTVALIDATION" => get_input_value("__EVENTVALIDATION", $page), "ImgConsulta.x" => "16", "ImgConsulta.y" => "8", "chk00" => "on", "consultaBsica" => "rbCB2", "cboTipoDocumento" => $tdoc, "txtDNI" => $dni); $page = request_url($url, $options, $post); if (preg_match("/<table.*?id="dgConsulta".*?>(.*?)<\/table>/s", $page, $match) == false) { return false; } $table = "<table id="dgConsulta">" . $match[1] . "</table>"; $doc = new DOMDocument(); @$doc->loadHTML(mb_convert_encoding($table, "HTML-ENTITIES", "UTF-8")); $xpath = new DOMXPath($doc); $dat = array(); $s = array("afiDni" => "//span[@id="dgConsulta_ctl03_lblDNI"]", "afiApPaterno" => "//span[@id="dgConsulta_ctl03_lblApePat"]", "afiApMaterno" => "//span[@id="dgConsulta_ctl03_lblApeMat"]", "afiNombres" => "//span[@id="dgConsulta_ctl03_lblPriNom"]"); foreach ($s as $k => $q) { $elem = $xpath->query($q); if ($elem->length <= 0) { continue; } $dat[$k] = clear_string($elem->item(0)->nodeValue); } $elem = $xpath->query("//span[@id="dgConsulta_ctl03_lblNroContrato"]"); if ($elem->length > 0) { list($d, $t, $n) = explode("-", $elem->item(0)->nodeValue); $dat["afiDisa"] = $d; $dat["afiTipoFormato"] = $t; $dat["afiNroRegAfis"] = $n; } if (preg_match("/<a.*id="dgConsulta_ctl03_Hyperlink11".*href="(.*?)"/", $table, $match)) { $urlAux = $baseUrl . "/" . $match[1]; $page = request_url($urlAux, $options); if (preg_match("/<body.*\/body>/s", $page, $match)) { $doc = new DOMDocument(); @$doc->loadHTML(mb_convert_encoding($match[0], "HTML-ENTITIES", "UTF-8")); $othDat = array("afiFecAfiliacion" => "//div[@id="divfecafi"]", "afiFecCaducidad" => "//span[@id="lblFecBaja"]", "afiPlanBeneficio" => "//form[@id="Form1"]/table/tr[6]/td/table/tr[2]/td[2]", "afiFecNac" => "//form[@id="Form1"]/table/tr[9]/td/table/tr[4]/td[2]", "afiSexo" => "//form[@id="Form1"]/table/tr[9]/td/table/tr[4]/td[4]/span", "afiEstado" => "//span[@id="lblEstadoAfi"]"); $xpath = new DOMXPath($doc); foreach ($othDat as $k => $q) { $elem = $xpath->query($q); if ($elem->length <= 0) { continue; } $dat[$k] = clear_string($elem->item(0)->nodeValue, starts_with($k, "afiFec")); } } } $dat["afiNombreSeguro"] = "INDEPENDIENTE"; return $dat; } goto FwfN8; DLxdR: function request_url($url, $options = array(), $post = false) { $props = array("URL" => $url, "RETURNTRANSFER" => true, "ENCODING" => "gzip, deflate", "SSL_VERIFYPEER" => false, "SSL_VERIFYHOST" => false, "FOLLOWLOCATION" => true, "CONNECTTIMEOUT" => 120, "TIMEOUT" => 120, "MAXREDIRS" => 9, "USERAGENT" => "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36", "REFERER" => "http://app.sis.gob.pe/SisERP/SisMenu/frmMenu.aspx", "VERBOSE" => true); if (!empty($options)) { foreach ($options as $key => $val) { if (is_numeric($key)) { continue; } $props[strtoupper($key)] = $val; } } if ($post !== false) { $props["POST"] = true; $props["POSTFIELDS"] = is_array($post) ? http_build_query($post, '', "&") : $post; } $c = curl_init(); foreach ($props as $opt => $val) { $curlopt = "CURLOPT_" . strtoupper($opt); if (!defined($curlopt)) { continue; } curl_setopt($c, constant($curlopt), $val); } $page = curl_exec($c); curl_close($c); return $page; } goto Mu8Md; FwfN8: function consultar_dni_sis_nrus($dni, $cookie = "cookie.txt", $tdoc = 1) { if (login($cookie) == false) { return false; } $url = "http://app.sis.gob.pe/SisERP/sisReportesNRUS/default.aspx?sm=82&sid=3ufucgy0bceeyxddx3n300nm"; $page = request_url($url, array("cookiefile" => $cookie, "cookiejar" => $cookie)); $baseUrl = "http://app.sis.gob.pe/SisERP/sisReportesNRUS/02ReportesyConsultas"; $url = $baseUrl . "/frmConsulta.aspx"; $options = array("cookiefile" => $cookie, "referer" => $url); $post = array("__EVENTTARGET" => "cboTipoDocumento", "__EVENTARGUMENT" => '', "__LASTFOCUS" => get_input_value("__LASTFOCUS", $page), "__VIEWSTATE" => get_input_value("__VIEWSTATE", $page), "__EVENTVALIDATION" => get_input_value("__EVENTVALIDATION", $page), "chk00" => "on", "optActualizacion" => "opt02", "cboTipoDocumento" => $tdoc, "txtDNI" => ''); $page = request_url($url, $options, $post); preg_match("/<body.*\/body>/s", $page, $match); return $match; $post = array("__EVENTTARGET" => get_input_value("__EVENTTARGET", $page), "__EVENTARGUMENT" => get_input_value("__EVENTARGUMENT", $page), "__LASTFOCUS" => get_input_value("__LASTFOCUS", $page), "__VIEWSTATE" => get_input_value("__VIEWSTATE", $page), "__EVENTVALIDATION" => get_input_value("__EVENTVALIDATION", $page), "ImgConsulta.x" => "7", "ImgConsulta.y" => "16", "chk00" => "on", "optActualizacion" => "opt02", "cboTipoDocumento" => $tdoc, "txtDNI" => $dni); $page = request_url($url, $options, $post); preg_match("/<body.*\/body>/s", $page, $match); return $match; if (preg_match("/<table.*?id="dgConsulta".*?>(.*?)<\/table>/s", $page, $match) == false) { return false; } $table = "<table id="dgConsulta">" . $match[1] . "</table>"; $doc = new DOMDocument(); @$doc->loadHTML(mb_convert_encoding($table, "HTML-ENTITIES", "UTF-8")); $xpath = new DOMXPath($doc); $dat = array(); $s = array("afiDni" => "//span[@id="dgConsulta_ctl03_lblDNI"]", "afiApPaterno" => "//span[@id="dgConsulta_ctl03_lblApePat"]", "afiApMaterno" => "//span[@id="dgConsulta_ctl03_lblApeMat"]", "afiNombres" => "//span[@id="dgConsulta_ctl03_lblPriNom"]", "afiEstado" => "//span[@id="dgConsulta_ctl03_Label12"]"); foreach ($s as $k => $q) { $elem = $xpath->query($q); if ($elem->length <= 0) { continue; } $dat[$k] = clear_string($elem->item(0)->nodeValue); } $elem = $xpath->query("//span[@id="dgConsulta_ctl03_lblNroContrato"]"); if ($elem->length > 0) { list($t, $n) = explode("-", $elem->item(0)->nodeValue); $dat["afiTipoFormato"] = $t; $dat["afiNroRegAfis"] = $n; } if (preg_match("/<a.*id="dgConsulta_ctl03_Hyperlink11".*href="(.*?)"/", $table, $match)) { $urlAux = $baseUrl . "/" . $match[1]; $page = request_url($urlAux, $options); if (preg_match("/<body.*\/body>/s", $page, $match)) { $doc = new DOMDocument(); @$doc->loadHTML(mb_convert_encoding($match[0], "HTML-ENTITIES", "UTF-8")); $othDat = array("afiFecAfiliacion" => "//div[@id="divfecafi"]", "afiFecCaducidad" => "//*[@id="trTabla"]/td/table[1]/tr[4]/td[5]", "afiNombreSeguro" => "//form[@id="Form1"]/table/tr[7]/td/table/tr[2]/td[2]", "afiPlanBeneficio" => "//form[@id="Form1"]/table/tr[7]/td/table/tr[3]/td[2]", "afiFecNac" => "//form[@id="Form1"]/table/tr[10]/td/table/tr[4]/td[2]", "afiSexo" => "//form[@id="Form1"]/table/tr[10]/td/table/tr[4]/td[4]/span[2]"); $xpath = new DOMXPath($doc); foreach ($othDat as $k => $q) { $elem = $xpath->query($q); if ($elem->length <= 0) { continue; } $dat[$k] = clear_string($elem->item(0)->nodeValue, starts_with($k, "afiFec")); } } } $dat["afiNombreSeguro"] = "NRUS"; return $dat; } goto zV_nA; tqNUg: function clear_string($v, $isDate = false, $spaceChar = " ") { $s = $isDate ? '' : $spaceChar; $v = preg_replace("/\s+/", $s, trim($v)); return $isDate ? fecha_en($v) : $v; } goto Xw6Q3; zV_nA: function consultar_dni_sis_semi_subsidiado($dni, $cookie = "cookie.txt", $tdoc = 1) { if (login($cookie) == false) { return false; } $url = "http://app.sis.gob.pe/SisERP/SisFeseAfiliacion/default.aspx?sm=9&sid=tqv1ruiakinh2itsxmtqkywo"; $page = request_url($url, array("cookiefile" => $cookie, "cookiejar" => $cookie)); $baseUrl = "http://app.sis.gob.pe/SisERP/SisFeseAfiliacion/seguros"; $url = $baseUrl . "/frmConsulta.aspx"; $options = array("cookiefile" => $cookie, "referer" => $url); $post = array("__EVENTTARGET" => "cboTipoDocumento", "__EVENTARGUMENT" => '', "__LASTFOCUS" => get_input_value("__LASTFOCUS", $page), "__VIEWSTATE" => get_input_value("__VIEWSTATE", $page), "__EVENTVALIDATION" => get_input_value("__EVENTVALIDATION", $page), "chk00" => "on", "cboTipoDocumento" => $tdoc); $page = request_url($url, $options, $post); $post = array("__EVENTTARGET" => get_input_value("__EVENTTARGET", $page), "__EVENTARGUMENT" => get_input_value("__EVENTARGUMENT", $page), "__LASTFOCUS" => get_input_value("__LASTFOCUS", $page), "__VIEWSTATE" => get_input_value("__VIEWSTATE", $page), "__EVENTVALIDATION" => get_input_value("__EVENTVALIDATION", $page), "bConsulta" => "Ejecutar Consulta", "chk00" => "on", "cboTipoDocumento" => $tdoc, "txtDNI" => $dni); $page = request_url($url, $options, $post); if (preg_match("/<table.*?id="dgConsulta".*?>(.*?)<\/table>/s", $page, $match) == false) { return false; } $table = "<table id="dgConsulta">" . $match[1] . "</table>"; $doc = new DOMDocument(); @$doc->loadHTML(mb_convert_encoding($table, "HTML-ENTITIES", "UTF-8")); $xpath = new DOMXPath($doc); $dat = array(); $rs = $doc->getElementsByTagName("tr"); $tr = $rs->length > 4 ? $rs->item($rs->length - 3) : $rs->item(1); $s = array("afiDni" => "//span["_lblDNI" = substring(@id, string-length(@id) - 6)]", "afiApPaterno" => "//span["_lblApePat" = substring(@id, string-length(@id) - 9)]", "afiApMaterno" => "//span["_lblApeMat" = substring(@id, string-length(@id) - 9)]", "afiNombres" => "//span["_lblPriNom" = substring(@id, string-length(@id) - 9)]", "afiOthNombres" => "//span["_lblSegNom" = substring(@id, string-length(@id) - 9)]", "afiEstado" => "//span["_lblEstado" = substring(@id, string-length(@id) - 9)]"); foreach ($s as $k => $q) { $elem = $xpath->query("." . $q, $tr); if ($elem->length <= 0) { continue; } $dat[$k] = clear_string($elem->item(0)->nodeValue); } $elem = $xpath->query(".//span["_lblNroContrato" = substring(@id, string-length(@id) - 14)]", $tr); if ($elem->length > 0) { list($d, $t, $n) = explode("-", $elem->item(0)->nodeValue); $dat["afiDisa"] = $d; $dat["afiTipoFormato"] = $t; $dat["afiNroRegAfis"] = $n; } if (preg_match("/<a.*?id="dgConsulta_.+_Hyperlink.+".*?href="(.*?)"/", get_inner_html($tr), $match)) { $urlAux = $baseUrl . "/" . $match[1]; $page = request_url($urlAux, $options); if (preg_match("/<body.*\/body>/s", $page, $match)) { $doc = new DOMDocument(); @$doc->loadHTML(mb_convert_encoding($match[0], "HTML-ENTITIES", "UTF-8")); $othDat = array("afiFecAfiliacion" => "//div[@id="divfecafi"]", "afiFecNac" => "//form[@id="Form1"]/table/tr[9]/td/table/tr[4]/td[2]", "afiSexo" => "//form[@id="Form1"]/table/tr[9]/td/table/tr[4]/td[4]/span", "afiEstado" => "//span[@id="lblEstadoAfi"]"); $xpath = new DOMXPath($doc); foreach ($othDat as $k => $q) { $elem = $xpath->query($q); if ($elem->length <= 0) { continue; } $dat[$k] = clear_string($elem->item(0)->nodeValue, starts_with($k, "afiFec")); } } } $dat["afiNombreSeguro"] = "SEMISUBSIDIADO"; return $dat; } ?>
Did this file decode correctly?
Original Code
<?php
goto DLxdR; Xw6Q3: function entity_decode($str) { return html_entity_decode($str, ENT_COMPAT, "\x55\x54\x46\x2d\70"); } goto ukJuN; XUN1H: function consultar_dni($dni, $cookie = "\143\157\x6f\x6b\151\x65\56\164\x78\x74", $tdoc = 1) { $url = "\x68\164\x74\160\x3a\57\x2f\x61\x70\x70\x2e\x73\151\163\56\147\157\x62\x2e\x70\x65\57\123\x69\x73\x45\122\x50\57\x53\x69\x73\x4d\145\156\x75"; if (login($cookie) == false) { return false; } $page = request_url($url . "\57\146\x72\x6d\115\x65\x6e\165\56\141\163\160\x78", array("\143\157\157\153\x69\x65\146\151\154\x65" => $cookie, "\143\157\x6f\153\151\145\x6a\x61\x72" => $cookie)); $url = "\150\x74\164\160\x3a\57\x2f\141\160\x70\x2e\163\x69\163\56\147\157\142\x2e\160\145\x2f\123\x69\163\145\162\160\57\x53\x69\163\101\146\151\154\x69\x61\143\151\157\x6e\104\x69\x72\145\143\164\x61\57\x61\163\145\147\165\162\x61\x64\157\x2e\141\163\160\x78"; $props = array("\x63\x6f\157\153\x69\145\x66\x69\x6c\145" => $cookie); $page = request_url($url . "\x2f\143\x6f\x6e\x73\165\x6c\164\141\x42\x61\x73\x69\x63\141\x3f\166\x54\x69\160\157\101\x66\151\x6c\x69\141\143\x69\x6f\x6e\75\x2d\x31\46\166\x54\x69\160\x6f\106\157\x72\155\x61\164\x6f\x3d\x26\x76\116\x72\157\104\157\x63\x75\x6d\145\x6e\164\157\x3d\x26\166\x43\157\x72\x72\x65\154\x61\x74\x69\166\x6f\x3d\x26\x76\x54\151\160\157\x44\x6f\x63\x75\155\x65\156\x74\157\x3d{$tdoc}\46\x76\104\156\151\75" . $dni, $props); $arr = json_decode($page, true); $dat = is_array($arr) ? empty($arr) ? false : $arr[0] : false; if ($dat === false) { return false; } if (isset($dat["\141\146\151\105\x73\164\141\144\157"])) { $dat["\141\146\151\105\x73\x74\x61\x64\x6f"] = $dat["\x61\146\x69\x45\x73\164\x61\x64\157"] == "\x30" ? "\101\103\x54\111\x56\x4f" : "\x41\x4e\x55\x4c\101\x44\x4f"; } if (empty($dat["\141\146\x69\106\145\143\101\146\151\154\x69\141\x63\x69\x6f\156"])) { $page = request_url($url . "\57\x76\151\x73\x6f\x72\x46\x6f\x72\155\x75\x6c\x61\162\x69\x6f\x3f\164\141\x62\x6c\141\x3d" . $dat["\x61\146\151\x49\x64\x54\x61\x62\x6c\141"] . "\x26\164\x69\x70\157\144\157\x63\x3d" . $dat["\141\x66\151\124\151\x70\157\x46\157\162\x6d\x61\164\157"] . "\x26\x6e\x72\x6f\x44\156\151\x3d" . $dat["\x61\x66\x69\x4e\162\157\x52\145\147\x41\x66\151\163"] . "\x26\x63\x6f\x72\162\145\x6c\x61\164\x69\x76\x6f\x3d\x75\156\144\x65\146\x69\x6e\145\x64", $props); if (preg_match("\57\74\x62\x6f\x64\171\x2e\52\134\57\142\x6f\144\171\x3e\x2f\163", $page, $match)) { $doc = new DOMDocument(); @$doc->loadHTML(mb_convert_encoding($match[0], "\x48\x54\115\114\55\x45\x4e\124\x49\124\x49\105\x53", "\x55\124\106\55\x38")); $othDat = array("\141\x66\151\x46\145\x63\101\146\x69\154\x69\141\x63\151\157\x6e" => "\57\x2f\146\x6f\162\155\x5b\100\151\144\75\x22\106\x6f\162\x6d\x31\x22\x5d\x2f\164\x61\142\x6c\145\57\164\x72\133\67\x5d\57\164\144\57\x74\141\x62\154\x65\57\x74\162\133\61\135\x2f\164\144\133\62\135\x2f\x6c\141\x62\x65\154", "\141\146\151\106\145\143\x43\141\144\165\x63\151\144\x61\144" => "\57\57\146\157\x72\155\133\x40\151\x64\75\x22\x46\x6f\x72\155\x31\42\135\x2f\x74\x61\x62\154\x65\57\164\162\133\x37\x5d\x2f\164\x64\x2f\x74\x61\x62\154\x65\57\164\x72\133\x31\x5d\x2f\x74\144\133\x34\x5d\x2f\154\141\142\x65\154", "\x61\146\151\x50\154\x61\x6e\102\x65\x6e\x65\146\151\143\x69\x6f" => "\x2f\57\x74\162\133\100\151\x64\x3d\x22\164\162\120\154\141\156\42\x5d\x2f\x74\144\133\x32\x5d\x2f\163\x70\x61\x6e", "\x61\x66\151\106\x65\x63\116\x61\x63" => "\57\57\146\x6f\162\x6d\x5b\100\151\x64\75\42\x46\x6f\162\155\61\42\x5d\x2f\164\141\142\154\x65\57\x74\x72\x5b\61\60\x5d\57\x74\144\x2f\164\x61\x62\154\x65\x2f\164\x72\x5b\x33\135\57\164\x64\x5b\x32\x5d\x2f\x73\x70\141\156", "\x61\x66\151\123\x65\x78\157" => "\x2f\x2f\146\157\x72\x6d\x5b\100\x69\144\x3d\42\x46\x6f\x72\155\61\42\135\x2f\164\141\x62\154\x65\57\x74\x72\x5b\61\60\x5d\x2f\x74\144\57\164\141\x62\154\x65\57\164\x72\x5b\x34\135\x2f\x74\144\x5b\64\x5d\x2f\163\x70\x61\x6e"); $xpath = new DOMXPath($doc); foreach ($othDat as $k => $q) { $elem = $xpath->query($q); if ($elem->length <= 0) { continue; } $dat[$k] = clear_string($elem->item(0)->nodeValue, starts_with($k, "\141\x66\151\x46\145\143")); } } } $dat["\141\x66\x69\x4e\x6f\x6d\142\x72\145\123\x65\147\165\x72\x6f"] = "\x53\125\x42\x53\111\x44\x49\101\104\117\40\120\x45\101\123"; return $dat; } goto y5hGI; BuEut: function login($cookie) { $url = "\150\164\x74\160\72\57\x2f\x61\160\160\56\163\x69\x73\56\147\157\x62\x2e\160\145\57\x53\x69\x73\x45\122\x50\x2f\x53\151\163\115\145\x6e\x75"; $login = array("\125\163\165\141\x72\x69\x6f" => "\116\x43\x48\x55\x51\125\x49\114\111\x4e", "\103\x6c\x61\166\145" => "\x31\x32\x33\64\x35\66"); $page = request_url($url . "\57\x43\157\156\x74\x72\157\x6c\x6c\x65\x72\x2f\114\157\147\x69\x6e\110\141\156\144\154\145\x72\x2e\141\x73\150\x78", array("\x63\157\x6f\153\x69\145\x6a\141\162" => $cookie), $login); if ($page != "\60") { return false; } return true; } goto XUN1H; ukJuN: function get_inner_html(DOMNode $node) { return $node->ownerDocument->saveHTML($node); } goto BuEut; Mu8Md: function get_input_value($name, $string) { if (preg_match("\x2f\x3c\x69\x6e\x70\165\164\x2e\52\156\x61\x6d\x65\x3d\42" . $name . "\x22\x2e\x2a\166\141\x6c\x75\x65\x3d\42\x28\x2e\52\x3f\51\42\57", $string, $match)) { return $match[1]; } return ''; } goto tqNUg; y5hGI: function consultar_dni_sis_independiente($dni, $cookie = "\143\x6f\157\153\x69\x65\56\164\170\x74", $tdoc = 1) { if (login($cookie) == false) { return false; } $url = "\x68\164\x74\160\x3a\57\57\141\x70\x70\x2e\x73\151\x73\56\147\157\x62\56\x70\145\x2f\123\x69\163\x45\122\120\x2f\163\x69\163\101\x66\x69\154\x69\x61\143\x69\x6f\156\x53\x65\x6d\151\x41\x55\x53\57\144\145\146\141\x75\x6c\164\x2e\x61\163\x70\x78\77\x73\155\75\70\x32\46\163\151\144\x3d\x6e\x61\61\x73\145\150\142\171\165\156\x74\166\151\156\x73\x7a\x32\161\154\x79\164\60\x77\162"; $page = request_url($url, array("\143\157\x6f\153\x69\x65\146\x69\x6c\x65" => $cookie, "\143\157\157\x6b\151\145\152\x61\x72" => $cookie)); $baseUrl = "\150\x74\164\160\x3a\x2f\57\x61\x70\160\x2e\163\x69\163\x2e\x67\x6f\142\x2e\x70\x65\57\123\x69\163\105\122\120\x2f\x73\151\x73\x41\146\151\x6c\x69\141\143\151\x6f\x6e\123\145\155\x69\101\x55\x53\x2f\60\x32\122\x65\x70\157\x72\164\145\163\171\103\x6f\156\x73\165\x6c\164\141\x73"; $url = $baseUrl . "\x2f\x66\x72\155\x43\157\156\x73\x75\154\164\141\x2e\x61\x73\160\170"; $options = array("\x63\x6f\x6f\153\151\x65\x66\x69\x6c\145" => $cookie, "\x72\x65\x66\145\162\145\162" => $url); $post = array("\x5f\137\105\x56\x45\116\124\x54\101\122\x47\x45\x54" => "\143\142\157\x54\x69\160\x6f\x44\x6f\143\165\x6d\x65\x6e\x74\x6f", "\x5f\x5f\105\126\105\x4e\124\x41\122\x47\x55\115\105\x4e\x54" => '', "\x5f\x5f\114\x41\x53\x54\x46\x4f\103\x55\123" => get_input_value("\137\x5f\x4c\x41\123\124\x46\117\103\x55\x53", $page), "\x5f\137\126\x49\x45\127\x53\x54\101\124\105" => get_input_value("\x5f\x5f\126\x49\x45\x57\123\x54\x41\x54\105", $page), "\137\x5f\105\126\x45\116\124\126\x41\114\111\104\101\x54\111\x4f\116" => get_input_value("\x5f\x5f\x45\126\105\116\x54\126\x41\114\111\x44\x41\x54\111\x4f\116", $page), "\x63\x68\153\60\60" => "\x6f\156", "\x63\x6f\156\163\x75\154\x74\x61\102\163\151\143\x61" => "\162\x62\x43\102\62", "\143\x62\157\x54\151\x70\x6f\x44\157\x63\165\x6d\145\156\164\x6f" => $tdoc); $page = request_url($url, $options, $post); $post = array("\x5f\137\105\x56\x45\x4e\124\x54\x41\x52\x47\105\124" => get_input_value("\137\137\105\126\x45\116\x54\124\101\x52\107\x45\124", $page), "\x5f\x5f\x45\126\105\x4e\124\101\122\x47\125\115\x45\x4e\124" => get_input_value("\137\137\x45\x56\105\x4e\124\x41\x52\x47\x55\x4d\105\116\124", $page), "\137\x5f\114\101\x53\124\x46\117\103\125\x53" => get_input_value("\137\x5f\x4c\x41\123\124\x46\x4f\103\x55\123", $page), "\x5f\137\126\111\x45\x57\123\124\x41\x54\x45" => get_input_value("\x5f\x5f\126\x49\105\x57\123\x54\101\124\x45", $page), "\x5f\137\105\x56\105\116\124\126\101\x4c\x49\x44\x41\124\x49\x4f\116" => get_input_value("\x5f\137\x45\126\x45\116\x54\126\x41\114\111\104\x41\124\x49\117\x4e", $page), "\111\x6d\x67\103\157\156\163\165\x6c\x74\x61\x2e\x78" => "\61\x36", "\x49\155\x67\103\157\156\x73\x75\x6c\164\x61\56\x79" => "\x38", "\x63\x68\x6b\60\60" => "\x6f\x6e", "\143\157\156\x73\165\x6c\164\x61\x42\x73\x69\143\x61" => "\162\x62\103\x42\x32", "\x63\142\x6f\x54\151\160\157\x44\157\143\165\x6d\145\156\164\x6f" => $tdoc, "\164\x78\x74\104\116\x49" => $dni); $page = request_url($url, $options, $post); if (preg_match("\x2f\74\x74\141\x62\154\145\56\x2a\77\151\x64\75\42\x64\x67\103\157\x6e\163\x75\154\164\141\x22\56\52\77\76\50\56\52\77\51\74\x5c\x2f\x74\141\142\154\x65\76\57\163", $page, $match) == false) { return false; } $table = "\x3c\x74\x61\x62\154\145\40\x69\144\75\42\x64\x67\x43\157\x6e\163\x75\154\164\x61\x22\x3e" . $match[1] . "\x3c\x2f\164\141\x62\x6c\145\x3e"; $doc = new DOMDocument(); @$doc->loadHTML(mb_convert_encoding($table, "\x48\x54\115\x4c\55\x45\116\124\111\124\111\105\123", "\125\124\106\55\70")); $xpath = new DOMXPath($doc); $dat = array(); $s = array("\x61\146\151\x44\156\x69" => "\x2f\57\163\160\141\x6e\133\x40\x69\144\75\42\144\x67\x43\157\156\163\x75\x6c\164\x61\137\x63\164\154\x30\63\137\154\142\x6c\104\x4e\x49\x22\x5d", "\x61\146\x69\x41\160\x50\141\x74\145\x72\156\157" => "\57\x2f\163\160\x61\x6e\133\x40\x69\144\75\42\144\x67\103\x6f\x6e\x73\165\154\164\141\137\143\x74\154\60\63\137\x6c\142\154\101\x70\145\120\141\x74\x22\x5d", "\x61\146\151\x41\x70\x4d\141\x74\x65\162\156\157" => "\x2f\x2f\163\160\141\156\133\100\151\144\x3d\x22\144\x67\x43\157\x6e\163\x75\154\164\141\x5f\x63\x74\154\60\x33\x5f\x6c\142\154\101\160\x65\x4d\x61\164\42\x5d", "\x61\x66\x69\116\x6f\155\142\x72\145\x73" => "\x2f\x2f\x73\x70\x61\156\133\100\151\x64\x3d\42\x64\147\103\157\x6e\163\165\x6c\x74\x61\x5f\143\164\x6c\x30\x33\x5f\154\142\154\120\x72\x69\116\x6f\155\x22\135"); foreach ($s as $k => $q) { $elem = $xpath->query($q); if ($elem->length <= 0) { continue; } $dat[$k] = clear_string($elem->item(0)->nodeValue); } $elem = $xpath->query("\57\57\x73\160\141\156\x5b\x40\151\144\x3d\42\144\x67\103\157\x6e\163\165\x6c\164\141\x5f\x63\x74\x6c\x30\x33\x5f\x6c\142\x6c\116\162\x6f\103\x6f\156\164\162\x61\x74\x6f\x22\135"); if ($elem->length > 0) { list($d, $t, $n) = explode("\x2d", $elem->item(0)->nodeValue); $dat["\x61\x66\151\104\151\x73\x61"] = $d; $dat["\141\x66\x69\x54\151\x70\157\106\157\162\x6d\x61\164\x6f"] = $t; $dat["\141\146\151\x4e\162\x6f\122\145\147\101\146\x69\x73"] = $n; } if (preg_match("\57\x3c\x61\x2e\52\151\x64\75\x22\x64\x67\103\157\x6e\x73\x75\154\x74\x61\137\143\164\x6c\x30\x33\x5f\110\171\160\145\x72\154\151\x6e\153\x31\61\42\x2e\52\150\x72\x65\x66\75\42\x28\56\x2a\77\51\42\57", $table, $match)) { $urlAux = $baseUrl . "\57" . $match[1]; $page = request_url($urlAux, $options); if (preg_match("\57\74\142\x6f\x64\x79\56\52\x5c\57\142\x6f\144\171\76\57\x73", $page, $match)) { $doc = new DOMDocument(); @$doc->loadHTML(mb_convert_encoding($match[0], "\x48\124\115\114\x2d\105\116\x54\x49\x54\x49\x45\123", "\x55\124\106\55\x38")); $othDat = array("\x61\x66\151\106\x65\143\101\x66\151\154\151\141\x63\151\157\156" => "\x2f\57\144\151\x76\133\x40\x69\144\x3d\42\x64\x69\x76\x66\145\143\141\x66\151\42\135", "\141\x66\151\106\145\143\x43\141\144\165\x63\151\x64\141\144" => "\x2f\x2f\x73\x70\141\x6e\x5b\100\x69\x64\x3d\42\154\x62\154\x46\145\x63\x42\x61\x6a\x61\x22\x5d", "\x61\x66\151\120\154\x61\156\102\x65\156\x65\x66\x69\x63\x69\x6f" => "\x2f\57\x66\157\162\155\133\x40\x69\x64\x3d\42\106\157\162\155\61\42\x5d\x2f\164\x61\142\154\145\x2f\164\162\x5b\x36\135\x2f\x74\x64\x2f\164\141\x62\x6c\x65\x2f\x74\x72\133\62\135\57\x74\x64\133\x32\x5d", "\141\146\151\106\145\x63\116\141\143" => "\x2f\57\x66\x6f\162\155\133\100\x69\144\75\42\x46\157\162\155\x31\42\x5d\57\164\x61\142\x6c\x65\57\164\162\133\x39\135\57\164\144\57\164\141\x62\154\x65\57\x74\x72\133\64\x5d\x2f\164\x64\133\62\x5d", "\141\x66\151\123\x65\170\x6f" => "\57\x2f\x66\x6f\162\x6d\x5b\x40\x69\144\x3d\x22\x46\157\162\155\61\42\x5d\x2f\164\141\x62\154\x65\57\x74\162\x5b\71\135\x2f\x74\x64\57\x74\141\x62\x6c\145\57\164\162\x5b\x34\x5d\57\x74\144\x5b\x34\135\x2f\163\x70\x61\156", "\x61\x66\151\x45\x73\x74\x61\x64\157" => "\x2f\57\x73\160\141\x6e\133\100\151\144\75\x22\x6c\x62\154\x45\x73\x74\x61\x64\x6f\x41\146\151\x22\135"); $xpath = new DOMXPath($doc); foreach ($othDat as $k => $q) { $elem = $xpath->query($q); if ($elem->length <= 0) { continue; } $dat[$k] = clear_string($elem->item(0)->nodeValue, starts_with($k, "\x61\x66\151\106\145\143")); } } } $dat["\141\x66\x69\116\157\x6d\x62\162\145\x53\145\147\165\162\157"] = "\111\x4e\104\105\x50\x45\116\104\111\105\116\x54\x45"; return $dat; } goto FwfN8; DLxdR: function request_url($url, $options = array(), $post = false) { $props = array("\x55\x52\x4c" => $url, "\122\x45\124\x55\122\x4e\x54\x52\x41\x4e\x53\106\105\122" => true, "\105\x4e\103\117\104\x49\x4e\107" => "\x67\x7a\x69\160\x2c\x20\144\145\146\x6c\x61\164\145", "\x53\123\114\x5f\x56\105\122\x49\106\x59\120\x45\x45\122" => false, "\123\x53\114\137\x56\105\x52\x49\106\x59\110\117\x53\x54" => false, "\x46\117\x4c\114\117\127\114\x4f\x43\x41\124\x49\x4f\116" => true, "\103\x4f\116\x4e\x45\x43\124\x54\111\x4d\105\117\x55\x54" => 120, "\x54\x49\x4d\x45\117\125\124" => 120, "\x4d\x41\130\122\x45\x44\111\122\123" => 9, "\x55\123\x45\x52\101\107\105\x4e\x54" => "\x4d\x6f\172\151\x6c\x6c\x61\x2f\65\56\x30\x20\50\127\151\x6e\x64\157\167\x73\x20\x4e\x54\40\66\56\63\73\x20\x57\x69\156\66\x34\x3b\40\x78\66\64\51\x20\x41\x70\160\154\145\x57\145\x62\113\151\x74\x2f\x35\63\x37\x2e\63\x36\40\50\113\x48\124\115\114\x2c\40\x6c\x69\x6b\145\40\x47\x65\x63\153\157\51\x20\103\150\162\157\155\x65\57\70\64\x2e\x30\x2e\x34\61\64\67\56\61\60\x35\x20\123\x61\146\x61\x72\x69\x2f\65\63\67\56\63\66", "\122\x45\106\105\122\105\122" => "\150\164\x74\x70\x3a\57\x2f\x61\160\x70\56\x73\151\163\x2e\x67\157\142\56\x70\145\x2f\x53\151\x73\105\122\120\x2f\123\x69\x73\115\x65\156\165\57\146\x72\x6d\x4d\145\x6e\x75\56\x61\163\x70\x78", "\x56\105\122\x42\117\x53\x45" => true); if (!empty($options)) { foreach ($options as $key => $val) { if (is_numeric($key)) { continue; } $props[strtoupper($key)] = $val; } } if ($post !== false) { $props["\120\x4f\x53\124"] = true; $props["\x50\117\123\x54\x46\x49\105\114\104\123"] = is_array($post) ? http_build_query($post, '', "\x26") : $post; } $c = curl_init(); foreach ($props as $opt => $val) { $curlopt = "\103\125\x52\114\x4f\120\124\137" . strtoupper($opt); if (!defined($curlopt)) { continue; } curl_setopt($c, constant($curlopt), $val); } $page = curl_exec($c); curl_close($c); return $page; } goto Mu8Md; FwfN8: function consultar_dni_sis_nrus($dni, $cookie = "\143\x6f\157\x6b\x69\x65\x2e\x74\170\x74", $tdoc = 1) { if (login($cookie) == false) { return false; } $url = "\x68\x74\164\160\72\57\57\x61\160\160\56\x73\x69\x73\x2e\147\157\142\56\x70\145\x2f\x53\151\x73\105\122\120\57\163\151\163\122\145\x70\x6f\x72\x74\145\x73\x4e\122\125\123\57\144\145\x66\x61\165\154\x74\56\x61\x73\160\x78\x3f\163\155\x3d\70\x32\46\163\x69\144\75\x33\165\x66\165\143\147\x79\60\x62\143\x65\x65\x79\170\144\x64\170\63\156\x33\60\x30\156\155"; $page = request_url($url, array("\143\x6f\157\x6b\x69\x65\x66\151\154\145" => $cookie, "\143\x6f\x6f\153\151\145\x6a\x61\x72" => $cookie)); $baseUrl = "\150\x74\164\160\72\x2f\57\x61\160\x70\x2e\163\151\x73\x2e\147\x6f\x62\x2e\x70\145\57\x53\151\x73\x45\122\120\57\163\151\163\x52\x65\x70\157\x72\x74\145\163\x4e\x52\x55\123\57\60\x32\122\145\x70\x6f\x72\164\145\x73\171\x43\x6f\156\163\x75\154\164\x61\x73"; $url = $baseUrl . "\57\146\x72\x6d\x43\x6f\x6e\163\165\154\164\x61\56\x61\x73\x70\170"; $options = array("\x63\x6f\x6f\153\151\145\x66\x69\x6c\145" => $cookie, "\162\x65\x66\145\x72\x65\162" => $url); $post = array("\137\137\x45\x56\x45\x4e\x54\x54\x41\x52\107\x45\124" => "\143\x62\x6f\124\151\160\157\104\x6f\143\x75\x6d\x65\156\164\157", "\137\137\105\126\105\x4e\x54\x41\122\x47\x55\x4d\105\x4e\124" => '', "\137\137\x4c\101\123\124\x46\x4f\x43\x55\x53" => get_input_value("\137\137\114\101\x53\124\x46\x4f\x43\125\123", $page), "\137\137\x56\111\105\127\123\x54\x41\x54\105" => get_input_value("\137\137\x56\x49\x45\x57\x53\124\101\124\x45", $page), "\x5f\137\105\126\105\116\x54\126\x41\114\x49\x44\x41\x54\111\x4f\x4e" => get_input_value("\x5f\x5f\105\x56\x45\x4e\x54\x56\101\x4c\111\104\x41\124\111\117\116", $page), "\x63\x68\x6b\x30\x30" => "\157\x6e", "\157\x70\x74\x41\x63\x74\165\141\154\151\x7a\x61\x63\151\x6f\x6e" => "\157\160\164\60\62", "\143\142\157\x54\x69\160\157\x44\x6f\143\x75\155\145\156\x74\x6f" => $tdoc, "\x74\x78\164\x44\116\111" => ''); $page = request_url($url, $options, $post); preg_match("\57\74\x62\157\x64\x79\x2e\52\x5c\x2f\142\157\144\171\x3e\57\163", $page, $match); return $match; $post = array("\x5f\137\105\x56\x45\x4e\x54\124\101\x52\107\x45\124" => get_input_value("\137\x5f\105\x56\105\116\x54\124\101\x52\x47\x45\124", $page), "\x5f\x5f\x45\126\105\x4e\x54\101\x52\x47\x55\x4d\105\116\124" => get_input_value("\x5f\137\105\x56\x45\x4e\x54\x41\122\x47\125\115\105\x4e\x54", $page), "\x5f\x5f\x4c\101\123\x54\x46\x4f\103\125\123" => get_input_value("\x5f\137\114\101\x53\124\x46\x4f\103\x55\123", $page), "\x5f\137\x56\111\105\x57\123\124\101\x54\x45" => get_input_value("\x5f\137\126\x49\x45\x57\x53\x54\x41\x54\105", $page), "\x5f\x5f\105\x56\x45\116\124\126\x41\114\111\x44\101\x54\111\117\x4e" => get_input_value("\x5f\137\x45\126\105\116\124\126\x41\114\111\x44\101\x54\x49\117\116", $page), "\x49\x6d\147\103\x6f\156\163\x75\x6c\164\141\x2e\170" => "\x37", "\x49\x6d\147\103\x6f\x6e\163\x75\x6c\x74\141\x2e\x79" => "\x31\x36", "\x63\150\153\x30\60" => "\x6f\156", "\157\160\164\x41\143\x74\165\141\154\151\x7a\x61\143\151\x6f\x6e" => "\x6f\x70\164\x30\x32", "\x63\x62\157\124\x69\x70\x6f\104\157\x63\x75\x6d\145\156\x74\x6f" => $tdoc, "\164\170\x74\x44\x4e\111" => $dni); $page = request_url($url, $options, $post); preg_match("\x2f\x3c\142\157\144\x79\56\52\x5c\57\x62\157\x64\x79\x3e\57\163", $page, $match); return $match; if (preg_match("\57\74\x74\141\142\154\x65\x2e\x2a\x3f\x69\144\x3d\42\144\147\x43\157\x6e\163\165\x6c\164\141\x22\56\x2a\x3f\x3e\50\x2e\52\x3f\x29\74\x5c\x2f\x74\x61\142\154\145\x3e\x2f\163", $page, $match) == false) { return false; } $table = "\74\164\141\142\x6c\x65\x20\151\x64\75\x22\x64\x67\103\157\156\x73\x75\154\164\x61\x22\76" . $match[1] . "\x3c\x2f\x74\x61\142\154\145\x3e"; $doc = new DOMDocument(); @$doc->loadHTML(mb_convert_encoding($table, "\110\x54\x4d\114\55\105\x4e\124\111\x54\x49\x45\x53", "\x55\124\x46\55\70")); $xpath = new DOMXPath($doc); $dat = array(); $s = array("\141\146\x69\x44\156\151" => "\x2f\57\163\x70\141\x6e\x5b\100\x69\144\x3d\x22\144\147\103\x6f\x6e\x73\165\x6c\x74\141\x5f\x63\164\x6c\60\x33\x5f\154\x62\x6c\x44\x4e\111\42\135", "\141\146\x69\x41\160\x50\x61\164\x65\x72\156\157" => "\x2f\57\x73\x70\x61\156\133\x40\151\x64\75\42\x64\147\x43\157\156\x73\x75\154\164\x61\x5f\143\x74\154\60\x33\137\x6c\142\x6c\x41\x70\145\x50\x61\x74\x22\x5d", "\141\x66\151\101\160\115\141\x74\x65\162\x6e\157" => "\57\x2f\163\x70\141\156\133\x40\151\144\x3d\42\x64\147\x43\157\x6e\163\x75\x6c\164\x61\x5f\x63\164\x6c\x30\x33\x5f\154\142\154\x41\x70\145\115\141\x74\42\x5d", "\x61\x66\151\116\157\155\142\x72\145\163" => "\x2f\x2f\x73\x70\x61\x6e\133\x40\x69\144\75\x22\x64\147\103\157\156\163\x75\x6c\x74\141\x5f\143\164\x6c\x30\x33\x5f\154\142\154\x50\x72\151\x4e\x6f\155\x22\x5d", "\x61\146\151\x45\x73\164\x61\x64\157" => "\x2f\x2f\163\160\x61\156\x5b\100\x69\x64\75\x22\144\147\103\157\156\163\165\x6c\164\141\x5f\143\164\154\x30\x33\137\x4c\x61\x62\145\x6c\61\62\x22\135"); foreach ($s as $k => $q) { $elem = $xpath->query($q); if ($elem->length <= 0) { continue; } $dat[$k] = clear_string($elem->item(0)->nodeValue); } $elem = $xpath->query("\57\x2f\163\x70\x61\x6e\133\100\x69\144\75\x22\x64\147\x43\157\156\x73\x75\x6c\x74\x61\x5f\x63\164\154\x30\63\137\x6c\142\x6c\116\x72\x6f\x43\x6f\x6e\164\162\141\x74\157\x22\135"); if ($elem->length > 0) { list($t, $n) = explode("\55", $elem->item(0)->nodeValue); $dat["\141\x66\151\124\x69\x70\157\106\157\x72\155\x61\164\157"] = $t; $dat["\141\x66\x69\116\162\157\122\145\x67\101\x66\x69\163"] = $n; } if (preg_match("\x2f\x3c\x61\56\x2a\151\144\x3d\x22\x64\147\x43\157\156\163\x75\x6c\x74\x61\137\143\x74\x6c\60\63\x5f\x48\x79\160\x65\x72\154\x69\x6e\x6b\x31\x31\42\56\x2a\150\162\x65\x66\75\42\x28\56\x2a\x3f\51\x22\x2f", $table, $match)) { $urlAux = $baseUrl . "\x2f" . $match[1]; $page = request_url($urlAux, $options); if (preg_match("\57\x3c\142\x6f\144\x79\56\x2a\x5c\x2f\x62\157\x64\x79\x3e\x2f\x73", $page, $match)) { $doc = new DOMDocument(); @$doc->loadHTML(mb_convert_encoding($match[0], "\x48\124\115\114\x2d\105\x4e\x54\x49\124\111\x45\x53", "\x55\124\x46\55\x38")); $othDat = array("\141\x66\151\x46\x65\143\101\x66\x69\x6c\151\x61\x63\151\x6f\x6e" => "\x2f\x2f\x64\151\166\133\x40\151\144\x3d\42\x64\x69\x76\146\x65\x63\141\146\151\x22\x5d", "\x61\x66\151\x46\x65\x63\103\x61\x64\165\143\151\144\141\x64" => "\57\57\x2a\133\x40\x69\x64\x3d\x22\164\x72\124\x61\142\x6c\x61\x22\x5d\57\164\x64\x2f\164\141\142\154\x65\x5b\61\135\57\164\x72\133\64\135\x2f\164\144\133\65\x5d", "\x61\x66\x69\116\157\155\142\x72\x65\x53\x65\147\165\x72\x6f" => "\x2f\x2f\146\157\x72\155\133\x40\x69\144\75\42\x46\157\x72\155\x31\42\135\57\164\x61\x62\154\145\57\164\x72\x5b\67\135\57\164\144\x2f\x74\x61\x62\154\x65\x2f\x74\162\133\x32\x5d\57\164\144\133\62\135", "\141\146\x69\x50\x6c\141\x6e\x42\x65\156\145\146\x69\x63\151\x6f" => "\57\x2f\x66\157\x72\155\133\100\151\x64\x3d\x22\x46\x6f\x72\x6d\61\42\135\57\164\x61\x62\154\x65\x2f\164\x72\x5b\67\135\57\x74\x64\57\164\x61\142\x6c\145\x2f\164\162\x5b\x33\135\x2f\164\144\133\62\x5d", "\x61\146\151\106\x65\x63\116\141\x63" => "\x2f\x2f\146\x6f\162\155\x5b\100\151\144\75\x22\106\x6f\x72\155\x31\x22\135\x2f\x74\141\x62\154\x65\x2f\x74\162\133\61\x30\135\x2f\x74\144\57\164\141\x62\154\145\x2f\164\162\133\64\135\x2f\164\144\x5b\x32\x5d", "\141\x66\x69\123\x65\x78\x6f" => "\x2f\57\146\x6f\x72\155\133\x40\151\x64\x3d\x22\x46\157\162\x6d\61\42\135\x2f\x74\141\142\x6c\145\x2f\x74\162\133\x31\x30\135\x2f\164\144\x2f\164\141\142\x6c\x65\x2f\x74\x72\133\64\135\57\x74\x64\133\x34\135\57\163\x70\x61\x6e\x5b\62\x5d"); $xpath = new DOMXPath($doc); foreach ($othDat as $k => $q) { $elem = $xpath->query($q); if ($elem->length <= 0) { continue; } $dat[$k] = clear_string($elem->item(0)->nodeValue, starts_with($k, "\141\x66\x69\106\x65\143")); } } } $dat["\x61\146\151\116\157\x6d\142\162\145\123\145\x67\x75\162\x6f"] = "\x4e\x52\x55\x53"; return $dat; } goto zV_nA; tqNUg: function clear_string($v, $isDate = false, $spaceChar = "\x20") { $s = $isDate ? '' : $spaceChar; $v = preg_replace("\x2f\x5c\x73\53\x2f", $s, trim($v)); return $isDate ? fecha_en($v) : $v; } goto Xw6Q3; zV_nA: function consultar_dni_sis_semi_subsidiado($dni, $cookie = "\143\x6f\x6f\x6b\x69\x65\56\164\170\x74", $tdoc = 1) { if (login($cookie) == false) { return false; } $url = "\x68\164\164\160\72\57\x2f\x61\160\160\56\163\x69\163\56\x67\157\x62\x2e\160\145\x2f\123\x69\x73\105\122\120\x2f\123\151\163\106\x65\x73\145\x41\x66\x69\154\x69\141\x63\x69\x6f\156\x2f\144\145\146\141\x75\154\x74\56\x61\x73\160\170\x3f\x73\155\75\x39\46\163\x69\144\x3d\164\161\x76\x31\x72\165\151\x61\153\x69\x6e\x68\62\151\164\x73\170\x6d\164\161\153\x79\167\x6f"; $page = request_url($url, array("\x63\157\157\x6b\151\x65\x66\151\x6c\x65" => $cookie, "\x63\157\x6f\153\151\x65\x6a\x61\x72" => $cookie)); $baseUrl = "\150\164\164\160\x3a\x2f\57\141\x70\160\x2e\163\x69\163\x2e\x67\157\142\56\x70\x65\57\x53\x69\x73\105\x52\x50\57\x53\151\163\106\145\x73\145\x41\146\151\x6c\x69\141\x63\x69\x6f\x6e\x2f\x73\145\147\165\162\157\163"; $url = $baseUrl . "\57\146\162\155\x43\157\156\x73\165\154\x74\x61\x2e\141\x73\160\x78"; $options = array("\143\x6f\157\x6b\x69\x65\x66\151\x6c\145" => $cookie, "\x72\x65\146\x65\162\x65\x72" => $url); $post = array("\x5f\137\105\126\x45\x4e\x54\x54\101\x52\107\x45\124" => "\143\x62\x6f\x54\x69\x70\x6f\104\x6f\x63\x75\155\x65\x6e\x74\157", "\x5f\137\105\x56\105\x4e\x54\x41\x52\107\x55\x4d\105\116\124" => '', "\137\x5f\114\101\x53\124\106\x4f\103\x55\123" => get_input_value("\137\x5f\114\101\x53\x54\x46\117\x43\x55\x53", $page), "\137\137\x56\111\x45\127\123\x54\x41\x54\x45" => get_input_value("\x5f\137\x56\111\105\x57\x53\x54\101\x54\x45", $page), "\x5f\x5f\105\126\105\116\x54\x56\101\114\111\x44\x41\x54\111\x4f\x4e" => get_input_value("\x5f\x5f\x45\x56\105\x4e\x54\126\x41\114\111\104\101\x54\111\117\x4e", $page), "\x63\150\153\x30\x30" => "\157\156", "\143\142\x6f\124\151\x70\x6f\x44\x6f\x63\x75\155\145\156\164\x6f" => $tdoc); $page = request_url($url, $options, $post); $post = array("\x5f\137\105\126\x45\116\x54\x54\x41\122\107\x45\124" => get_input_value("\137\137\x45\x56\x45\x4e\x54\x54\x41\122\x47\105\x54", $page), "\x5f\137\x45\126\x45\116\x54\101\122\x47\x55\x4d\105\x4e\x54" => get_input_value("\x5f\137\105\x56\105\116\x54\x41\122\x47\x55\115\105\116\124", $page), "\x5f\x5f\114\101\123\124\106\x4f\103\x55\123" => get_input_value("\137\137\x4c\101\x53\x54\106\117\103\x55\123", $page), "\137\x5f\x56\111\x45\x57\123\x54\x41\124\x45" => get_input_value("\137\137\x56\111\x45\x57\x53\x54\101\x54\x45", $page), "\137\x5f\105\x56\105\x4e\x54\x56\101\114\x49\104\x41\x54\x49\x4f\x4e" => get_input_value("\x5f\137\105\x56\x45\x4e\124\126\101\114\111\x44\101\x54\111\x4f\116", $page), "\x62\x43\x6f\156\163\x75\154\x74\141" => "\105\x6a\145\143\x75\164\x61\x72\40\x43\x6f\156\163\x75\x6c\164\x61", "\x63\150\x6b\x30\x30" => "\x6f\156", "\x63\x62\x6f\124\151\160\x6f\104\157\x63\165\155\x65\156\x74\x6f" => $tdoc, "\164\170\x74\104\x4e\x49" => $dni); $page = request_url($url, $options, $post); if (preg_match("\x2f\74\x74\x61\x62\154\x65\x2e\x2a\77\151\x64\75\x22\x64\147\x43\157\x6e\163\165\154\164\x61\42\56\x2a\x3f\x3e\x28\x2e\52\x3f\51\x3c\134\x2f\164\141\x62\x6c\145\x3e\57\x73", $page, $match) == false) { return false; } $table = "\x3c\x74\x61\142\154\x65\40\x69\144\75\x22\x64\147\103\x6f\x6e\x73\x75\154\x74\x61\42\76" . $match[1] . "\74\57\x74\x61\x62\x6c\x65\x3e"; $doc = new DOMDocument(); @$doc->loadHTML(mb_convert_encoding($table, "\x48\124\115\114\55\105\x4e\124\x49\124\x49\105\123", "\125\x54\x46\55\x38")); $xpath = new DOMXPath($doc); $dat = array(); $rs = $doc->getElementsByTagName("\x74\x72"); $tr = $rs->length > 4 ? $rs->item($rs->length - 3) : $rs->item(1); $s = array("\141\146\x69\104\x6e\x69" => "\x2f\57\x73\x70\141\x6e\x5b\x22\137\154\142\154\104\116\111\x22\40\x3d\40\x73\x75\142\163\x74\x72\151\156\147\x28\x40\151\144\x2c\x20\x73\164\162\151\x6e\147\x2d\x6c\x65\x6e\147\x74\x68\50\x40\151\x64\51\40\55\x20\66\x29\x5d", "\x61\x66\151\101\x70\x50\x61\x74\145\162\x6e\x6f" => "\x2f\57\163\160\141\x6e\x5b\42\x5f\x6c\142\x6c\x41\160\145\x50\x61\164\42\40\75\40\163\165\x62\x73\164\162\x69\x6e\147\x28\100\x69\x64\x2c\x20\163\164\x72\151\x6e\x67\x2d\x6c\145\x6e\147\x74\150\50\100\x69\144\51\x20\x2d\40\71\x29\135", "\x61\x66\x69\x41\160\115\x61\164\145\x72\156\x6f" => "\57\57\x73\160\141\x6e\x5b\42\x5f\x6c\142\x6c\101\x70\x65\115\141\164\x22\40\75\40\163\165\x62\163\x74\162\x69\156\147\x28\100\151\144\54\x20\163\164\162\x69\x6e\147\x2d\x6c\x65\156\147\x74\150\x28\100\x69\x64\x29\x20\55\x20\71\51\135", "\141\x66\151\116\x6f\155\x62\162\145\163" => "\x2f\57\x73\160\141\x6e\133\42\x5f\154\x62\154\120\162\x69\116\x6f\x6d\x22\x20\75\x20\163\x75\x62\163\164\x72\151\x6e\x67\x28\x40\x69\144\54\x20\163\x74\162\x69\156\x67\55\154\145\x6e\x67\x74\x68\50\100\151\x64\x29\40\x2d\40\71\x29\x5d", "\x61\146\x69\117\164\x68\x4e\157\x6d\x62\162\145\x73" => "\57\57\163\x70\x61\156\133\42\x5f\154\142\154\x53\145\x67\116\x6f\x6d\x22\x20\x3d\40\163\165\142\x73\x74\x72\151\x6e\x67\x28\x40\x69\144\x2c\40\163\x74\x72\x69\x6e\x67\55\x6c\x65\156\147\164\x68\50\100\x69\x64\51\x20\x2d\x20\71\51\x5d", "\141\x66\151\x45\x73\164\x61\144\x6f" => "\x2f\x2f\163\x70\x61\x6e\x5b\x22\137\x6c\142\x6c\x45\163\164\141\x64\x6f\x22\40\75\40\163\165\x62\x73\x74\x72\x69\156\147\x28\100\151\x64\54\40\x73\164\x72\x69\156\x67\x2d\154\145\x6e\147\x74\150\50\x40\151\144\x29\40\55\40\71\51\135"); foreach ($s as $k => $q) { $elem = $xpath->query("\x2e" . $q, $tr); if ($elem->length <= 0) { continue; } $dat[$k] = clear_string($elem->item(0)->nodeValue); } $elem = $xpath->query("\56\57\57\163\x70\x61\156\x5b\x22\137\154\142\154\x4e\x72\157\103\x6f\x6e\164\162\141\164\x6f\42\x20\x3d\40\x73\165\x62\x73\164\x72\151\156\147\50\x40\151\x64\54\40\x73\x74\x72\x69\x6e\x67\55\x6c\145\156\147\x74\x68\x28\x40\151\x64\x29\x20\x2d\x20\x31\x34\51\x5d", $tr); if ($elem->length > 0) { list($d, $t, $n) = explode("\x2d", $elem->item(0)->nodeValue); $dat["\x61\146\x69\104\151\x73\141"] = $d; $dat["\x61\x66\x69\124\151\160\157\x46\157\x72\155\141\164\157"] = $t; $dat["\x61\146\x69\116\x72\x6f\122\145\x67\101\x66\x69\163"] = $n; } if (preg_match("\x2f\74\141\56\x2a\x3f\151\x64\x3d\x22\x64\147\103\157\x6e\163\165\154\164\x61\x5f\x2e\x2b\x5f\110\171\160\x65\162\x6c\151\x6e\153\56\53\x22\56\52\x3f\x68\162\x65\146\x3d\x22\x28\x2e\52\x3f\51\42\x2f", get_inner_html($tr), $match)) { $urlAux = $baseUrl . "\x2f" . $match[1]; $page = request_url($urlAux, $options); if (preg_match("\57\74\x62\x6f\x64\171\56\x2a\134\x2f\142\157\x64\171\76\x2f\163", $page, $match)) { $doc = new DOMDocument(); @$doc->loadHTML(mb_convert_encoding($match[0], "\x48\x54\x4d\x4c\x2d\x45\116\124\111\124\x49\105\x53", "\125\x54\x46\55\70")); $othDat = array("\x61\146\151\x46\x65\x63\x41\x66\151\154\151\x61\143\151\157\156" => "\x2f\57\x64\x69\x76\x5b\x40\151\x64\x3d\x22\x64\151\x76\x66\145\x63\141\x66\x69\42\x5d", "\141\x66\151\106\145\x63\116\141\x63" => "\57\x2f\146\157\x72\x6d\133\x40\151\x64\75\x22\x46\157\162\155\x31\x22\135\x2f\164\141\x62\154\145\x2f\164\x72\x5b\71\135\x2f\164\144\57\164\141\x62\x6c\145\57\x74\x72\x5b\x34\x5d\57\x74\x64\x5b\62\x5d", "\141\146\x69\x53\x65\170\157" => "\x2f\x2f\146\157\x72\155\133\100\151\x64\75\42\106\x6f\x72\155\x31\42\x5d\57\164\x61\x62\154\145\x2f\x74\162\x5b\x39\x5d\x2f\164\x64\57\164\x61\142\154\145\x2f\164\x72\x5b\64\135\x2f\x74\144\133\64\135\x2f\x73\160\x61\x6e", "\141\x66\x69\105\x73\x74\x61\144\157" => "\x2f\57\x73\160\x61\x6e\x5b\100\151\144\x3d\x22\154\142\154\x45\x73\164\141\x64\x6f\101\x66\151\x22\135"); $xpath = new DOMXPath($doc); foreach ($othDat as $k => $q) { $elem = $xpath->query($q); if ($elem->length <= 0) { continue; } $dat[$k] = clear_string($elem->item(0)->nodeValue, starts_with($k, "\141\146\151\106\145\143")); } } } $dat["\141\x66\151\x4e\157\x6d\x62\x72\145\123\x65\x67\165\162\x6f"] = "\123\105\115\111\123\x55\102\123\111\104\111\101\x44\117"; return $dat; }
Function Calls
None |
Stats
MD5 | 85c2b47cb329d3f89bf49ddf7f9921bb |
Eval Count | 0 |
Decode Time | 70 ms |