metasploit-framework
https://github.com/rapid7/metasploit-framework
Ruby
Metasploit Framework
MetasploitModule#parseusers
Parse the usernames, passwords, and security levels from the config It's a little ugly (lots of hard-coded offsets). The userdata starts at an offset dictated by the B014USERS config offset 0x14 (20) bytes. The rest is all about skipping past the section header.
Edit
git clone [email protected]:rapid7/metasploit-framework.git
cd metasploit-framework
open modules/auxiliary/gather/d20pass.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-MetasploitModule-parseusers-for-pr
# Commit to gitgit add modules/auxiliary/gather/d20pass.rbgit commit -m "better docs for MetasploitModule#parseusers"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-MetasploitModule-parseusers-for-pr
hub pull-request
# Celebrate!