Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 961 Bytes

README.md

File metadata and controls

28 lines (18 loc) · 961 Bytes

SSHNuke_info

This repo pairs with the !exploitable Episode Two - Enter the Matrix blog post.

SSHNuke, aka the exploit used by Trinity in The Matrix Reloaded, attacks OpenSSH versions prior to 2.3.0.

The main.c re-implements the vulnerability in the simplest package. This allows you to prototype your own basic exploits to understand this famous vulnerability.

build instructions

gcc -g main.c

That's it, you get an a.out which accepts the exploit buffer over stdin.

alt

If you want to cheat, switch to the cheat branch and see a crash example.

Credit

  • Code is 99% copy/pasted from OpenSSH with an attempt to retain all copywrites
  • Dennis Goodlett of Doyensec wrote only the main function
  • Vulnerability originaly discovered by Michal Zalewski ref