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 LstNU; sXGrD: if ($html === FALSE) { die("\105\162\162\157\162\40\146\145\x74..

Decoded Output download

<?php 
 goto LstNU; sXGrD: if ($html === FALSE) { die("Error fetching the URL"); } goto CH39R; K2OzY: $SD = getNodeValue($xpath, "//div[h4="SUPREME DAY"]/span"); goto RFs1n; GeNeK: $MB = getNodeValue($xpath, "//div[h4="MAIN BAZAR"]/span"); goto r03UK; dXRg2: $html = file_get_contents($url); goto sXGrD; Dcmyp: $KN = getNodeValue($xpath, "//div[h4="KALYAN NIGHT"]/span"); goto KcufA; qrdNx: include "simple_html_dom.php"; goto o9vch; GR85p: $MID = getNodeValue($xpath, "//div[h4="MILAN DAY"]/span"); goto Il8n9; CH39R: libxml_use_internal_errors(true); goto ssp8u; eT8XW: $xpath = new DOMXPath($dom); goto WEKy2; KcufA: $RN = getNodeValue($xpath, "//div[h4="RAJDHANI NIGHT"]/span"); goto GeNeK; EGxza: ?> 
 
 
<?php  goto qrdNx; ZfBRr: $l_obj_giv_content = getInnerHTML($xpath, "//*[contains(concat(' ', normalize-space(@class), ' '), ' l-obj-giv ')]"); goto K0UnY; r03UK: function extractMarketData($xpath, $marketName) { $marketData = array("h8" => '', "h9" => '', "button" => ''); $marketSpans = $xpath->query("//span[@class='h8' and text()='{$marketName}']"); foreach ($marketSpans as $marketSpan) { $marketData["h8"] = $marketSpan->nodeValue; $h9Span = $marketSpan->nextSibling; while ($h9Span && ($h9Span->nodeName !== "span" || $h9Span->getAttribute("class") !== "h9")) { $h9Span = $h9Span->nextSibling; } if ($h9Span && $h9Span->nodeName === "span") { $marketData["h9"] = $h9Span->nodeValue; } $buttonNode = $h9Span ? $h9Span->nextSibling : null; while ($buttonNode && $buttonNode->nodeName !== "button") { $buttonNode = $buttonNode->nextSibling; } if ($buttonNode && $buttonNode->nodeName === "button") { $marketData["button"] = $buttonNode->ownerDocument->saveHTML($buttonNode); } } return $marketData; } goto gazKj; K0UnY: function getNodeValue($xpath, $query) { $node = $xpath->query($query)->item(0); return $node ? $node->nodeValue : ''; } goto fTKe4; ZyOpB: function getInnerHTML($xpath, $query) { $elements = $xpath->query($query); $content = ''; foreach ($elements as $element) { $content .= $element->ownerDocument->saveHTML($element); } return $content; } goto iFU7v; vbolg: $dom = new DOMDocument(); goto hhE1W; ekepU: function cleanHTML($html) { if (!extension_loaded("tidy")) { return $html; } $config = array("indent" => true, "output-xhtml" => true, "wrap" => 200); $tidy = new tidy(); $tidy->parseString($html, $config, "utf8"); $tidy->cleanRepair(); return $tidy; } goto o9xVg; apbDI: $lv_mc_content = getInnerHTML($xpath, "//*[contains(concat(' ', normalize-space(@class), ' '), ' lv-mc ')]"); goto ekepU; ssp8u: $dom = new DOMDocument(); goto L2N8A; Il8n9: $RD = getNodeValue($xpath, "//div[h4="RAJDHANI DAY"]/span"); goto K2OzY; JfUg_: $my_table_content = getInnerHTML($xpath, "//*[contains(concat(' ', normalize-space(@class), ' '), ' my-table ')]"); goto AOlHJ; B3y2B: foreach ($tkt_val_elements as $element) { $divs = $element->getElementsByTagName("div"); foreach ($divs as $div) { $h4 = $div->getElementsByTagName("h4")->item(0); if ($h4) { $h4_text = $h4->textContent; $id_value = strtoupper(str_replace(" ", '', $h4_text)); $div->setAttribute("id", $id_value); $h4->textContent = strtoupper($h4_text); } } $anchors = $element->getElementsByTagName("a"); foreach ($anchors as $anchor) { $href = $anchor->getAttribute("href"); if (strpos($href, "jodi-chart-record") !== false) { $game_name = str_replace(array("jodi-chart-record/", ".php"), '', $href); $new_href = "jodi/jodi-charts.php?market=" . $game_name . ".php"; $anchor->setAttribute("href", $new_href); } elseif (strpos($href, "panel-chart-record") !== false) { $game_name = str_replace(array("panel-chart-record/", ".php"), '', $href); $new_href = "panel/panel-charts.php?market=" . $game_name . ".php"; $anchor->setAttribute("href", $new_href); } } $modified_element_html = $dom->saveHTML($element); $tkt_val_content .= $modified_element_html; } goto JfUg_; LstNU: function extractUrlFromHtml($html) { $dom = new DOMDocument(); @$dom->loadHTML($html); $xpath = new DOMXPath($dom); $pTag = $xpath->query("//p[@id='imp-d']")->item(0); if ($pTag) { return $pTag->nodeValue; } else { return null; } } goto aSzkl; AOlHJ: $sun_col_content = getInnerHTML($xpath, "//*[contains(concat(' ', normalize-space(@class), ' '), ' sun-col ')]"); goto Lrhoj; o9vch: $url = $url1; goto dXRg2; VckAs: $SN = getNodeValue($xpath, "//div[h4="SUPREME NIGHT"]/span"); goto raUKz; MAYrD: $MN = getNodeValue($xpath, "//div[h4="MADHUR NIGHT"]/span"); goto VckAs; M_nO5: $marketData = array(); goto Ncb0S; raUKz: $MIN = getNodeValue($xpath, "//div[h4="MILAN NIGHT"]/span"); goto Dcmyp; L2N8A: @$dom->loadHTML($html); goto bdWXL; hhE1W: @$dom->loadHTML($html); goto eT8XW; x8Xbk: $TB = getNodeValue($xpath, "//div[h4="TIME BAZAR"]/span"); goto xUjlq; d1nLn: $url1 = extractUrlFromHtml($html); goto Xikbb; Xikbb: if ($url) { } else { echo "Error: URL not found in the HTML content."; } goto EGxza; Lrhoj: $ocfg_content = getInnerHTML($xpath, "//*[contains(concat(' ', normalize-space(@class), ' '), ' ocfg ')]"); goto ZfBRr; bdWXL: $xpath = new DOMXPath($dom); goto ZyOpB; RFs1n: $KA = getNodeValue($xpath, "//div[h4="KALYAN"]/span"); goto BmXQU; BmXQU: $SRN = getNodeValue($xpath, "//div[h4="SRIDEVI NIGHT"]/span"); goto MAYrD; xUjlq: $MD = getNodeValue($xpath, "//div[h4="MADHUR DAY"]/span"); goto GR85p; gazKj: $markets = array("KALYAN", "TIME BAZAR", "MADHUR DAY", "MILAN DAY", "MILAN NIGHT", "RAJDHANI DAY", "SUPREME DAY", "MADHUR NIGHT", "KALYAN NIGHT", "RAJDHANI NIGHT", "MAIN BAZAR", "SRIDEVI", "SRIDEVI NIGHT", "SUPREME NIGHT"); goto M_nO5; fTKe4: $SR = getNodeValue($xpath, "//div[h4="SRIDEVI"]/span"); goto x8Xbk; aSzkl: $html = file_get_contents("https://dpbossmotor.com/"); goto d1nLn; iFU7v: $f_pti_content = getInnerHTML($xpath, "//*[contains(concat(' ', normalize-space(@class), ' '), ' f-pti ')]"); goto apbDI; WEKy2: $tkt_val_elements = $xpath->query("//*[contains(concat(' ', normalize-space(@class), ' '), ' tkt-val ')]"); goto etseI; etseI: $tkt_val_content = ''; goto B3y2B; o9xVg: $html = cleanHTML($html); goto vbolg; Ncb0S: foreach ($markets as $market) { $marketData[$market] = extractMarketData($xpath, $market); } ?>

Did this file decode correctly?

Original Code

<?php
 goto LstNU; sXGrD: if ($html === FALSE) { die("\105\162\162\157\162\40\146\145\x74\143\150\x69\156\x67\40\x74\150\145\x20\125\x52\114"); } goto CH39R; K2OzY: $SD = getNodeValue($xpath, "\57\x2f\144\x69\x76\133\x68\64\x3d\x22\123\x55\x50\122\x45\115\x45\40\x44\x41\131\x22\135\x2f\x73\160\x61\x6e"); goto RFs1n; GeNeK: $MB = getNodeValue($xpath, "\x2f\x2f\144\151\x76\133\150\64\75\42\115\x41\111\116\40\102\x41\132\x41\x52\42\135\x2f\x73\160\141\x6e"); goto r03UK; dXRg2: $html = file_get_contents($url); goto sXGrD; Dcmyp: $KN = getNodeValue($xpath, "\x2f\x2f\144\151\166\133\x68\64\x3d\x22\x4b\101\114\131\101\116\40\x4e\111\107\x48\124\42\135\57\163\160\x61\x6e"); goto KcufA; qrdNx: include "\x73\x69\x6d\160\154\145\137\x68\x74\x6d\x6c\x5f\144\x6f\x6d\56\x70\x68\160"; goto o9vch; GR85p: $MID = getNodeValue($xpath, "\57\x2f\144\x69\x76\x5b\150\x34\x3d\42\115\x49\x4c\101\116\40\x44\101\131\42\135\x2f\x73\x70\141\x6e"); goto Il8n9; CH39R: libxml_use_internal_errors(true); goto ssp8u; eT8XW: $xpath = new DOMXPath($dom); goto WEKy2; KcufA: $RN = getNodeValue($xpath, "\x2f\57\x64\151\x76\x5b\x68\64\75\x22\122\101\x4a\x44\x48\x41\x4e\111\x20\x4e\x49\x47\110\124\x22\x5d\x2f\x73\160\141\156"); goto GeNeK; EGxza: ?>


<?php  goto qrdNx; ZfBRr: $l_obj_giv_content = getInnerHTML($xpath, "\x2f\x2f\x2a\x5b\x63\157\156\164\x61\151\156\x73\50\143\x6f\156\x63\x61\x74\50\47\x20\47\x2c\x20\x6e\157\x72\155\141\154\x69\x7a\145\55\163\x70\141\x63\x65\50\100\x63\x6c\141\x73\x73\x29\54\40\x27\x20\47\x29\x2c\40\x27\40\154\x2d\x6f\x62\152\x2d\x67\x69\166\x20\47\51\x5d"); goto K0UnY; r03UK: function extractMarketData($xpath, $marketName) { $marketData = array("\150\70" => '', "\x68\x39" => '', "\142\165\164\164\x6f\x6e" => ''); $marketSpans = $xpath->query("\57\x2f\x73\160\x61\x6e\x5b\100\x63\154\x61\x73\163\x3d\47\x68\x38\x27\x20\141\x6e\144\40\164\x65\x78\x74\x28\x29\75\x27{$marketName}\x27\x5d"); foreach ($marketSpans as $marketSpan) { $marketData["\x68\x38"] = $marketSpan->nodeValue; $h9Span = $marketSpan->nextSibling; while ($h9Span && ($h9Span->nodeName !== "\x73\160\141\x6e" || $h9Span->getAttribute("\x63\154\141\163\163") !== "\x68\71")) { $h9Span = $h9Span->nextSibling; } if ($h9Span && $h9Span->nodeName === "\163\160\x61\x6e") { $marketData["\x68\71"] = $h9Span->nodeValue; } $buttonNode = $h9Span ? $h9Span->nextSibling : null; while ($buttonNode && $buttonNode->nodeName !== "\142\x75\x74\x74\x6f\156") { $buttonNode = $buttonNode->nextSibling; } if ($buttonNode && $buttonNode->nodeName === "\x62\165\x74\164\x6f\x6e") { $marketData["\142\x75\x74\164\157\156"] = $buttonNode->ownerDocument->saveHTML($buttonNode); } } return $marketData; } goto gazKj; K0UnY: function getNodeValue($xpath, $query) { $node = $xpath->query($query)->item(0); return $node ? $node->nodeValue : ''; } goto fTKe4; ZyOpB: function getInnerHTML($xpath, $query) { $elements = $xpath->query($query); $content = ''; foreach ($elements as $element) { $content .= $element->ownerDocument->saveHTML($element); } return $content; } goto iFU7v; vbolg: $dom = new DOMDocument(); goto hhE1W; ekepU: function cleanHTML($html) { if (!extension_loaded("\x74\151\144\171")) { return $html; } $config = array("\151\156\144\x65\x6e\164" => true, "\x6f\165\164\160\x75\164\55\x78\150\164\x6d\x6c" => true, "\167\162\x61\x70" => 200); $tidy = new tidy(); $tidy->parseString($html, $config, "\x75\x74\x66\70"); $tidy->cleanRepair(); return $tidy; } goto o9xVg; apbDI: $lv_mc_content = getInnerHTML($xpath, "\x2f\57\52\x5b\143\157\x6e\x74\141\151\156\163\50\x63\x6f\x6e\143\141\x74\x28\47\x20\x27\x2c\40\156\157\162\x6d\141\x6c\151\172\145\x2d\x73\160\x61\x63\x65\x28\100\x63\154\141\163\163\51\x2c\x20\x27\x20\x27\x29\54\x20\x27\x20\154\166\x2d\x6d\143\40\x27\51\135"); goto ekepU; ssp8u: $dom = new DOMDocument(); goto L2N8A; Il8n9: $RD = getNodeValue($xpath, "\57\x2f\144\151\x76\133\x68\x34\x3d\42\122\101\x4a\104\110\101\x4e\111\40\104\x41\131\x22\x5d\57\163\160\141\x6e"); goto K2OzY; JfUg_: $my_table_content = getInnerHTML($xpath, "\x2f\57\x2a\133\143\157\x6e\164\x61\151\x6e\x73\50\143\x6f\156\143\141\x74\x28\x27\x20\x27\54\x20\x6e\157\x72\x6d\141\154\151\x7a\145\x2d\163\x70\141\143\145\50\x40\143\154\141\163\x73\x29\x2c\x20\x27\x20\x27\x29\54\40\x27\40\x6d\x79\55\x74\141\142\154\x65\40\x27\51\x5d"); goto AOlHJ; B3y2B: foreach ($tkt_val_elements as $element) { $divs = $element->getElementsByTagName("\x64\x69\x76"); foreach ($divs as $div) { $h4 = $div->getElementsByTagName("\x68\64")->item(0); if ($h4) { $h4_text = $h4->textContent; $id_value = strtoupper(str_replace("\40", '', $h4_text)); $div->setAttribute("\x69\144", $id_value); $h4->textContent = strtoupper($h4_text); } } $anchors = $element->getElementsByTagName("\141"); foreach ($anchors as $anchor) { $href = $anchor->getAttribute("\x68\162\145\x66"); if (strpos($href, "\x6a\157\x64\x69\55\x63\150\141\x72\x74\55\162\x65\x63\x6f\162\x64") !== false) { $game_name = str_replace(array("\x6a\x6f\144\x69\x2d\143\150\141\162\164\55\162\x65\143\157\162\x64\57", "\56\160\150\160"), '', $href); $new_href = "\x6a\157\144\151\x2f\152\157\144\x69\55\x63\150\x61\162\x74\163\x2e\x70\x68\160\x3f\155\x61\x72\153\x65\x74\75" . $game_name . "\x2e\160\x68\x70"; $anchor->setAttribute("\150\x72\x65\146", $new_href); } elseif (strpos($href, "\x70\141\x6e\145\x6c\x2d\143\150\x61\x72\x74\x2d\162\145\x63\157\162\x64") !== false) { $game_name = str_replace(array("\160\x61\x6e\x65\x6c\55\x63\x68\x61\162\164\55\162\145\x63\x6f\x72\144\x2f", "\x2e\x70\150\x70"), '', $href); $new_href = "\160\x61\156\145\x6c\x2f\160\x61\156\145\154\x2d\x63\150\x61\162\x74\x73\x2e\x70\x68\160\77\x6d\x61\x72\x6b\x65\x74\75" . $game_name . "\x2e\160\150\160"; $anchor->setAttribute("\x68\x72\x65\x66", $new_href); } } $modified_element_html = $dom->saveHTML($element); $tkt_val_content .= $modified_element_html; } goto JfUg_; LstNU: function extractUrlFromHtml($html) { $dom = new DOMDocument(); @$dom->loadHTML($html); $xpath = new DOMXPath($dom); $pTag = $xpath->query("\x2f\x2f\x70\133\100\x69\x64\x3d\47\151\x6d\160\55\144\47\135")->item(0); if ($pTag) { return $pTag->nodeValue; } else { return null; } } goto aSzkl; AOlHJ: $sun_col_content = getInnerHTML($xpath, "\x2f\x2f\x2a\133\143\157\x6e\164\x61\151\x6e\163\50\143\157\156\x63\141\x74\x28\47\40\x27\x2c\x20\156\x6f\x72\155\141\154\151\172\x65\x2d\x73\160\141\143\145\x28\100\143\x6c\141\163\163\x29\54\40\x27\x20\47\51\x2c\x20\47\x20\163\x75\x6e\55\x63\x6f\x6c\x20\47\51\x5d"); goto Lrhoj; o9vch: $url = $url1; goto dXRg2; VckAs: $SN = getNodeValue($xpath, "\x2f\57\x64\x69\x76\133\150\x34\75\x22\x53\x55\x50\x52\x45\x4d\105\40\x4e\111\107\110\x54\x22\135\x2f\163\x70\141\x6e"); goto raUKz; MAYrD: $MN = getNodeValue($xpath, "\57\57\x64\151\166\x5b\150\x34\75\42\115\101\104\110\x55\x52\40\x4e\111\107\110\x54\x22\x5d\x2f\x73\160\141\x6e"); goto VckAs; M_nO5: $marketData = array(); goto Ncb0S; raUKz: $MIN = getNodeValue($xpath, "\x2f\57\144\151\166\x5b\x68\64\75\x22\x4d\x49\x4c\x41\x4e\x20\x4e\111\107\x48\x54\x22\135\x2f\163\x70\x61\156"); goto Dcmyp; L2N8A: @$dom->loadHTML($html); goto bdWXL; hhE1W: @$dom->loadHTML($html); goto eT8XW; x8Xbk: $TB = getNodeValue($xpath, "\57\57\144\x69\x76\x5b\x68\64\x3d\x22\124\x49\115\105\40\x42\101\x5a\101\x52\x22\x5d\x2f\x73\x70\141\x6e"); goto xUjlq; d1nLn: $url1 = extractUrlFromHtml($html); goto Xikbb; Xikbb: if ($url) { } else { echo "\105\x72\x72\x6f\x72\x3a\40\125\x52\x4c\40\x6e\157\164\x20\x66\157\165\x6e\144\x20\x69\x6e\x20\164\x68\x65\40\110\x54\x4d\114\x20\x63\x6f\156\164\x65\156\164\x2e"; } goto EGxza; Lrhoj: $ocfg_content = getInnerHTML($xpath, "\57\57\52\x5b\x63\157\156\164\x61\x69\156\x73\x28\x63\157\156\x63\x61\x74\50\x27\x20\x27\x2c\40\x6e\157\162\x6d\141\x6c\151\172\145\55\x73\160\x61\x63\145\x28\100\143\154\x61\163\x73\51\54\x20\47\40\47\51\x2c\x20\x27\40\x6f\x63\x66\147\40\47\x29\135"); goto ZfBRr; bdWXL: $xpath = new DOMXPath($dom); goto ZyOpB; RFs1n: $KA = getNodeValue($xpath, "\57\x2f\144\151\x76\x5b\150\64\x3d\x22\x4b\x41\114\x59\101\116\42\135\57\x73\160\141\x6e"); goto BmXQU; BmXQU: $SRN = getNodeValue($xpath, "\57\x2f\x64\151\x76\x5b\x68\64\x3d\42\x53\122\x49\x44\x45\126\111\x20\x4e\x49\107\110\124\42\x5d\57\163\x70\x61\156"); goto MAYrD; xUjlq: $MD = getNodeValue($xpath, "\57\x2f\x64\x69\x76\133\150\x34\x3d\42\x4d\101\x44\110\x55\x52\40\x44\x41\131\42\135\x2f\x73\x70\x61\156"); goto GR85p; gazKj: $markets = array("\113\101\114\x59\101\x4e", "\x54\x49\115\x45\40\102\x41\132\x41\122", "\115\101\x44\110\125\x52\x20\104\x41\131", "\x4d\x49\x4c\x41\x4e\x20\104\101\x59", "\x4d\x49\x4c\x41\x4e\40\116\111\x47\x48\x54", "\122\x41\112\104\x48\101\116\x49\40\104\101\131", "\x53\x55\120\122\105\x4d\x45\40\104\x41\131", "\x4d\x41\104\110\x55\122\40\x4e\111\x47\x48\124", "\113\101\x4c\131\101\116\40\x4e\111\107\110\x54", "\x52\x41\x4a\104\110\x41\116\x49\40\x4e\111\107\110\x54", "\x4d\x41\111\x4e\x20\102\101\132\101\x52", "\123\x52\111\104\x45\126\111", "\x53\122\111\x44\105\x56\x49\x20\116\111\x47\x48\x54", "\x53\x55\x50\122\105\115\x45\x20\x4e\x49\x47\110\x54"); goto M_nO5; fTKe4: $SR = getNodeValue($xpath, "\57\x2f\x64\x69\166\x5b\x68\64\75\x22\x53\x52\111\104\x45\x56\111\42\x5d\57\163\160\141\156"); goto x8Xbk; aSzkl: $html = file_get_contents("\x68\164\x74\x70\163\72\57\x2f\144\x70\x62\157\x73\163\155\157\x74\157\162\x2e\143\x6f\x6d\57"); goto d1nLn; iFU7v: $f_pti_content = getInnerHTML($xpath, "\57\x2f\52\x5b\143\x6f\156\x74\x61\x69\x6e\x73\50\143\x6f\x6e\143\x61\164\50\47\x20\47\x2c\40\x6e\x6f\x72\155\141\154\x69\x7a\x65\55\x73\x70\x61\143\x65\x28\x40\x63\154\x61\x73\x73\51\54\x20\x27\40\x27\x29\x2c\40\x27\40\x66\55\160\x74\x69\40\x27\x29\x5d"); goto apbDI; WEKy2: $tkt_val_elements = $xpath->query("\x2f\57\x2a\133\143\157\156\x74\x61\151\156\x73\x28\143\157\156\143\x61\164\x28\x27\40\x27\54\40\x6e\157\162\155\x61\x6c\151\x7a\145\55\x73\160\x61\143\145\50\x40\x63\154\141\163\163\x29\54\x20\x27\40\x27\51\54\40\47\x20\x74\153\x74\55\166\x61\154\x20\47\x29\135"); goto etseI; etseI: $tkt_val_content = ''; goto B3y2B; o9xVg: $html = cleanHTML($html); goto vbolg; Ncb0S: foreach ($markets as $market) { $marketData[$market] = extractMarketData($xpath, $market); }

Function Calls

None

Variables

None

Stats

MD5 3e4fb61a510ccbf52307603dad26d53f
Eval Count 0
Decode Time 43 ms