ToolsFebruary 9, 20261 min readby 0xt0pus

impacket-smbserver

Sets up a quick SMB server for file transfers during penetration testing


Impacket-smbserver

Description

Impacket-smbserver is used to create an SMB server on the attacker's machine. It is commonly used for file transfers to/from Windows targets and to capture NTLM hashes from Windows machines.

Usage 1: Create SMB Server for File Transfer or Hash Capture

Start an SMB server in the current directory with SMB2 support.

Command:

impacket-smbserver smbFolder $(pwd) -smb2support