I'm trying to use python to list ciphers supported by a server i.e google.com. I stumbled upon this and I'm particularly interested with the second answer regarding nmap
. The only problem is that I can only figure out how to run nmap in the command line (because the answer tells you exactly how to do it). Is there a way I can get this to run in python code and have that same output return in a json format or anything else simple enough to parse?
I've looked into python-nmap but I don't see an option for doing what I'm trying to do.
Thanks in advance for the help!