Skip to content

Instantly share code, notes, and snippets.

@M507
Created November 21, 2023 15:34
Show Gist options
  • Save M507/aa00d200ee485f461813ce11cf6f580b to your computer and use it in GitHub Desktop.
Save M507/aa00d200ee485f461813ce11cf6f580b to your computer and use it in GitHub Desktop.
4.1.Information.Gathering.sh
#!/bin/bash
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <domain>"
exit 1
fi
domain="$1"
url_encode() {
echo -n "$1" | xxd -plain | tr -d '\n' | sed 's/\(..\)/%\1/g'
}
while IFS= read -r line; do
encoded_domain=$(url_encode "$domain")
url="${line//REPLACEME/$encoded_domain}"
google-chrome "$url"
# https://gist.github.com/M507/79b35ffd1b135a15393d7dd625622b09
done < queries.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment