# Lateral Movement

> Spray creds, dump SAM, and pivot via SMB using nxc and impacket

- **URL:** https://hackindex.io/services/smb/lateral-movement
- **Service:** [SMB](https://hackindex.io/services/smb.md)
- **Tags:** pivoting, movement, network
- **Published:** 2026-05-06
- **Updated:** 2026-05-06

SMB lateral movement uses authenticated SMB access to execute commands and move between hosts. PsExec (Impacket's psexec.py or Sysinternals) uploads a service binary to the ADMIN$ share and creates a Windows service for execution, giving you a SYSTEM shell. smbexec.py takes a similar approach but uses command-based service creation without uploading a binary, leaving a smaller footprint.

Pass-the-hash over SMB with Impacket tools, NetExec, or xfreerdp authenticates using NTLM hashes directly, skipping the need for plaintext passwords. Every hash dumped from SAM, lsass, or NTDS.dit becomes potential access to any host where that credential is valid. NetExec's --local-auth flag tests local administrator hashes across an entire subnet efficiently.

Credential reuse is the most common path: local administrator passwords shared across hosts, service accounts with admin rights on multiple servers, and domain admin credentials found on member servers. wmiexec.py and atexec.py provide alternative execution methods over SMB-authenticated DCOM and Task Scheduler when PsExec is blocked or detected.

## Guides

- [SMB Lateral Movement](https://hackindex.io/services/smb/lateral-movement/smb-lateral-movement.md): Covers SMB-based lateral movement techniques including pass-the-hash, PsExec, and admin share abuse to pivot across Windows environments.
