Update 'README.md'
This commit is contained in:
parent
c5b873a95f
commit
10facc4fdb
49
README.md
49
README.md
|
@ -18,4 +18,53 @@ iptables -t nat -F
|
|||
iptables -t nat -A PREROUTING -i $_inc_if -p udp --dport 53 -j REDIRECT --to-ports 5353
|
||||
iptables -t nat -A PREROUTING -i $_inc_if -p udp --dport 5353 -j REDIRECT --to-ports 5353
|
||||
iptables -t nat -A PREROUTING -i $_inc_if -p tcp --syn -j REDIRECT --to-ports $_trans_port
|
||||
```
|
||||
|
||||
ap_arp_status.sh
|
||||
```
|
||||
#!/bin/bash
|
||||
|
||||
ap_interface="eth1"
|
||||
|
||||
arp -i $ap_interface | grep -o ..:..:..:..:..:.. > /tmp/$0.activemacs.txt
|
||||
|
||||
clear
|
||||
|
||||
echo -e "\033[1mConnected Clients:\033[0m"
|
||||
while read mac; do
|
||||
grep "$mac" /var/lib/misc/dnsmasq.leases | cut -d' ' -f2,3,4
|
||||
done < /tmp/$0.activemacs.txt
|
||||
|
||||
echo -e "\n\n\033[1mAll clients which have connected within the last 24h:\033[0m"
|
||||
cut /var/lib/misc/dnsmasq.leases -d' ' -f2,3,4 | column -t -s ' '
|
||||
|
||||
|
||||
rm /tmp/$0.activemacs.TOR_Transparent_Proxy
|
||||
```
|
||||
|
||||
ios_client_associations.sh
|
||||
```
|
||||
#!/bin/bash
|
||||
|
||||
main () {
|
||||
sleep 0.3s
|
||||
echo Cisco
|
||||
sleep 0.3s
|
||||
echo password
|
||||
sleep 0.1s
|
||||
echo enable
|
||||
sleep 0.1s
|
||||
echo Cisco
|
||||
sleep 0.1
|
||||
echo "show dot11 associations client"
|
||||
sleep 1m
|
||||
echo exit
|
||||
}
|
||||
|
||||
|
||||
while true; do
|
||||
clear
|
||||
main | telnet 192.168.1.2 | grep 'MAC Address' -A 30
|
||||
sleep 1
|
||||
done
|
||||
```
|
Loading…
Reference in New Issue