![]() |
|
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: Beginner Hacking (https://hackforums.net/forumdisplay.php?fid=4) +----- Forum: Hacking Tutorials (https://hackforums.net/forumdisplay.php?fid=47) +----- Thread: SQL Injection Tutorial [Uploading Shell] (/showthread.php?tid=1918285) |
SQL Injection Tutorial [Uploading Shell] - Scrat - Nov 14, 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.. * - fir3wall - Nov 14, 2011 clean and short tutorial ... but I give 5 star :D thanks Mate * - amex - Nov 15, 2011 This shell... is for what purpose? :D Sorry If made noob question :D * - ๖ۣۜ¢уρяισт-мєякѕ - Nov 15, 2011 Nice tutorial & yeah, it's clean and short and it looks really easy to do for new people who don't know how to do this. * - Chillae - Nov 15, 2011 Great, to the point tutorial. :) Loved that binary.gif background! I have a semi off topic question though about the deface page: What is the text effect called where the text appears to be typed as you view it? Thanks for the tutorial! * - ๖ۣۜ¢уρяισт-мєякѕ - Nov 15, 2011 Yes, that' background is linked to my defaced page as well. Check it out on my threads. The link is under merked.net/bg.gif I think. * - Gruv3r14 - Jan 23, 2012 How do I find the file manager page? * - Saturnus - Jan 23, 2012 Great & good Tutorial :) Think you. |