Created
June 23, 2016 12:13
-
-
Save Sinkmanu/a6376788b722f94f123532ce53610919 to your computer and use it in GitHub Desktop.
Check if the HTTP TRACE method is enabled in a URL list.
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
#/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