Skip to content

Instantly share code, notes, and snippets.

@nyrahul
Created June 23, 2023 13:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nyrahul/b2020ebc00361f744b22e64060bf8fbd to your computer and use it in GitHub Desktop.
Save nyrahul/b2020ebc00361f744b22e64060bf8fbd to your computer and use it in GitHub Desktop.
Get nmap report for TLS/SSL and convert it to json
nmap -Pn -sT -p 3000 localhost --script ssl-cert --script ssl-enum-ciphers --script ssl-cert -oX t.xml
yq . t.xml -o json --xml-attribute-prefix '' > t.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment