Metasploit-framework: SSH modules writing to ~/.ssh/known_hosts

Created on 6 Jul 2018  路  3Comments  路  Source: rapid7/metasploit-framework

This has been annoying me for quite some time.

  1. Run an SSH module
  2. See that it wrote to ~/.ssh/known_hosts
  3. Get angry because you just used a scanner

Note that the cargo-culted SSH options hash we use already disables config and agent.

bug library module newbie-friendly

Most helpful comment

I'll also add that if you are testing multiple networks on an engagement with overlapping IP ranges, you will get a silent failure for ssh_login if there is a server ssh key mismatch. That's always annoyed the hell out of me.

All 3 comments

I'll also add that if you are testing multiple networks on an engagement with overlapping IP ranges, you will get a silent failure for ssh_login if there is a server ssh key mismatch. That's always annoyed the hell out of me.

Patch submitted @wvu-r7

Hooray!

Was this page helpful?
0 / 5 - 0 ratings