> For the complete documentation index, see [llms.txt](https://www.netexec.wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.netexec.wiki/smb-protocol/generate-tgt.md).

# Generate TGT

> netexec smb ip -u user -p password --generate-tgt /path
>
> export KRB5CCNAME=/path
>
> netexec smb ip -u user -k --use-kcache

<figure><img src="https://361548579-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fb0qbsNvsXjRTsQcNipGM%2Fuploads%2Fgit-blob-fe47fbc15ec9b45d5245f691e0399978c4d6fbad%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>
