{"id":15291810,"url":"https://github.com/hakbyte/snatch","last_synced_at":"2026-02-12T04:38:11.260Z","repository":{"id":257462753,"uuid":"858345355","full_name":"hakbyte/snatch","owner":"hakbyte","description":"A helper tool to retrieve the tokens required by AzureHound.","archived":false,"fork":false,"pushed_at":"2024-09-17T10:38:31.000Z","size":230,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T06:32:12.226Z","etag":null,"topics":["azure","azurehound","bloodhound","redteam"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hakbyte.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":"2024-09-16T18:26:03.000Z","updated_at":"2025-03-18T17:59:34.000Z","dependencies_parsed_at":"2024-09-16T23:34:03.369Z","dependency_job_id":"178b0c01-480a-419e-8251-71a7c78a94a6","html_url":"https://github.com/hakbyte/snatch","commit_stats":null,"previous_names":["hakbyte/snatch"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/hakbyte/snatch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakbyte%2Fsnatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakbyte%2Fsnatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakbyte%2Fsnatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakbyte%2Fsnatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hakbyte","download_url":"https://codeload.github.com/hakbyte/snatch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakbyte%2Fsnatch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271680221,"owners_count":24802074,"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","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["azure","azurehound","bloodhound","redteam"],"created_at":"2024-09-30T16:14:34.912Z","updated_at":"2026-02-12T04:38:06.207Z","avatar_url":"https://github.com/hakbyte.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Snatch\n\nA helper tool to retrieve the tokens required by AzureHound. It relies on the\nAzure PowerShell app (client id `1950a258-227b-4e31-a9cf-717495945fc2`) which is\navailable by default to all users.\n\nCheck out the [AzureHound Wiki](https://bloodhound.readthedocs.io/en/latest/data-collection/azurehound.html)\nfor the complete story.\n\n## Usage\n\nRun `snatch` from a terminal. It will get a Device Authentication code and ask\nyou to visit a URL to complete the authentication flow:\n\n![](.assets/snatch-01.png)\n\nEnter the Device Code:\n\n![](.assets/snatch-02.png)\n\nComplete the next steps to authenticate yourself. Once done, you will see the\nfollowing message:\n\n![](.assets/snatch-03.png)\n\nBack to the terminal, press any key to retrieve the tokens:\n\n![](.assets/snatch-04.png)\n\nUse the refresh token with AzureHound to query the MS Graph API. For example:\n\n```\nazurehound -r \"0.ARwA6Wg...\" list --tenant \"contoso.onmicrosoft.com\" -o output.json\n```\n\n## Installation\n\nI recommend using [pipx](https://github.com/pypa/pipx) as it has become quite\nthe standard these days:\n\n```\npipx install git+https://github.com/hakbyte/snatch\n```\n\nHowever if you don't want to use `pipx`,  just clone this repo and build the\ntool locally:\n\n```\npython3 setup.py sdist bdist_wheel\n```\n\nThe resulting package (e.g. `dist/snatch-0.1.0-py3-none-any.whl`) can be\ninstalled using `pip`:\n\n```\npip install dist/snatch-0.1.0-py3-none-any.whl\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhakbyte%2Fsnatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhakbyte%2Fsnatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhakbyte%2Fsnatch/lists"}