Testing Environment

Config Api-keys and Tokens

Github Access tokens: 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
DOM-fear.sh
#!/bin/bash

figlet -f slant  -c "Start Hacking" | lolcat && figlet -f digital  -c "Hack to Learn" | lolcat && figlet -f mini -c "DOM Fear" | lolcat

# Path to the file containing URLs
url_file="js.txt"

# Check if the file exists
if [ ! -f "$url_file" ]; then
  echo "File $url_file not found!"
  exit 1
fi

# Customize grep highlight color (e.g., green)
export GREP_COLORS='mt=01;32'

# Read each URL from the file
while IFS= read -r url; do
  echo "Scanning $url..."
  
  # Run the curl command and grep for sensitive keywords with highlighting
  curl -s -X GET "$url" | grep -i --color=always -E 'location.href|location.search|window.location|window.hash|window.location.href|location.search|location.pathname|document.URL|getparam|getUelParameter|getParameter()|parameter|innerHTML|outerHTML|document.write|document.writeln|var ='
  
  echo "----------------------------------------"
done < "$url_file"

Last updated