# [Impacket](https://github.com/SecureAuthCorp/impacket.git)
![[Tactics Write-Up#^9u8es4]]
Impacket is already installed on Kali. You can run scripts using `impacket-SCRIPT-NAME`. Scripts are located in `/usr/share/doc/python3-impacket/examples/`.
## `smbserver`
Simple [[SMB]] server. Sample args:
```sh
impacket-smbserver SHARE /home/kali/share
```
![[File Transfers - Windows File Transfer Methods#^umhyb3]]
![[File Transfers - Windows File Transfer Methods#^1kz5cb]]
## `psexec`
![[Tactics Write-Up#^xvb2ro]]
psexec uses [[SMB]] with access to `ADMIN
share to get a reverse shell.
```sh
impacket-psexec <user account>@<ip address>
```
## `mssqlclient`
`mssqlclient.py` is a [[Microsoft SQL Server]] client.
`-windows-auth` can be used to configure the script to use Windows authentication:
```sh
impacket-mssqlclient -windows-auth <workgroup>/<user name>@<IP address>
```
`help` will display the help page.
`enable_xp_cmdshell` will enable `xp_cmdshell` allowing arbitrary command execution.
## Hack The Box Machines
- [[Tactics Write-Up|Tactics]]
- [[Archetype Write-up|Archetype]]