
CVE-2024-6387 (regreSSHion) Exploit (PoC), a vulnerability in OpenSSH's server (sshd) on glibc-based Linux systems.
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.

gcc compiler installed.Compile the Exploit:
gcc -o regreSSHion exploit.c -lpthread
Run the Exploit:
./regreSSHion <target_ip> <target_port>
Replace <target_ip> and <target_port> with the IP address and port of the vulnerable OpenSSH server.
Interpret Output:
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.
Use of this exploit is at your own risk. By using this software, you agree that:
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.