Added complete log display on each prompt.
1 parent 469e5e5 commit a7489ef13cadadf8a47b8f06acea83c78e82ff49
@tundra tundra authored on 16 Jul 2001
Showing 1 changed file
View
10
abck
DIG = "/usr/bin/dig -t ptr -x "
LOG = "/var/log/messages"
OUT = "./ABUSERS"
 
VERSION = "$Id: abck,v 1.5 2001/07/16 21:19:10 tundra Exp $"
VERSION = "$Id: abck,v 1.6 2001/07/16 22:50:39 tundra Exp $"
 
####################
# Data Structures
####################
 
 
####################
 
# Paw through a log record, doing any reverse rosolution needed,
# Paw through a log record, doing any reverse resolution needed,
# confirm with user, and return name of the host to notify about
# the instrusion attempt. A null return means the user want to
# skip this record.
 
# Set depth of default response
default = HostDepth(hostname, depth)
 
# Ask the user about it
st = raw_input("Who Gets Message for: <%s>? %s [%s] " %
(hostname[-40:],
st = raw_input("\nLog Record: %s\n Who Gets Message for: <%s>? %s [%s] " %
(logrecord,
hostname[-40:],
" " * (40 - len(hostname)),
default))
 
# Parse the response