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-2019-7214 — For CTF use only (the CVE-2019-7214 also resolves the host from /etc/hosts) | Kitploit
Tools/GitHubGitHub/elusivehacker/cve-2019-7214
Payload GenerationExploitationWeb Application ExploitationCTFPenetration TestingLearning & Education
GitHubelusivehacker/cve-2019-7214

CVE-2019-7214

For CTF use only (the CVE-2019-7214 also resolves the host from /etc/hosts)

View Repository
11 year agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

Windows Reverse Shell Exploit (PowerShell over TCP)

This Python script targets a vulnerable service running on a remote Windows machine. It sends a serialized .NET payload that launches a PowerShell-based reverse shell back to the attacker's machine.

CVE-2019-7214

Remote Code Execution in .NET deserialization for the SmarterMail system.


⚙️ Configuration

Update the script’s configuration section to match your environment:

root@kitploit:~
HOSTNAME = 'hostname'       # Target hostname (resolved via /etc/hosts)
PORT = 9999                 # Target port listening for serialized input
LHOST = '192.168.45.185'    # Attacker IP (listener)
LPORT = 4444                # Attacker listening port

🧪 What It Does

  • Resolves the target's hostname to an IP address.
  • Constructs a PowerShell reverse shell command.
  • Base64-encodes the command in UTF-16LE format.
  • Appends it to a pre-built serialized .NET payload blob.
  • Sends the payload over a TCP connection to the target.

🛠 Requirements

  • Python 3.x
  • Netcat or a similar tool listening on the attacker's port:
    root@kitploit:~
    nc -lvnp 4444
    

🚀 Usage

root@kitploit:~
python3 CVE-2019-7214 .py

If successful, you'll get a PowerShell prompt from the target on your listener.


🧼 Notes

  • Make sure the target accepts serialized .NET input over the specified port.
  • This script assumes the target can execute deserialized objects containing System.Management.Automation functionality.
  • Be careful with spacing, encoding, and payload size – the PowerShell command is padded to exactly 1360 bytes to avoid corruption.

⚠️ Disclaimer

This script is provided for educational purposes only. Unauthorized use against systems you do not own or have explicit permission to test is illegal and unethical.

Download Tool