Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2023-38831_ReverseShell_Winrar — Generates a malicious RAR archive exploiting CVE-2023-38831 to deliver a reverse shell via a crafted PDF, for ethical testing in controlled environments. | Kitploit
Tools/GitHubGitHub/ben1b3astt/cve-2023-38831_reverseshell_winrar
Payload GenerationExploitationWeb Application ExploitationPenetration TestingLearning & EducationLabs & Practice
GitHubben1b3astt/cve-2023-38831_reverseshell_winrar

CVE-2023-38831_ReverseShell_Winrar

Generates a malicious RAR archive exploiting CVE-2023-38831 to deliver a reverse shell via a crafted PDF, for ethical testing in controlled environments.

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
View Repository
113 years agoNot yet reviewed
Share

CVE-2023-38831

In this case, I share the necessary files to exploit this vulnerability in WinRAR, with which we can create a malicious PDF to establish a reverse shell to our attacker machine.

⚠️ NOTE: This content is shared for ethical purposes and is created to practice in controlled environments without harming third parties; at no time is an apology made for the use of these resources for malicious purposes.

Preparation of Resources and Exploitation

First, we will download the content of the repository.

Let's start preparing all the resources so that the exploitation works correctly.

We have these 3 files:

1-IMAGEN.png

1st STEP: The first thing we have to do is edit the script.bat, in which we will replace the {ip} field with our Attacker IP and the {port} field with our listening port to receive the reverse shell. (I recommend doing this with Visual Studio Code).

2-IMAGEN.png

2nd STEP: We will run the Python script to generate the malicious WinRAR file. To do this, we need to open a PowerShell window in the same path where we have all the resources and execute the following command:

root@kitploit:~
 python cve-2023-38831-exp-gen.py document.pdf script.bat file.rar

3-IMAGEN.png

With this, we should have generated the file.rar archive, which will contain the malicious .pdf file.

3rd STEP: Once this is done, we simply have to set up a listener on our attacker machine and double-click on the document.pdf located inside the archive, and we should have gained access to the system.

4-IMAGEN.png

Download Tool