Skip to content

Instantly share code, notes, and snippets.

@thomaspatzke
Created November 13, 2013 08:54
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 thomaspatzke/7445851 to your computer and use it in GitHub Desktop.
Save thomaspatzke/7445851 to your computer and use it in GitHub Desktop.
Create HTML with links to all HTTP servers from nmap scan results.
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