fortra / impacket

Impacket is a collection of Python classes for working with network protocols.
https://www.coresecurity.com
Other
13k stars 3.5k forks source link

[DCOM] Fix kerberos with remoteHost & add '-target-ip' for wmiexec.py #1710

Closed XiaoliChan closed 4 months ago

XiaoliChan commented 4 months ago

Fix some logic error in dcomrt.py, now wmiexec.py can work with -target-ip & -k even without add hosts attribute into /etc/hosts or DNS resolution

Before: (use -silentcommand to avoid create smb connection) image

After: image

Semi-interactive: image

anadrianmanrique commented 4 months ago

I've just tested and reviewed these changes. It's working as expected. Thanks!