May-30-2019, 01:07 PM
(May-30-2019, 12:19 PM)jimmeh Wrote:(May-30-2019, 05:11 AM)Gribouillis Wrote:
- Use the subprocess module to run a command such as nmap from python.
- nmap has a -oX option to output XML data which can be parsed easily in python.
Hmmm...The XML option doesn't seem to work well when I run this command for getting google's supported cipher suites:
nmap --script ssl-enum-ciphers -oX nmap_output.xml -p 443 www.google.comBy not work well, I mean that although it outputs an XML file, there is no XML in the file, just the output string. Can you give it a shot and let me know if its the same for you?
Nvm, if I save the XML into a text file it seems to work. Thanks!