Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
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.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2023-38831_Exploit — Python script that generates a malicious RAR file exploiting CVE-2023-38831 to execute a reverse shell payload, intended for educational and ethical security research. | Kitploit
Tools/GitHubGitHub/victoriousknight/cve-2023-38831_exploit
Payload GenerationVulnerability AnalysisExploitationPenetration TestingLearning & EducationBinary Exploitation
GitHubvictoriousknight/cve-2023-38831_exploit

CVE-2023-38831_Exploit

Python script that generates a malicious RAR file exploiting CVE-2023-38831 to execute a reverse shell payload, intended for educational and ethical security research.

View Repository
161 year agoNot yet reviewed
Share

CVE-2023-38831 Exploit Proof-of-Concept

Overview

This repository contains a Python script that demonstrates a proof-of-concept (PoC) exploit for CVE-2023-38831. This exploit leverages a vulnerability in specific file-processing mechanisms to execute a reverse shell payload through a malicious RAR file.

Disclaimer:
This project is intended for educational purposes and ethical security research only. Unauthorized use of this code to compromise systems or networks without prior consent is illegal and unethical. The author disclaims all responsibility for misuse.


How It Works

The script automates the creation of a malicious RAR file that exploits the CVE-2023-38831 vulnerability. It embeds a Python reverse shell script into a crafted file structure that executes stealthily.

Steps Performed:

  1. Takes a bait file (non-suspicious file) and a script file (malicious payload) as input.
  2. Creates a structured directory to hide the malicious payload.
  3. Embeds a VBScript to execute the payload silently.
  4. Crafts a RAR archive with manipulated file headers to bypass detection mechanisms.
  5. Outputs the final exploit file.

Requirements

  • Python 3.6+
  • WinRAR 6.2 or below.
  • Ensure shutil and os modules are available (these are standard with Python).

Usage

  1. Clone this repository:

    git clone https://github.com/VictoriousKnight/CVE-2023-38831-POC.git
    cd CVE-2023-38831-POC
    
  2. Prepare the following files:

    • Bait file: Any legitimate empty file (e.g., a harmless PDF or image).
    • Script file: A Python reverse shell or similar payload.
  3. Run the script:

    python exploit.py
    
  4. Provide the required inputs:

    • Name of the bait file.
    • Name of the malicious script.
    • Desired name for the output RAR file.
  5. The exploit file will be generated in the current working directory.


Example

$ python exploit.py
CVE-2023-38831 POC
-------------------------------
Enter the bait file name: scholarship.pdf
Enter the script file name: shell.py
Enter the output RAR file name: scholarship_approved.rar
Exploit generated successfully as 'scholarship_approved.rar'.

Important Notes

  • This script is a proof of concept and should be used only in controlled environments with explicit permission from the system owner.
  • Avoid distributing or using the generated files outside ethical or educational contexts.
  • The exploit relies on known behaviors of RAR processing utilities and may not work in all configurations.

Author

  • Kunal Rajour
  • GitHub: VictotiousKnight

Reminder: Misuse of this script can lead to severe legal consequences. Always follow ethical guidelines and obtain proper authorization.


Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    930
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    554
  • 3

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    354
  • 4

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    349
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    326
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    289

Explore all tools

Browse our collection of tools

View all tools →