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
regreSSHion — CVE-2024-6387 (regreSSHion) Exploit (PoC), a vulnerability in OpenSSH's server (sshd) on glibc-based Linux systems. | Kitploit
Tools/GitHubGitHub/xonoxitron/regresshion
Vulnerability AnalysisExploitationPenetration TestingRed TeamingRemote Access ToolPayload Development
GitHubxonoxitron/regresshion

regreSSHion

CVE-2024-6387 (regreSSHion) Exploit (PoC), a vulnerability in OpenSSH's server (sshd) on glibc-based Linux systems.

View Repository
66122 years agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
Website

regreSSHion Exploit (PoC)

Description

This repository contains an exploit targeting CVE-2024-6387 (regreSSHion), a vulnerability in OpenSSH's server (sshd) on glibc-based Linux systems. It exploits a race condition in the signal handler of OpenSSH, potentially leading to remote code execution as root.

CVE-2024-6387 PoC

Requirements

  • Linux system with glibc-based OpenSSH server (tested on Ubuntu, Debian).
  • gcc compiler installed.
  • Basic understanding of compiling and running C programs.
  • Permission to test or use such exploits on authorized systems only.

Usage

  1. Compile the Exploit:

    root@kitploit:~
    gcc -o regreSSHion exploit.c -lpthread
    
  2. Run the Exploit:

    root@kitploit:~
    ./regreSSHion <target_ip> <target_port>
    

    Replace <target_ip> and <target_port> with the IP address and port of the vulnerable OpenSSH server.

  3. Interpret Output:

    • Monitor the terminal for exploitation attempts and feedback.
    • Adjust timing parameters or shellcode as necessary for successful exploitation.

Shellcode Customization

You can customize the shellcode in the exploit.c file to execute different payloads or commands on the target system. The provided shellcode is a basic example that spawns a /bin/sh shell. Modify the shellcode[] array to suit your specific requirements.

Legal Disclaimer

Use of this exploit is at your own risk. By using this software, you agree that:

  • You have permission to test the exploit on systems that you own or have explicit authorization to test.
  • You will not use this software for any illegal activities.
  • The authors are not responsible for any misuse of this software or any damage caused by it.
  • This software is provided "as is" without warranties or conditions of any kind.

Note: Unauthorized use or distribution of this exploit may violate local, state, or federal laws. Understand and comply with your local laws and regulations before using or distributing this software.

Download Tool