#!/bin/bash
sj=`date '+%Y-%m-%d %H:%M:%S'`
for yuming in  `cat yuming.txt |grep -v "#"`
 do
Ip=`nslookup $yuming |grep -v grep  |grep Address |awk '{print $2}'|sed -n "2,10p"`
IPPP=($Ip)
IIp="120.79.13.154"
if [ "$Ip" == "$IIP"  ]
  then
     echo ""
  else
   for i in ${IPPP[@]}
   do
   curl -X POST "https://api.telegram.org/bot1873522760:AAFgDSnxk87wWOJ73w27TpBPG22_iS3ax7E/sendMessage?chat_id=-651431334&text= 当前时间: $sj %0A 当前解析的域名: $yuming %0A 需要攻击的IP: $i"
   #curl -X POST "https://api.telegram.org/bot1505451550:AAGveeFQrnGyHPhG4LV7W-ev4uk_BKx0dLQ/sendMessage?chat_id=-573668728&text= 当前时间: $sj %0A 当前解析的域名: $yuming %0A 需要攻击的IP: $i"
   done
fi
done

