This tool is designed to test Apache servers for the CVE-2021-41773 / CVE-2021-42013 vulnerability. It is intended for educational purposes only and should be used responsibly on systems you have explicit permission to test.
- Clone the repository:
git clone https://github.com/Zyx2440/Apache-HTTP-Server-2.4.50-RCE.git
- Go to the dir:
cd Apache-HTTP-Server-2.4.50-RCE
- install The Requirements:
pip3 install -r requirements.txt
Apache Version Check: For each URL in the provided file, it checks whether the server is running Apache version 2.4.50.
If the server is vulnerable: It attempts to exploit the server by sending payloads to either trigger directory traversal attacks or execute code remotely. If CGI is enabled: It tries to inject a reverse shell payload to gain remote access.
For Educational Use Only: The script is intended for educational purposes to demonstrate how vulnerabilities can be tested and exploited. Using this script against unauthorized targets is illegal and unethical.