⚜ RBBD Shell Backdoor ⚜
Current Dir
:
D:
/
php
/
!!!
/
tridy
/
Home
Upload
Command
Config
Jumping
Symlink
Mass Deface
Bypass Disable Function
K-RDP 5H3LL
Adminer
Change Password cPanel
Zone-H
Current File : D:/php/!!!/tridy/resize1.php
<?php /* +-----------------------------------------------------------------------+ | Image_resize is free to use PHP script. You can support development | | via PayPal or check updates on page http://blog.petrknap.cz/c197.html | +-----------------------------------------------------------------------+ /*------------------------------------------------------------------------------------------------- About * updated: 2012-02-20 * author: Petr Knap * e-mail: kontakt@petrknap.cz * homepage: http://petrknap.cz/ Inputs * src - path to image * width - new width in px * target - output (default null) If $target is not null the output is file defined in $target. REMEMBER to use readfile($target) after call image_join for send saved file to output. Example <img src="img.php?file=desktop.jpg" alt="My desktop" /> Where file img.php contains: <?php require_once('./image_resize.php'); $e404 = './data/e404.png'; if(!file_exists($_GET['file'])) { header("Content-Type: image/png"); readfile($e404); } else image_resize($_GET['file'], 400); ?> Bugs & Errors The script has no known bugs. Have you found a bug? Report it via e-mail! -------------------------------------------------------------------------------------------------*/ function image_resize($src, $width, $target = null) { // image information $i = getimagesize($src); $w = $i[0]; $h = $i[1]; $t = $i[2]; // new size if($width > $w) { $width = $w; $height = $h; } else { $height = round($width/$w*$h); } //------------------------------------------------------------------------------------------------- // new image $new_image = imagecreatetruecolor($width, $height); $background = 0x00FFFFFF; // white imagefilledrectangle($new_image, 0, 0, $width, $height, $background); // load $image switch ( $t ) { case 1: // GIF $image = imagecreatefromgif($src); break; case 2: // JPeG $image = imagecreatefromjpeg($src); break; default: // PNG $image = imagecreatefrompng($src); break; } // resize & copy $image to $new_image imagecopyresampled($new_image, $image, 0, 0, 0, 0, $width, $height, $w, $h); //------------------------------------------------------------------------------------------------- // output if($target == null) header("Content-Type: image/jpeg"); // quality is set at 95%, can be changed imagejpeg($new_image, $target, 95); // free memory imagedestroy($new_image); imagedestroy($image); } //------------------------------------------------------------------------------------------------- ?>
Fighter Anas Private Shell V.1 -
Royal
Battler BD
Copyright © Fighter Anas