Guest User

Untitled

a guest
Jun 17th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. #! /bin/ash
  2. ifaces="wlan0 wlan1"
  3.  
  4. for iface in $ifaces
  5. do
  6. echo $iface
  7. stations=`iw dev $iface station dump | grep Station | awk '{print $2}'`
  8.  
  9. for sta in $stations
  10. do
  11. echo "------------------------------------------------------"
  12. iw dev $iface station get $sta
  13. echo -e "t ---"
  14. grep $sta /proc/net/arp | awk '{print "t IP: "$1" (from ARP table)"}'
  15. grep -i $sta /var/dhcp.leases | awk '{print "t IP: "$3" (from DHCP Lease)nt NAME: "$4" (from DHCP Lease)"}'
  16. done
  17. echo "------------------------------------------------------"
  18. done
  19.  
  20. #!/bin/bash
  21. iface="wlan0"
  22. while true
  23. do
  24. clear
  25. iw dev $iface station dump | grep 'signal:|beacon signal'
  26. let "x++"
  27. echo Read Count: $x
  28. sleep 1
  29. done
Add Comment
Please, Sign In to add comment