Last active
July 10, 2018 15:43
-
-
Save acammack-r7/06fc0ede7869d5b28497805bc0e11718 to your computer and use it in GitHub Desktop.
Credential PR example files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root | |
foo | |
bar | |
baz | |
admin | |
asdf | |
admin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root root | |
root toor | |
foo bar | |
bar baz | |
baz Summer2018! | |
admin admin | |
asdf qwerty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from metasploit import module, login_scanner | |
# Metasploit Metadata | |
metadata = { | |
'name': 'Cred PR Tester', | |
'description': ''' | |
Throw some creds into the DB | |
''', | |
'authors': [ | |
'Adam Cammack' | |
], | |
'date': '2018-05-07', | |
'license': 'MSF_LICENSE', | |
'references': [ | |
], | |
'type': 'single_host_login_scanner', | |
'options': { | |
'rhost': {'type': 'address', 'description': 'Host to target (unused)', 'required': True}, | |
'rport': {'type': 'port', 'description': 'Port to target (unused)', 'required': True, 'default': 8080}, | |
'userpass': {'type': 'string', 'description': 'A list of username/password combinations to try', 'required': False}, | |
'sleep_interval': {'type': 'float', 'description': 'Time in seconds to wait between login attempts', 'required': False} | |
}, | |
'service_name': 'cred_test' | |
} | |
def valid_login(host, port, user, password): | |
return False | |
if __name__ == '__main__': | |
module.run(metadata, login_scanner.make_scanner(valid_login)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment