{"id":13725402,"url":"https://github.com/ustayready/CredKing","last_synced_at":"2025-05-07T20:32:18.762Z","repository":{"id":59740422,"uuid":"128780959","full_name":"ustayready/CredKing","owner":"ustayready","description":"Password spraying using AWS Lambda for IP rotation","archived":false,"fork":false,"pushed_at":"2023-02-14T15:04:43.000Z","size":3340,"stargazers_count":621,"open_issues_count":6,"forks_count":95,"subscribers_count":25,"default_branch":"master","last_synced_at":"2025-04-04T22:08:45.410Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ustayready.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-04-09T14:01:37.000Z","updated_at":"2025-04-02T06:41:09.000Z","dependencies_parsed_at":"2024-01-18T13:17:21.844Z","dependency_job_id":null,"html_url":"https://github.com/ustayready/CredKing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ustayready%2FCredKing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ustayready%2FCredKing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ustayready%2FCredKing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ustayready%2FCredKing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ustayready","download_url":"https://codeload.github.com/ustayready/CredKing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252953715,"owners_count":21830890,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T01:02:22.043Z","updated_at":"2025-05-07T20:32:17.262Z","avatar_url":"https://github.com/ustayready.png","language":"Python","funding_links":[],"categories":["Python","0x02 工具 :hammer_and_wrench:"],"sub_categories":["1 云服务工具"],"readme":"CredKing\n==================\n- [Overview](#overview)\n\t- [Benefits](#benefits)\n- [Basic Usage](#basic-usage)\n- [Plugin Usage](#plugin-usage)\n    - [Gmail](#gmail)\n    - [Okta](#okta)\n- [Installation](#installation)\n- [Development](#development)\n    - [Plugin specific arguments](#plugin-specific-arguments)\n\n## Overview ##\nEasily launch a password spray using AWS Lambda across multiple regions, rotating IP addresses with each request.\n\n**Brought to you by:**\n\n![Black Hills Information Security](https://www.blackhillsinfosec.com/wp-content/uploads/2016/03/BHIS-logo-L-300x300.png \"Black Hills Information Security\")\n\n### Benefits ###\n\n * Fully supports all AWS Lambda Regions\n * Multi-threaded processing\n * Generates user/password pairs\n * Easily add new plugins\n * Automatically creates execution role and lambdas\n\n## Basic Usage ##\nusage: **credking.py** [-h] --plugin PLUGIN [--threads THREADS] --userfile\n                   USERFILE --passwordfile PASSWORDFILE --access_key\n                   ACCESS_KEY --secret_access_key SECRET_ACCESS_KEY\n                   [--useragentfile USERAGENTFILE]\n\n```\nArguments:\n  -h, --help                            show this help message and exit\n  --plugin PLUGIN                       spraying plugin\n  --threads THREADS                     thread count (default: 1)\n  --userfile USERFILE                   username file\n  --passwordfile PASSWORDFILE           password file\n  --access_key ACCESS_KEY               aws access key\n  --secret_access_key SECRET_ACCESS_KEY aws secret access key\n  --useragentfile                       useragent file\n```\n\n## Plugin Usage ##\n\n### Gmail ###\nThe Gmail plugin does not require any additional arguments.\n\n### Okta ###\nThe Okta plugin adds a new required argument called oktadomain.\n\nusage: **credking.py** \\\u003cusual arugments\\\u003e --oktadomain org.okta.com\n\n## Installation ##\n\n### Ubuntu 16.04\n\nYou can install and run automatically using Python 3 with the following command:\n\n```bash\n$ git clone https://github.com/ustayready/CredKing\n$ cd CredKing\n~/CredKing$ python3 credking.py\n```\n\nNote that Python 3 is required.\n\n**Bug reports, feature requests and patches are welcome.**\n\n## Development ##\n\nYou can create new plugins by:\n\n```bash\n$ cd plugins\n$ mkdir newplugin\n$ cd newplugin\n$ touch __init__.py\n$ touch newplugin.py\n```\n\nNext, make sure to include the lambda handler function in your newplugin.py:\n```python\ndef lambda_handler(event, context):\n\treturn your_function(event['username'], event['password'])\n```\n\nCredKing generates a deployment zip file which the lambdas receive when they are created. Because of this, CredKing requires the pre-reqs to be installed directly into the newplugin folder. You can accomplish this by:\n\n```bash\n$ pip install \u003cpre-req\u003e -t .\n```\n\n### Plugin specific arguments ###\n\nPlugin specific arguments can be specified with no modifications to credking.py, simply pass them as *--argumentname value*\n\nIf your plugin requirements plugin-specific arguments, you can implement a validate function in the \\_\\_init\\_\\_.py file of your plugin directory that will be passed an dictionary of all optional arguments.\n\nBelow is an example of plugin arugment validation used by the okta plugin's [\\_\\_init\\_\\_.py](plugins/okta/__init__.py).\n\n```python\ndef validate(args):\n    if 'oktadomain' in args.keys():\n        return True,None\n    else:\n        error = \"Missing oktadomain argument, specify as --oktadomain org.okta.com\"\n        return False,error\n```\n\nThe [okta.py](plugins/okta/okta.py) lambda_handler function then accesses the oktadomain argument as shown below.\n\n```python\ndef lambda_handler(event, context):\n\tdomain = event['args']['oktadomain']\n\treturn okta_authenticate(domain, event['username'], event['password'], event['useragent'])\n```\n\n**That's it, enjoy!**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fustayready%2FCredKing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fustayready%2FCredKing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fustayready%2FCredKing/lists"}