Many of you have faced situation in which you hacked a website and have an admin access....Enumerating the admin access you have found an upload module.
Let's say it is a photo gallery module. The developer had put some validations like only jpg, bmp and gif files can only be uploaded.
You tried many ways like adding GIF89a; before the starting of php tag (<?php) but with no luck....Well as such there are many ways to overcome this.
I will describe one method to successfully upload our php shell on such websites.
Note: This method wont work 100% of the time but atleast this will solve your query almost 60% of the time... :-) Not bad though!!!!!!!
First let us quickly setup our environment for this. Things which you need to carry out this are as follow