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.

Source | Google | Stack overflow

Edit

git clone [email protected]:rapid7/metasploit-framework.git

cd metasploit-framework

open modules/auxiliary/gather/d20pass.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-MetasploitModule-parseusers-for-pr


# Commit to git

git add modules/auxiliary/gather/d20pass.rbgit commit -m "better docs for MetasploitModule#parseusers"


# Open pull request

gem 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!