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

How do i upload .PHP Script on a Vulnerable Server

I do have some vulnerable sites. and I'm able to dump their database with tools like Havij & SQL Dumper but thats not my interest.

My question is How can i upload a (.php) Script on a vulnerable server. the server is found vulnerable to sql injection

and i want to upload a script on the server.

Is this possible?
I'd appreciate your help on this.
Maybe you can try loggining in as admin into their administration. There may be an upload input where you could upload your shell
You would need to find a writable directory
[Image: Zq3e0Hn.png]
(May 27, 2017 05:23 AM)Mr. Neo Wrote:  Maybe you can try loggining in as admin into their administration. There may be an upload input where you could upload your shell

Not every single site has an admin panel that allows file upload.
You could attempt writing to a file from SQL, then opening that file on the site which (with the write extension) be interpreted through PHP.
(Feb 3, 2018 03:19 PM)kickball34 Wrote:  i'm gonna get your ip address and rat your pc.
(Jun 1, 2017 08:17 AM)grady Wrote:  Not every single site has an admin panel that allows file upload.
You could attempt writing to a file from SQL, then opening that file on the site which (with the write extension) be interpreted through PHP.

That's certainly true. Damn me, I really have to get into coding.
(Jun 1, 2017 08:17 AM)grady Wrote:  Not every single site has an admin panel that allows file upload.
You could attempt writing to a file from SQL, then opening that file on the site which (with the write extension) be interpreted through PHP.

Yes, you can indeed write your evil.php onto the webserver through SQL but for this to work you need a bunch of requirements.
  • You must have write privs and a writeable directory
  • Root path (Example: /var/www/mysite)
  • Magic Quotes must be enabled

If you want me to help you out OP, let me know.
beginners method is to find admin panel and login into it with admin details or you can bypass admin panel with no redirect addon (if you don't have login details) then find any place to upload image or any other file,upload your shell there,but some sites doesn't allow to upload .PHP file as image then you need to use temper data or modify headers to modify request.
if you have any further problem i am here to help :)


Possibly Related Threads...
Thread / Author Replies Views Last Post
by ironingboardJun 11, 2020 12:57 AM 1 152 Jun 11, 2020 12:57 AM
Last Post: Ampere
by dark_angel1Apr 8, 2017 09:27 PM 1 245 Apr 8, 2017 09:27 PM
Last Post: dark_angel1
by DataDumperOct 18, 2016 02:53 PM 6 476 Oct 18, 2016 02:53 PM
Last Post: Dr.MTR