{"id":20812741,"url":"https://github.com/dadevel/impacket-zsh-integration","last_synced_at":"2025-10-16T06:26:57.818Z","repository":{"id":256223941,"uuid":"854648640","full_name":"dadevel/impacket-zsh-integration","owner":"dadevel","description":"ZSH integration for Impacket","archived":false,"fork":false,"pushed_at":"2025-01-23T16:11:39.000Z","size":8,"stargazers_count":60,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T10:38:11.460Z","etag":null,"topics":["adsecurity","impacket","offsec"],"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/dadevel.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,"zenodo":null}},"created_at":"2024-09-09T14:41:07.000Z","updated_at":"2025-03-25T21:26:56.000Z","dependencies_parsed_at":"2025-01-10T12:44:32.070Z","dependency_job_id":"cf3b0eb2-3ade-4fb4-88bb-593fb262ef81","html_url":"https://github.com/dadevel/impacket-zsh-integration","commit_stats":null,"previous_names":["dadevel/impacket-zsh-integration"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dadevel%2Fimpacket-zsh-integration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dadevel%2Fimpacket-zsh-integration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dadevel%2Fimpacket-zsh-integration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dadevel%2Fimpacket-zsh-integration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dadevel","download_url":"https://codeload.github.com/dadevel/impacket-zsh-integration/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252887415,"owners_count":21819894,"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":["adsecurity","impacket","offsec"],"created_at":"2024-11-17T20:57:54.383Z","updated_at":"2025-10-16T06:26:52.785Z","avatar_url":"https://github.com/dadevel.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Impacket ZSH Integration\n\n![Screenshot](./assets/screenshot.png)\n\nA bunch of scripts to reduce friction when pentesting Active Directory from Linux.\n\n# Setup\n\nClone the repository.\n\n~~~ bash\ngit clone --depth 1 https://github.com/dadevel/impacket-zsh-integration.git ~/.local/share/impacket-zsh-integration\n~~~\n\nAppend the following snippet to your `~/.zshrc`:\n\n~~~ bash\nsource ~/.local/share/impacket-zsh-integration/krbconf.zsh\nsource ~/.local/share/impacket-zsh-integration/proxyconf.zsh\n~~~\n\nFind your [Powerlevel10k](https://github.com/romkatv/powerlevel10k) config and modify it to look something like this:\n\n~~~ bash\n...\n() {\n    ...\n    typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(\n        ...\n        krbconf\n        proxyconf\n    )\n\n    source ~/.local/share/impacket-zsh-integration/powerlevel10k.zsh\n    ...\n}()\n...\n~~~\n\nConfigure your terminal to use [Nerd Fonts](https://www.nerdfonts.com/) or change the icons in [powerlevel10k.zsh](./powerlevel10k.zsh).\n\n# Usage\n\nConfigure a SOCKS proxy in the current shell with the help of [proxychains-ng](https://github.com/rofl0r/proxychains-ng).\nThe network traffic of following commands will be tunneled over the proxy.\n\n~~~ bash\nproxyconf set socks5 127.0.0.1 1080\nnc -vz dc01.corp.local 445\n~~~\n\nStop tunneling traffic over the proxy.\n\n~~~ bash\nproxyconf unset\n~~~\n\nTell subsequent tools to use a specific Kerberos TGT or ST by setting the `$KRB5CCNAME` environment variable.\n\n~~~ bash\nkrbconf set ./jdoeadm.ccache\nimpacket-smbclient -k -no-pass srv01.corp.local\n~~~\n\nIf you additionally specify the hostname or FQDN of a domain controller with `-K` / `--kdc`, a suitable `$KRB5_CONFIG` is configured in the environment as well (thanks [@mpgn](https://twitter.com/mpgn_x64/status/1881252755131760659) for the idea).\nThis is required for certain tools like [evil-winrm](https://github.com/Hackplayers/evil-winrm).\n\n~~~ bash\nkrbconf set ./jdoeadm.ccache -K dc01\nevil-winrm -r $KRB5CCNAME_DOMAIN -i srv01.corp.local\n~~~\n\nStop using the ticket.\n\n~~~ bash\nkrbconf unset\n~~~\n\nExecute a one-off command in the context of a given ticket.\n\n~~~ bash\nkrbconf exec ./jdoeadm.ccache impacket-smbclient -k -no-pass srv01.corp.local\n~~~\n\nImport a ticket in Kirbi format from Windows (e.g. from [Rubeus](https://github.com/GhostPack/Rubeus)).\n\n~~~ bash\nkrbconf import ./jdoe.kirbi\nkrbconf import base64:doIFrTCCBamgAwIB...\n~~~\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdadevel%2Fimpacket-zsh-integration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdadevel%2Fimpacket-zsh-integration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdadevel%2Fimpacket-zsh-integration/lists"}