Created
November 13, 2013 08:54
-
-
Save thomaspatzke/7445851 to your computer and use it in GitHub Desktop.
Create HTML with links to all HTTP servers from nmap scan results.
This file contains hidden or 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 -t -m '//port/service[@name="http"]' -v 'concat(ancestor::host/address/@addr, ":", ../@portid, " <a href=http://", ancestor::host/address/@addr, ":", ../@portid, ">HTTP</a> <a href=https://", ancestor::host/address/@addr, ":", ../@portid, ">HTTPS</a><br />")' -n file.xml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment