Credits to https://github.com/SecureAuthCorp/impacket and https://github.com/skelsec/pypykatz
Be sure to have the latest versions installed:
https://github.com/SecureAuthCorp/impacket/
https://github.com/skelsec/pypykatz
Edit path to impacket WMIEXEC and SMBCLIENT in script
wmiexec = "/PATH/TO/wmiexec.py"
smbclient = "/PATH/TO/smbclient.py"
Usage:
python mimicom.py -u USERNAME -p PASSWORD -d DOMAIN -t TARGET-IP
python mimicom.py -u USERNAME -p LM:NTLM -d DOMAIN -t TARGET-IP