metasploit-framework

https://github.com/rapid7/metasploit-framework

Ruby

Metasploit Framework

Msf::Auxiliary::AuthBrute#each_user_pass

Checks all three files for usernames and passwords, and combines them into
one credential list to apply against the supplied block. The block (usually
something like do_login(user,pass) ) is responsible for actually recording
success and failure in its own way; each_user_pass() will only respond to
a return value of :done (which will signal to end all processing) and
to :next_user (which will cause that username to be skipped for subsequent
password guesses). Other return values won't affect the processing of the
list.

The 'noconn' argument should be set to true if each_user_pass is merely
iterating over the usernames and passwords and should not respect
bruteforce_speed as a delaying factor.

Source | Google | Stack overflow

Edit

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

cd metasploit-framework

open lib/msf/core/auxiliary/auth_brute.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Msf--Auxiliary--AuthBrute-each_user_pass-for-pr


# Commit to git

git add lib/msf/core/auxiliary/auth_brute.rbgit commit -m "better docs for Msf::Auxiliary::AuthBrute#each_user_pass"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Msf--Auxiliary--AuthBrute-each_user_pass-for-pr

hub pull-request


# Celebrate!