!C99Shell v. 1.0 pre-release build #13!

Software: Apache/2.0.54 (Unix) mod_perl/1.99_09 Perl/v5.8.0 mod_ssl/2.0.54 OpenSSL/0.9.7l DAV/2 FrontPage/5.0.2.2635 PHP/4.4.0 mod_gzip/2.0.26.1a 

uname -a: Linux snow.he.net 4.4.276-v2-mono-1 #1 SMP Wed Jul 21 11:21:17 PDT 2021 i686 

uid=99(nobody) gid=98(nobody) groups=98(nobody) 

Safe-mode: OFF (not secure)

/usr/local/webmail2/plugins/html_mail/htmlarea/plugins/ImageManager/   drwxr-xr-x
Free 318.33 GB of 458.09 GB (69.49%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     resizer.php (2.03 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
header
('Content-Type: text/javascript');

/**
 * Resize images to a given size, and saving in a new file.
 * resize.php?img=/relative/path/to/image.jpg&width=<pixels>&height=<pixels>[&to=/relative/path/to/newimage.jpg]
 * relative to the base_dir given in config.inc.php
 * This is pretty much just thumbs.php with some mods, I'm too lazy to do it properly
 * @author $Author: ray $
 * @version $Id: resizer.php 677 2007-01-19 22:24:36Z ray $
 * @package ImageManager
 */

require_once('config.inc.php');
require_once(
'Classes/ImageManager.php');
require_once(
'Classes/Thumbnail.php');

function 
js_fail($message)    { echo 'alert(\'' $message '\'); false'; exit;   }
function 
js_success($resultFile)    { echo '\'' $resultFile '\''; exit;   }

//check for img parameter in the url
if(!isset($_GET['img']) || !isset($_GET['width']) || !isset($_GET['height']))
{
  
js_fail('Missing parameter.');
}

$manager = new ImageManager($IMConfig);

//get the image and the full path to the image
$image $_GET['img'];
$fullpath Files::makeFile($manager->getImagesDir(),$image);

//not a file, so exit
if(!is_file($fullpath))
{
  
js_fail("File {$fullpath} does not exist.");
}

$imgInfo = @getImageSize($fullpath);

//Not an image, bail out.
if(!is_array($imgInfo))
{
    
js_fail("File {$fullpath} is not an image.");
}

if(!isset(
$_GET['to']))
{
  
$resized    $manager->getResizedName($fullpath,$_GET['width'],$_GET['height']);
  
$_GET['to'] = $manager->getResizedName($image,$_GET['width'],$_GET['height'], FALSE);
}
else
{
  
$resized Files::makeFile($manager->getImagesDir(),$_GET['to']);
}

// Check to see if it already exists
if(is_file($resized))
{
    
// And is newer
    
if(filemtime($resized) >= filemtime($fullpath))
    {
        
js_success($_GET['to']);
    }
}



// resize (thumbnailer will do this for us just fine)
$thumbnailer = new Thumbnail($_GET['width'],$_GET['height']);
$thumbnailer->proportional FALSE;
$thumbnailer->createThumbnail($fullpath$resized);

// did it work?
if(is_file($resized))
{
    
js_success($_GET['to']);
}
else
{
    
js_fail("Resize Failed.");
}
?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0051 ]--