| |
---|
| | 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 |
---|
| |
---|
| | |