Windows Exfiltration over SMB and FTP
SMB and FTP are native Windows protocols with built-in client support on every Windows version. SMB is the fastest option when outbound port 445 is allowed — it supports direct file copy with no encoding overhead. FTP is a fallback for environments where SMB is blocked but legacy file transfer protocols are permitted.
SMB exfiltration
Serve an SMB share from your attack box and write files to it directly from the target. No additional tooling needed on the target side.
Impacket v0.11.0 - Copyright 2023 Fortra [*] Config file parsed [*] Callback added for UUID 4B324FC8-... [*] Server started, listening on 0.0.0.0:445
SMB transfers from newer Windows versions (Windows 10 1709 and later) require the server to support SMBv2 or later. The -smb2support flag in impacket handles this. If transfers fail with access denied errors, add authentication to the server and use net use with credentials on the target.
FTP exfiltration
Exfiltration via existing SMB shares
In internal network engagements, data does not always need to travel back to your attack box directly. Accessible shares on other internal hosts can serve as staging points for collection before final extraction.
Was this helpful?
Your feedback helps improve this page.