## https://sploitus.com/exploit?id=KITPLOIT:TOOLS-GITHUB-L-URK-CVE-2024-6387
# CVE-2024-6387 regreSSHion
_regreSSHion μ΅μ€νλ‘μμ μν κ°λ
μ¦λͺ
νμ΄μ¬ μ€ν¬λ¦½νΈ. λ²μ 0.2.1 λΉλ POC_ 
# μ€μΉ
root@kitploit:~
git clone https://github.com/l-urk/CVE-2024-6387.git
root@kitploit:~
cd CVE-2024-6387
root@kitploit:~
pip3 install -r requirements.txt
root@kitploit:~
python3 regreSSHion.py -h
# μ¬μ©λ²
root@kitploit:~
π CVE-2024-6387 regreSSHion μ격 μ½λ μ€ν μ·¨μ½μ μ΅μ€νλ‘μ μ€ν¬λ¦½νΈ
usage: regreSSHion.py [-h] -i IP -p PORT [-t] [-c] [-d] [-r] [-x] [-y] [-z]
π CVE-2024-6387 regreSSHion remote code execution vulnerability exploit script
options:
-h, --help λμλ§ λ©μμ§λ₯Ό νμνκ³ μ’
λ£ν©λλ€.
-i IP, --ip IP λμ SSH μλ² IPv4 (νμ: -i 0.0.0.0)
-p PORT, --port PORT λμ SSH μλ² ν¬νΈ λ²νΈ (νμ: -p 22)
-t, --time λͺ¨λ λ‘κ·Έ μΆλ ₯μ μκ° νμ νμ±ν (νμ: -t)
-c, --clear μ΅μ€νλ‘μ μ€ν μ νλ©΄ μ§μ°κΈ° (νμ: -c)
-d, --debug μ€ν μ λλ²κ·Έ λ‘κ·Έ μΆλ ₯ 보기 νμ±ν (νμ: -d)
-r, --repeat RCE μ±κ³΅ν λκΉμ§ μ΅μ€νλ‘μ λ°λ³΅ νμ±ν (νμ: -r)
-x, --skipssh SSH νΈλμ
°μ΄ν¬ 건λλ°κΈ° νμ±ν (νμ: -x)
-y, --skipheap ν λ° νμ± κ±΄λλ°κΈ° νμ±ν (νμ: -y)
-z, --skipfinal μ΅μ’
ID νμΈ κ±΄λλ°κΈ° νμ±ν (νμ: -z)
π μν₯μ λ°λ OpenSSH λ²μ : 1.2.2p1 ~ 4.4 λ° 8.5p1 ~ 9.8
π μ°λ½μ²: github.com/l-urk - x.com/l_urkk