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-2024-22274-RCE — Go-based exploit for CVE-2024-22274 that creates a new user via SSH and provides a root shell on the target machine for authorized penetration testing. | Kitploit
Tools/GitHubGitHub/mustafa1986/cve-2024-22274-rce
Privilege EscalationVulnerability AnalysisExploitationPenetration TestingLearning & EducationRemote Access Tool
GitHubmustafa1986/cve-2024-22274-rce

CVE-2024-22274-RCE

Go-based exploit for CVE-2024-22274 that creates a new user via SSH and provides a root shell on the target machine for authorized penetration testing.

Share
View Repository
252 years agoNot yet reviewed

CVE-2024-22274 Exploit

This repository contains an exploit for CVE-2024-22274. The exploit creates a new user on a remote machine via SSH and then provides a root shell.

Requirements

  • Go (Golang) installed on your machine. You can download it from here.
  • A remote machine with SSH access.

Compilation

  1. Clone the repository:

    git clone https://github.com/Mustafa1986/CVE-2024-22274-RCE.git
    cd CVE-2024-22274-RCE
    
  2. Install the required packages:

    go mod init cve-2024-22274
    go mod tidy
    go get golang.org/x/crypto/ssh
    go get golang.org/x/term
    
  3. Compile the Go program:

    go build -o cve-2024-22274-rce main.go
    

Usage

  1. Run the compiled program:

    ./cve-2024-22274-rce
    
  2. Follow the prompts:

    • Enter the host address of the target machine.
    • Enter the SSH port (default is 22).
    • Enter the SSH username of the target machine.
    • Enter the SSH password of the target machine.
    • Enter the new username you want to create.
    • Enter the new password for the new user.
  3. After the user is created, you will get a root shell on the target machine. You can execute commands as the new user.

Example

[+] CVE-2024-22274 by Mustafa
[-] Enter host address: 192.168.0.100
[-] Enter port (default 22): 22
[-] Enter SSH username: root
[-] Enter SSH password: ********
[-] Enter new username: newuser
[-] Enter new password: ********
[+] Connected to 192.168.1.100 via SSH
[+] Created user newuser on 192.168.1.100
[+] Connected user newuser via SSH
[+] Root-shell# (type 'exit' to quit): 

Disclaimer This code is for educational purposes only. Use it responsibly and only on systems you have permission to test.

License This project is licensed under the MIT License - see the LICENSE file for details.

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.

    1.0k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    593
  • 3

    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.

    371
  • 4

    redforge

    cybersecurity91/redforge

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

    336
  • 5

    ARTEX

    baarai/artex

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

    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.

    322

Explore all tools

Browse our collection of tools

View all tools →