summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arping.py2
-rwxr-xr-xsnmp_users.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/arping.py b/arping.py
index ee96c9aa..816a3f46 100644
--- a/arping.py
+++ b/arping.py
@@ -8,7 +8,7 @@ try:
raise Exception('no root permissions')
from scapy.all import * #might throws "no such module"
- def arpingy(iprange="10.42.1.0/24",iface='eth0'):
+ def arpingy(iprange="10.42.1.0/24",iface='wlan0'):
log.debug("pinging"+ iprange)
"""Arping function takes IP Address or Network, returns nested mac/ip list"""
try:
diff --git a/snmp_users.py b/snmp_users.py
index 8e2fb05d..cb31dab6 100755
--- a/snmp_users.py
+++ b/snmp_users.py
@@ -77,8 +77,8 @@ class snmp_users:
return self.mac_list
def print_results(self):
log.debug('printing results:')
- print '\n'.join([ mac + " => " + ip['ip'] + " ( %d active leases )" %
- ip['counter'] for mac,ip in self.mac_list.items() ])
+ print '\n'.join([ mac + " => %s" %
+ str(ips) for mac,ips in self.mac_list.items() ])
print '%d *unique* nodes in network' % len(self.mac_list)