So I am new to python. I need to use the dig command on my windows machine with this command:
dig +short TXT e462dbee005c11294a39ed8d2e466516.malware.hash.cymru.com
I am having trouble passing this command into the subprocess check output. I think it may have to do with the way I am placing the arguments into the check output? The command needs to be like this for the output that I would get so changing the command wont be a fix.
Also, since I am on windows I had to acquire dig from the BIND suite and add it to my path, would this also affect how the python script runs the command?
import subprocess
output = subprocess.check_output(['dig', '+short', 'TXT', 'e462dbee005c11294a39ed8d2e466516.malware.hash.cymru.com'])
print(output)