summaryrefslogtreecommitdiffstats
path: root/people/arping_users.py
diff options
context:
space:
mode:
authormakefu <makefu@syntax-fehler.de>2011-06-30 23:33:03 +0200
committermakefu <makefu@syntax-fehler.de>2011-06-30 23:33:03 +0200
commit21cf2eae73ea4ae2a63df512767480584073d232 (patch)
tree2adc7b1e9f7c067b43ecef7bb7bb00985136eb86 /people/arping_users.py
parent8efab77bc711f12db0ea8fabed469680acaac472 (diff)
parent27636a7d483a2030ba9fae77e9fbe5d03763009b (diff)
Merge branch 'master' of github.com:krebscode/painload
Conflicts: mining/Makefile: now installs tmux and configures
Diffstat (limited to 'people/arping_users.py')
-rwxr-xr-xpeople/arping_users.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/people/arping_users.py b/people/arping_users.py
index c576e4f3..008fe337 100755
--- a/people/arping_users.py
+++ b/people/arping_users.py
@@ -21,7 +21,7 @@ def load_names(MAC_NAMES):
names = {}
f = open(MAC_NAMES)
for l in f:
- mac,name = l.split()
+ mac,name = l.split(' ',1)
names[mac] = name.replace('\n','')
f.close()
return names
@@ -29,7 +29,7 @@ def load_names(MAC_NAMES):
def arping_helper(dic):
return arpingy(**dic)
-for first in range(4):
+for first in range(1,3):
for second in range(255):
data.append({'iprange':'10.42.'+str(first)+'.'+str(second),'iface':DEV})
@@ -50,5 +50,3 @@ for p in ret:
print p[0] + " => " + p[1]
if p[1] in names:
print names[p[1]]+ " is online"
-
-