Ten Years of Service
Posts: 7
Threads: 3
I UPLOADED A SHELL AND I CANT USE IT 11-11-2016, 12:33 PM
#1
please sinisters , i am able to upload my shell in.php.jpg but while trying to use it the server is not allowing me and giving file not found error....
please how can i use d shell...
•
Ten Years of Service
Posts: 106
Threads: 23
RE: I UPLOADED A SHELL AND I CANT USE IT 11-11-2016, 02:05 PM
#2
use live http headers or tamper data to edit the name of file.....
•
Nine Years of Service
Posts: 1
Threads: 0
RE: I UPLOADED A SHELL AND I CANT USE IT 12-10-2016, 06:58 AM
#4
seems like the server does not allow jpg extensions, try to upload is as php.pjpeg or jpg.php
otherwise use Tamper data or burpsuite to rename it.
•
Thirteen Years of Service
Posts: 2,421
Threads: 231
RE: I UPLOADED A SHELL AND I CANT USE IT 12-10-2016, 09:41 AM
#5
Also remember that the shell may not actually be stored as a file. An extremely common way to avoid this vulnerability is to just use blob storage (a "database" for files). The file is not actually stored on the filesystem of the server (and in the case of businesses, isnt even all in one place), so you're not able to navigate to it. This patches any vulnerabilities in the server backend that would lead to execution, at the cost of speed on retrieval.
When blob storage is not used (and most of the time when it is as well), files aren't stored under the same name you uploaded. The cheap way to do this is to use a SHA512 hash of the file as the name, then track the names in a database, or just use tempnam().
Either way, the only time your uploaded shell is going to work is if the server administrators are completely retarded, or you're trying to pwn some middle schooler's web server.