Skip to content

Instantly share code, notes, and snippets.

@remonsec
Last active November 16, 2021 14:54
Show Gist options
  • Save remonsec/12437a8651a1af66fb8765f5c6557d28 to your computer and use it in GitHub Desktop.
Save remonsec/12437a8651a1af66fb8765f5c6557d28 to your computer and use it in GitHub Desktop.
simple bash script to check available HTTP methods
#!/bin/bash
file=$1
for target in $(cat $file):
do http OPTIONS $target -h --verify=no | grep "Allow:" && echo $target$'\n'
done
###
# =======================
# usage: bash method.sh httpx.txt
#
# note: make sure that you have installed httpie
# sudo apt install httpie
# =======================
###
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment