![]() |
|
SQL Injection Tutorial [Uploading Shell] - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45) +--- Forum: Grayhat • Purple Team • Hybrid Security (https://hackforums.net/forumdisplay.php?fid=449) +---- Forum: Website Hacking (https://hackforums.net/forumdisplay.php?fid=43) +----- Forum: SQL Injection Attacks (https://hackforums.net/forumdisplay.php?fid=103) +----- Thread: SQL Injection Tutorial [Uploading Shell] (/showthread.php?tid=1921070) Pages: Pages
1
2
|
SQL Injection Tutorial [Uploading Shell] - Scrat - Nov 15, 2011 SQL Injection Tutorial [Uploading Shell]
This is my next tutorial on SQL Injection and it is about uploading a shell after you have successfully Injected the site and extracted the data and you have the admin page login. If you don't know how to do these things you can read my tutorial about Basic SQL Injection. By reading this tutorial you agree that: The author is not responsible in anyway for you actions done by the use of this tutorial. The tutorial is for educational purposes only and for no site harm. If posting this tutorial somewhere else give credits to the author Ma3x-. For this tutorial you will need.
Step №1 Finding an upload in the admin panel So the first thing you will need is to find a place in the admin panel, where you can upload pictures. The place could be anything like "News, Essays, Pictures" or anything of this sort. Once you have found a place like that you need to upload your shell in there. If it doesn't work by uploading it as "shell.php" then add "shell.php.jpg" at the end of it. == Step №2 Finding your shell Now that is quite an easy thing to do, all you actually have to do is go to the place where you uploaded your shell. Like if you uploaded it in the news section of the website it will be there with a failed photo picture maybe. You will have to right click on it and click "Copy Address" or something like that. Then you put it in the URL textbox of your browser and hit "Enter". == Step №3 Finding a the index Now since we are in our shell we have to go to "File Manager" and see in which location we are. So we will need to find the location called "publichtml" that is where the site index page is uploaded on most of the sites. If it's not there you will have to go through the other folders until you find index.php. == Step №4 Defacing Now when you have found index.php, you will have to delete it. After that you will have to upload your own index.php. That has to be your defacement page and that is all. == Step №5 Defacement Page Alright, alright I will explain to you how to make a simple defacement page. You can either code your own page if you know php or you can edit an already made page. The second option is if you have no idea what php is. Well since I won't be teaching you PHP I will just hand you over a ready defaced page and just explain some bits of the code. I will give you a kobez's deface page which he gave away to everybody so they can learn. This is how it looks like. Spoiler (Click to View) Here is the code. Code <html>At Code body {At Code <pre>Change the text in this to whatever you want. And to add some music to it add this code on top of the code but below </html>. Code <embed src="http://www.youtube.com/v/IUGzY-ihqWc&autoplay=1" type="application/x-shockwave-flash" wmode="transparent"The only catch here is that you have to edit your youtube video link a little bit. Normal link: http://www.youtube.com/watch?v=wLBpLz5ELPI Edited link: http://www.youtube.com/v/wLBpLz5ELPI Simply remove the "watch?v=" and put "/v/" on its place. Oh and put &autoplay=1 to it its end. Just refer to the code above you should do alright if you have a little common sense. I hope you guys liked the tutorial and it helped you in one way or another. Please say a little thanks for it.. Other tutorials by Ma3x-. [Video] SQL Injection [Injecting Website, Basic Injection] SQL Injection [Injecting Website, Basic Injection] SQL Injection [String Based Injection] SQL Injection [Vulnerable Sites List] Free VPN Tutorial * - MaXoNe - Nov 15, 2011 No, stick it up your ass! hahahahhahahha nice one , good job writing it , btw bear grylls , fuck yeah... * - Scrat - Nov 16, 2011 Come on only one reply I really did my best to write this tutorial... * - syng - Nov 16, 2011 Nice tutorial mate,this should help alot of people. I myself got some problems uploading a shell tho. I uploaded my c99 shell as .php and the site took it,I went to the homepage and saw my "failed image". I did the copy URL like u said and pasted it in another tab but nothing happens,the site stays the same. * - napster.sy - Nov 16, 2011 thank u very much man i hope see for u a new posts :( * - Ubaste - Nov 16, 2011 I tried to upload my shell via " Add picture " function at the admin panel, its say it succed added the picture. But I could not fint id, and pictures should be located at /documents/Blabla.jpg .. So I tryed to do " Http://site.com//documents/Blabla.php " But just said the located file did not exist. Thanks anyway. The shell uploading is pretty simple. But I bookmarked your thread for the deface part. Gotta look at that later. Thanks * - No - Nov 17, 2011 Looks nice enough and well written, but I think it could certainly do with a bit more information on bypassing FUR such as nullbytes. * - Prominent - Nov 19, 2011 Well to make it more friendly to new comers, explain what is a shell and why it is used for. Other than that, the tutorial is simple and nice. * - Scrat - Nov 22, 2011 Come on guys only two posts? I did so much hard work on that... * - Diabolis - Dec 4, 2011 lol, for what its worth, i read it, and i only had very little knowledge of shells and what exactly to do after i crack the admins password. (even though ive got about 10 sites admin info...just sitting there....) Just to clarify, you get to your admin panel (i know how to do that), you upload your shell via the hidden uploader into any part of the website, but something thats easy to find. Go there on the website, and find your "failed photo" (...lol) and copy the address, paste that into the url. Now your in your shell, go to file manager, find index.php (will probably be in publichtml), delete the index.php and upload your own file. Ive got it all up to this point, but heres a question. What you have shown in the code page isnt php, its html....Do you just create any old html page, save it as .php, and upload it? I'd imagine thats all you do....since deface pages dont really do anything but ridicule the original website owner....and im already fluent in html, that would make things a lot easier 🤭 * - jazdevi - Dec 4, 2011 Yea, I needed this too, I wasn't sure how the shell thing worked. And nobody uses PHP in their deface page (not from what I've seen anyway), so I don't know why you wrote that. All you really need is basic HTML knowledge. Thanks though :D * - StealinCpt - Dec 4, 2011 This was a good tutorial, but I dont recomment defacing it if you want your shell to stay alive * - Viking - Dec 4, 2011 This is a great tutorial! I hope this helps a lot of people out. * - B4CK-7R4CK3R - Dec 9, 2011 thank u man good tutorial simple and nice * - Drivers - Dec 11, 2011 Nice tutorial! ✌ Thanks for sharing!🤝 |