Skip to content

Instantly share code, notes, and snippets.

@acammack-r7
Last active July 10, 2018 15:43
Show Gist options
  • Save acammack-r7/06fc0ede7869d5b28497805bc0e11718 to your computer and use it in GitHub Desktop.
Save acammack-r7/06fc0ede7869d5b28497805bc0e11718 to your computer and use it in GitHub Desktop.
Credential PR example files
root
foo
bar
baz
admin
asdf
admin
root root
root toor
foo bar
bar baz
baz Summer2018!
admin admin
asdf qwerty
#!/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