diff options
author | tv <tv@also> | 2011-07-31 04:29:09 +0200 |
---|---|---|
committer | tv <tv@also> | 2011-07-31 04:29:09 +0200 |
commit | 195db4d652df14c0ec424f25c81622028500eb8d (patch) | |
tree | 5c943f9e8be4d7c75d99371aa527c69126d2655d | |
parent | 69ddc3316c08f1b06d8a1ba483ab455c377b02ff (diff) | |
parent | e62902e802d49f1c72f4dc0e0c106c046394324b (diff) |
Merge branch 'master' of github.com:krebscode/painload
-rwxr-xr-x | people/arping_users.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/people/arping_users.py b/people/arping_users.py index 008fe337..ec3557d4 100755 --- a/people/arping_users.py +++ b/people/arping_users.py @@ -7,10 +7,10 @@ DEV='eth0' MAC_NAMES='mac_names.lst' data = [] ret = {} -verb = False +quiet=False -if len(sys.argv) > 1 and sys.argv[1] == 'v': - verb = True +if len(sys.argv) > 1 and sys.argv[1] == 'q': + quiet=True def get_own_addr(): data = subprocess.Popen(['/sbin/ifconfig',DEV], stdout=subprocess.PIPE).communicate()[0].replace('\n','') @@ -46,7 +46,7 @@ except Exception as e: for p in ret: - if verb: + if not quiet: print p[0] + " => " + p[1] if p[1] in names: print names[p[1]]+ " is online" |