Last active
November 16, 2021 14:54
-
-
Save remonsec/12437a8651a1af66fb8765f5c6557d28 to your computer and use it in GitHub Desktop.
simple bash script to check available HTTP methods
This file contains hidden or 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
#!/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