Add password reporting API to external modules #10002
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds an API to the external module interface capable of reporting correct and incorrect passwords. Also, some refactoring of the API was done to make some things easier to use and (hopefully) more reliable.
Verification (creds)
populate_creds.py
into~/.msf4/modules/auxiliary/test/scanner/load_creds.py
andchmod +x
. https://gist.github.com/acammack-r7/06fc0ede7869d5b28497805bc0e11718creds.txt
into/tmp
./msfconsole
workspace -a pr10002
use auxiliary/test/scanner/load_creds
set rhosts 127.0.0.1
set user_file /tmp/creds.txt
set pass_file /tmp/creds.txt
run
creds
should be emptyedit
and changeFalse
toTrue
in thevalid_login
functionrun
creds
should have all the passwordsVerification (refactor)