How to send bulk email to IP owners when i have IP list?
i have list of IPs where is probably hosted an malware
IP - path to malware on that machine
i want to ask how i can bulk email the IP owners in aim to notiffy them about infection?
I know i can create an Linux bash script to extract administrator email out of whois.. but i would like to ask anyone to share his idea or how to complete that script?
my script idea:
for ip in $(cat $ips);do
emails="$(echo "$whoisout" | grep @)"
then somehow extract email address and send email:
echo "Hello, an computer with Your IP $ip , is probably infected by malware. The malware path \"$path\".
Please kindly contact IP owner to remove this malware and install antivirus system." | mail -s "Malware on Your IP" $ipemail