{"id":13538477,"url":"https://github.com/skorov/ridrelay","last_synced_at":"2025-04-02T05:31:17.181Z","repository":{"id":170803575,"uuid":"129558061","full_name":"skorov/ridrelay","owner":"skorov","description":"Enumerate usernames on a domain where you have no creds by using SMB Relay with low priv.","archived":false,"fork":false,"pushed_at":"2020-05-20T03:35:32.000Z","size":43,"stargazers_count":393,"open_issues_count":0,"forks_count":56,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-03-24T02:52:11.180Z","etag":null,"topics":["activedirectory","impacket","pentesting","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skorov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-14T22:10:01.000Z","updated_at":"2025-02-03T09:09:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"f76e5c2a-df52-4d9c-b487-1b6bd7ebe02e","html_url":"https://github.com/skorov/ridrelay","commit_stats":null,"previous_names":["skorov/ridrelay"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skorov%2Fridrelay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skorov%2Fridrelay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skorov%2Fridrelay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skorov%2Fridrelay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skorov","download_url":"https://codeload.github.com/skorov/ridrelay/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246763805,"owners_count":20829795,"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":["activedirectory","impacket","pentesting","python"],"created_at":"2024-08-01T09:01:12.509Z","updated_at":"2025-04-02T05:31:16.948Z","avatar_url":"https://github.com/skorov.png","language":"Python","funding_links":[],"categories":["\u003ca id=\"9eee96404f868f372a6cbc6769ccb7f8\"\u003e\u003c/a\u003e工具"],"sub_categories":["\u003ca id=\"31185b925d5152c7469b963809ceb22d\"\u003e\u003c/a\u003e新添加的"],"readme":"# RidRelay\nQuick and easy way to get domain usernames while on an internal network.\n\nHit me up: [@skorov8](https://twitter.com/skorov8)\n\n## How it works\nRidRelay combines the NTLM Relay attack, common lsarpc based queries and RID cycling to get a list of domain usernames. It takes these steps:\n1. Spins up an SMB and HTTP servers and waits for an incoming connection\n2. The incoming credentials are relayed to a specified target, creating a connection with the context of the relayed user\n3. Queries are made down the SMB connection to the lsarpc pipe to get the list of domain usernames. This is done by cycling up to 50000 RIDs\n4. The password policy is extracted through the samr pipe\n\n(For best results, use with Responder)\n\n## Dependencies\n* Python 3.6\n* Impacket v0.9.20-dev or above\n\n## Installation\n```\npipenv install\npipenv shell\n\n# Optional: Run if installing impacket\ngit submodule update --init --recursive\ncd submodules/impacket\npip install .\ncd ../..\n```\n\n## Usage\nFirst, find a target host to relay to. The target must be a member of the domain and MUST have SMB Signing off. [CrackMapExec](https://github.com/byt3bl33d3r/CrackMapExec) can get this info for you very quick!\n\nStart RidRelay pointing to the target:\n```\npython ridrelay.py -t 10.0.0.50\n```\nOR\n\nAlso output usernames to file\n```\npython ridrelay.py -t 10.0.0.50 -o path_to_output.txt\n```\n\n**Highly Recommended:** Start [Responder](https://github.com/SpiderLabs/Responder) to trick users to connecting to RidRelay\n\n## Shout out\nMad props go to:\n* Ronnie Flathers ([@ropnop](https://twitter.com/ropnop)) - Original idea on low priv smb relaying\n\n## TODO:\n* Add password policy enumeration - *DONE*\n* ~~Dynamic relaying based on where incoming creds have admin rights~~\n* ~~Getting active sessions???~~\n* ~~Connect with Bloodhound???~~\n* Decided to keep this tool simple. Above functionality will come in a new tool at some stage\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskorov%2Fridrelay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskorov%2Fridrelay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskorov%2Fridrelay/lists"}