diff --git a/abck b/abck index e72a541..6ede15f 100755 --- a/abck +++ b/abck @@ -34,11 +34,12 @@ ANS = ";; ANSWER SECTION:" AUTH = ";; AUTHORITY SECTION:" -DIG = "/usr/bin/dig -t ptr -x " +DIG = "dig -t ptr -x " LOG = "/var/log/messages" OUT = "./ABUSERS" +WHO = "whois " -VERSION = "$Id: abck,v 1.7 2001/07/18 02:45:26 tundra Exp $" +VERSION = "$Id: abck,v 1.8 2001/07/18 09:01:40 tundra Exp $" #################### # Data Structures @@ -180,13 +181,16 @@ sendto = "" DONE = TRUE + elif st.lower() == "l": # More depth in recipient name + if depth < len(hostname.split('.')): + depth += 1 + elif st.lower() == "r": # Less depth in recipient name if depth > 2: depth -= 1 - elif st.lower() == "l": # More depth in recipient name - if depth < len(hostname.split('.')): - depth += 1 + elif st.lower() == "w": # Run a whois on 'em + print commands.getoutput(WHO + hostquad) else: if st: # User keyed in their own recipient