rapid7/metasploit-framework — pull request #142 by jhartftw (2012-01-29 22:07:17+00:00)
Title: Loot .netrc files, generic enum_user_directories

Loot the credentials found in users .netrc files. There is a ton of duplication happening in the post modules related to enumerating user home directories, so rather than let that keep happening, I wrote enum_user_directories.

This code has the same problem as my mount.smbfs loot code in that it doesn't properly handle hosts that are not Host objects when connected to a database. How can I fix that?