Skip to content

Instantly share code, notes, and snippets.

@thomaspatzke
Last active August 29, 2015 14:11
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/e342f2e04aa269ff171a to your computer and use it in GitHub Desktop.
Save thomaspatzke/e342f2e04aa269ff171a to your computer and use it in GitHub Desktop.
Extract particular HTTP request parameter value (POST) from Burp XML save file without Base64 request/response encoding. Here I extract the NavigationTarget parameter of a SAP Portal application.
xmlstarlet sel -t -m '//items/item[contains(./request,"NavigationTarget")]' -v 'substring-before(substring-after(./request, "NavigationTarget="), "&")' -n Crawl-*.xml | perl -mURI::Escape -ne 'print URI::Escape::uri_unescape($_);' | sort -u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment