diff options
author | Felix Richter <Felix.Richter@syntax-fehler.de> | 2011-01-23 00:47:21 +0100 |
---|---|---|
committer | Felix Richter <Felix.Richter@syntax-fehler.de> | 2011-01-23 00:47:21 +0100 |
commit | e7b3ba6b4439b4ae046b7be54a2d0bd904642745 (patch) | |
tree | 177d25624764090420b75c92ce33693a2d3bccca | |
parent | 5a55c1b82a26244fb8a2584fa35887d9637bd2e2 (diff) |
fixed output
-rw-r--r-- | arping.py | 2 | ||||
-rwxr-xr-x | snmp_users.py | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -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) |