Displaying 1 result from an estimated 1 matches for "getoffend".
2006 Mar 05
0
Converted tattle.pl to ruby - anyone want to be a tester?
...ns.
I am looking for any volunteers that would like to test this and write the
install guide. I was going to then put it up on sourceforge for the wider
community under GPL.
Basic code looks like this:
puts "open logs"
helper = SecurityHelper.new
notif = Notifier.new
offenders = helper.getoffenders( logfile )
offenders.each { |key, offender|
puts offender.rhost + " (" + offender.abuse + ")"
Notifier::deliver_send_report(offender)
}
with
class SecurityHelper
def getoffenders( logfile )
@off = Hash.new
File.open(logfile).each { |line|
if( line =~...