summaryrefslogtreecommitdiffstats
path: root/census
diff options
context:
space:
mode:
authortv <tv@also>2011-07-31 04:29:09 +0200
committertv <tv@also>2011-07-31 04:29:09 +0200
commit953096471304dbed2e4eb6b59067f622f2b833d1 (patch)
tree141b45d482ec6f942d7a31ef705f0b9385c71838 /census
parent12813cb708b3cf897e01b7c37ef06ba6becf7e1d (diff)
parent3634dc35b15ec409454773cf334889f07160eacb (diff)
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'census')
-rwxr-xr-xcensus/arping_users.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/census/arping_users.py b/census/arping_users.py
index 008fe337..ec3557d4 100755
--- a/census/arping_users.py
+++ b/census/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"