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 eval(base64_decode('CiBnb3RvIFdKQ2pSOyB1aEZqdzogY3JlYXRlRm9sZGVyc0FuZEh0bWxGcm9tTGlz..
Decoded Output download
goto WJCjR; uhFjw: createFoldersAndHtmlFromList("list.txt", "template/index.html"); goto zt9Xe; zt9Xe: echo "<br><br>Script executed by IMMREX7"; goto ZlNhI; WJCjR: function createFoldersAndHtmlFromList($filePath, $templateFilePath) { if (!file_exists($filePath)) { echo "File not found: {$filePath}"; return; } if (!file_exists($templateFilePath)) { echo "Template file not found: {$templateFilePath}"; return; } $templateContent = file_get_contents($templateFilePath); $lines = file($filePath, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); foreach ($lines as $folderName) { $folderName = trim($folderName); if (!file_exists($folderName)) { if (mkdir($folderName, 511, true)) { echo "Folder '{$folderName}' created successfully.<br>"; $customHtmlContent = str_replace(array("{{title}}", "{{header}}", "{{content}}"), array($folderName, "Welcome to {$folderName}", "This is the index page for the folder: {$folderName}"), $templateContent); $htmlFilePath = $folderName . "/index.html"; if (file_put_contents($htmlFilePath, $customHtmlContent)) { echo "index.html created in '{$folderName}' with custom content.<br>"; } else { echo "Failed to create index.html in '{$folderName}'.<br>"; } } else { echo "Failed to create folder '{$folderName}'.<br>"; } } else { echo "Folder '{$folderName}' already exists.<br>"; } } } goto uhFjw; ZlNhI:
Did this file decode correctly?
Original Code
<?php eval(base64_decode('CiBnb3RvIFdKQ2pSOyB1aEZqdzogY3JlYXRlRm9sZGVyc0FuZEh0bWxGcm9tTGlzdCgiXDE1NFx4NjlceDczXHg3NFx4MmVcMTY0XDE3MFwxNjQiLCAiXDE2NFwxNDVcMTU1XHg3MFx4NmNcMTQxXDE2NFx4NjVcNTdceDY5XDE1Nlx4NjRcMTQ1XHg3OFw1Nlx4NjhcMTY0XDE1NVwxNTQiKTsgZ290byB6dDlYZTsgenQ5WGU6IGVjaG8gIlx4M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