You know you can just add a null to the file so it executes as a PHP but the website recognizes it as a .jpg, right?
[TUT]How to Upload a Shell[PICS SOON] |
|
Null Bytes are really uncommon via poison uploads mainly because the file is read in image format but considering its formatted in PHP the image itself doesn't execute, thus an error.
You can always try using other formats such as: shell.php.jpg%00 shell.php.jpg:; shell.php.jpg%; shell.php.jpg%: shell.php.jpg; shell.php.jpg;%00 shell.php.jpg%00; shell.php.jpg%00:; You can also try setting up a basic ajax backdoor as a plugin and then you can execute global commands such as wget to install you're shell. Quite useful if you're doing it from the webroot directory considering it can be accessed easier. FTP is useful and all but mput is usually unsuccessful considering it just reads it as a source, FTP clients usually help get the actual file embedded on the FTP server (once done you can access ftp.sitename.com/shell.php) . The htaccess trick usually doesn't work because its standards are viewed as a simple txt file and the web server usually can't read from that and execute it (you don't just GET read/write access) . You can always use /proc/self/environ and identify server banner information and then poison you're User Agent to a system() command and read from a wget statement to you're shell. Uncommon but it can happen. Good tutorial bro.
I have uploaded a php shell but i cant execute them as i blv the admin has mentioned in root .htaccess that all the file uploaded in files folder with .php as extension anywhere cant be executed. I have tried uploading html file and than using .htaccess(in sub folder) to execute it as php but no success. Any help?
(Mar 17, 2011 10:41 AM)koolkid Wrote: http://ankitthehacker.wordpress.com/2011...d-a-shell/ Well. This is the original link. Anyway thanks. |
|
|
