I'm writing a script which requires me to get NT hashes. I know I can do this using impacket
's secretsdump.py
but how do I do it from within a python script? I know I can do it using subprocess.call()
but I need a way that works if I build an executable of the script (i.e. assuming that the system I'm running it on does not have python installed).
EDIT:
Tried out Carcigenicate's comment and I'm running into another issue now:
import impacket.examples.secretsdump
imports impacket/impacket/examples/secretsdump.py while I need to import impacket/examples/secretsdump.py. How do I do this?