Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/ash
- ifaces="wlan0 wlan1"
- for iface in $ifaces
- do
- echo $iface
- stations=`iw dev $iface station dump | grep Station | awk '{print $2}'`
- for sta in $stations
- do
- echo "------------------------------------------------------"
- iw dev $iface station get $sta
- echo -e "t ---"
- grep $sta /proc/net/arp | awk '{print "t IP: "$1" (from ARP table)"}'
- grep -i $sta /var/dhcp.leases | awk '{print "t IP: "$3" (from DHCP Lease)nt NAME: "$4" (from DHCP Lease)"}'
- done
- echo "------------------------------------------------------"
- done
- #!/bin/bash
- iface="wlan0"
- while true
- do
- clear
- iw dev $iface station dump | grep 'signal:|beacon signal'
- let "x++"
- echo Read Count: $x
- sleep 1
- done
Add Comment
Please, Sign In to add comment