[ SEA-GHOST MINI SHELL]
#!/bin/bash
ADDRESS=$1
function ip2dec () {
local a b c d ip=$@
IFS=. read -r a b c d <<< "$ip"
printf '%d\n' "$((a * 256 ** 3 + b * 256 ** 2 + c * 256 + d))"
}
blackList=$(wget -q -O - https://postmaster.live.com/snds/ipStatus.aspx?key=2e8e8c7a-ac92-87ea-f8c8-2a48d18d6a76)
while read -r line; do
ipStart=$(ip2dec $(echo $line | awk -F "," '{print $1}'))
ipEnd=$(ip2dec $(echo $line | awk -F "," '{print $2}'))
comment=$(echo $line | awk -F "," '{print $4}' | sed "s/\r//")
ipDec=$(ip2dec $ADDRESS)
if [ $ipDec -ge $ipStart ] && [ $ipDec -le $ipEnd ]; then
echo "Listed in $comment"
fi
done <<< "$blackList"
SEA-GHOST - SHELL CODING BY SEA-GHOST