#!/bin/bash
w=wlan0
m=wlan0mon
d=$(command -v iwconfig iw dev airmon-ng airodump-ng 2>/dev/null|head -1)
[[ $EUID -ne 0 ]]&&exit 1
[[ -d /sys/class/net/$w ]]||exit 1
[[ $d ]]||exit 1
i=$(iwconfig $w 2>&1|grep -o "Mode:[^ ]*"|cut -d: -f2)
[[ $i == "Monitor" ]]&&m=$w||{ airmon-ng check kill 2>/dev/null; airmon-ng start $w >/dev/null 2>&1; }
iwconfig $m|grep -q Monitor||exit 1
timeout 10 airodump-ng $m --write scanlog --output-format csv >/dev/null 2>&1 | Name | Type | Size |
|---|---|---|
| README.md | file | 811 |
| auto-art.png | file | 1,725,052 |
| back-data-url.txt | file | 188,346 |
| back.png | file | 141,243 |
| front-data-url.txt | file | 220,874 |
| front-thumb.png | file | 103,314 |
| front.png | file | 165,638 |
| qr-payload.txt | file | 431 |
| raw.sh | file | 454 |