Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Problem with uploading shell

Hello guys!
I'm trying to upload a shell via Firefox's Addon Tamper Data. I got a shell that I save for example as c99.php.jpg. I'm choosing that file in the upload form which code is down. Then Tools > Tamper Data > Start Temper Data > Submitting the form > Clicking on the "Tamper" button and editing c99.php.jpg to c99.php. Then the upload form gives me an error that I can't upload the shell due to the restriction in the extensions. I tried that with a few forms, same for all. I know that it might not work with all of the forms but can you give me any that is vulnerable or what am I doing wrong. Thanks in advance!

upload.php form: http://pastebin.com/Mu5kzbEg
it's a server side extension check; not javascript. your tamper and edit filename is useless
(Mar 20, 2017 01:36 PM).kr. Wrote:  it's a server side extension check; not javascript. your tamper and edit filename is useless

This.

You can't bypass it if it's checked server side.
You should try to look for RFI's in order to inject a shell
Thanks guys! I'm trying different attacks to check how it goes, thanks for the advice as well
find other ways to upload the shell, get admin info or smth

“I wish I could say everything in one word. I hate all the things that can happen between the beginning of a sentence and the end.” ~ Leonard Cohen
Without testing and purely looking at the code I think it's still vulnerable. Try c99.php;.jpg and change the MIME to image/jpg

Code
if($file_size > 2097152){
         $errors[]='File size must be excately 2 MB';
      }

Dunno if this is an unrestricted upload challenge or not, but the file could be anything below 2097152 and does t have to be exactly 2mb.

Edit:

Analyzed the code again, and I changed my mind. I do not think it's possible to upload php.
do you need shells hit me up with ur skype


Possibly Related Threads...
Thread / Author Replies Views Last Post
by brown8813Apr 30, 2020 06:59 AM 3 242 Apr 30, 2020 06:59 AM
Last Post: Dhunch0
by tereMautApr 3, 2019 05:43 AM 0 131 Apr 3, 2019 05:43 AM
Last Post: tereMaut
by mutybyteJul 23, 2017 11:30 AM 1 117 Jul 23, 2017 11:30 AM
Last Post: THC