Skip to content

Instantly share code, notes, and snippets.

@erikvip
Created June 13, 2014 16:29
Show Gist options
  • Save erikvip/7a8972a4571ccb6639a2 to your computer and use it in GitHub Desktop.
Save erikvip/7a8972a4571ccb6639a2 to your computer and use it in GitHub Desktop.
Example xmlstarlet command for parsing nmap script results
xmlstarlet sel -t -m '//host/ports/port/script[@id="ssl-heartbleed"]' -m 'ancestor::port/ancestor::ports/ancestor::host/address' -v '@addr' -m 'ancestor::host/ports/port/service' -v ' @*' -n -n output-example-positive.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment