Fli
04-03-2015, 12:12 PM
Hello,
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:
ips="filewithips"
for ip in $(cat $ips);do
whoisout="$(whois $ip)"
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
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:
ips="filewithips"
for ip in $(cat $ips);do
whoisout="$(whois $ip)"
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