Python Forum
Use nmap inside my python code to get supported cipher suites
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Use nmap inside my python code to get supported cipher suites
#5
(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.com
By 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!
Reply


Messages In This Thread
RE: Use nmap inside my python code to get supported cipher suites - by jimmeh - May-30-2019, 01:07 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Cesar Cipher ForsakenDusk 5 630 Apr-07-2024, 04:30 PM
Last Post: Pedroski55
Question Rsa Cipher Paragoon2 3 745 Nov-27-2023, 12:30 PM
Last Post: snippsat
  RSA Cipher with blocks Paragoon2 0 570 Nov-26-2023, 04:35 PM
Last Post: Paragoon2
  Getting "SSL client not supported by this Python installation" error prabirsarkar 0 1,019 Mar-13-2023, 05:01 PM
Last Post: prabirsarkar
  Caesar Cipher Help pbrowne 2 2,255 Jun-30-2021, 02:36 PM
Last Post: deanhystad
  Learning Python with a Caesar cipher Drone4four 5 5,043 Nov-21-2020, 07:21 PM
Last Post: bowlofred
  The code to decrypt Caeser Cipher. lazerwolf101 2 3,237 May-26-2020, 04:01 PM
Last Post: DT2000
  Receiving XML exception from nmap.scan() results. PythonNmap 4 4,231 Jan-21-2020, 04:41 AM
Last Post: PythonNmap
  Trying to use python-nmap but receiving however python2 or 3 can't find PortScanner. PythonNmap 21 11,331 Jan-19-2020, 07:54 PM
Last Post: PythonNmap
  Can someone please help me convert this simple C ROT cipher code to Python code? boohoo9 5 3,564 Jun-14-2019, 03:02 PM
Last Post: DeaD_EyE

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020