Created
June 13, 2014 16:29
-
-
Save erikvip/7a8972a4571ccb6639a2 to your computer and use it in GitHub Desktop.
Example xmlstarlet command for parsing nmap script results
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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