-
Help stop abuse, bulk email IP owners bash script
Hello,
i have list of IPs and path to place where is hosted an badware application on that IP.
Can you please help me to complete bash script that will email IP owners and send them path to that badware?
so far i have this:
ips="filewithips"
pathes="filewithpathes"
for ip in $(cat $ips);do
for path in $(cat $pathes);do
#
done
whoisout="$(whois $ip)"
emails="$(echo "$whoisout" | grep @)"
then somehow extract proper email address (maybe abuse one?) 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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|