Skip to content

Instantly share code, notes, and snippets.

@Sinkmanu
Created June 23, 2016 12:13
Show Gist options
  • Save Sinkmanu/a6376788b722f94f123532ce53610919 to your computer and use it in GitHub Desktop.
Save Sinkmanu/a6376788b722f94f123532ce53610919 to your computer and use it in GitHub Desktop.
Check if the HTTP TRACE method is enabled in a URL list.
#/usr/bin/bash
filename="$1"
while read -r line
do
output=`curl -s -I -X TRACE "$line" | head -n 1`
echo "$line : $output"
done < "$filename"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment