source: src/router/aircrack-ng/scan @ 31642

Last change on this file since 31642 was 31642, checked in by brainslayer, 5 months ago

update helper script for newer mac80211 based devices

  • Property svn:executable set to *
File size: 627 bytes
Line 
1#!/bin/sh
2if test x$1 = x
3then
4        echo "Usage $0 interace [--band=abg] [--channel=xxxx]"
5        echo "channel = frequency"
6        echo "Band can be a / b / g / ab / ag / bg / abg"
7        echo
8        exit
9fi
10trap "/usr/sbin/scantidy ${1}"  1 2 3 6
11mode=`nvram get ath${1}_net_mode`
12
13
14if test -e "/proc/sys/dev/wifi${1}/mimo"; then
15        /usr/sbin/80211n_wlanconfig mon${1} create wlandev wifi${1} wlanmode monitor
16else
17        /usr/sbin/wlanconfig mon${1} create wlandev wifi${1} wlanmode monitor
18        iw phy phy$(expr ${1} - `cat /proc/net/dev|grep wifi|wc -l`) interface add mon${1} type monitor
19fi
20/usr/sbin/airodump-ng mon${1} ${2} ${3}
Note: See TracBrowser for help on using the repository browser.