Need a perl script that when activated will search the assp log folder
and find the most recent file.
to scan that file and find all IPs that generate a line such as this
Jun-17-15 01:45:56 [Worker_1] [url removed, login to view] [SMTP Error] 504 Invalid Username or Password
I want the script to find the IP in the line and add it to the windows firewall --> inbound rules --> IP Block list --> Scope Tab of remote IP addresses
this way I can automate the blocking of IPs that try to gain access and fail.
Let me know any questions, or if this can be done in some other way.