
WPSレジストラPINに対するブルートフォース攻撃ツールで、オンラインブルートフォースと脆弱なアクセスポイントに対するオフラインのPixie Dust攻撃をサポートし、WPA/WPA2パスフレーズを復元します。
Reaverは、Wifi Protected Setup (WPS) レジストラのPINに対するブルートフォース攻撃を実装し、WPA/WPA2パスフレーズを回復します。これは、Stefan ViehböckによるBrute forcing Wi-Fi Protected Setup When poor design meets poor implementation.で説明されています。
Reaverは、WPA/WPA2パスフレーズを回復するために、Wi-Fi Protected Setup (WPS) レジストラPINに対する堅牢で実用的な攻撃として設計されており、多種多様なアクセスポイントとWPS実装に対してテストされています。
ターゲットのアクセスポイント (AP) に依存しますが、平文のWPA/WPA2パスフレーズを回復するための移行的なオンラインブルートフォース方式の平均時間は4~10時間です。実際には、正しいWPSピンを推測してパスフレーズを回復するのにかかる時間は、通常その半分程度です。
オフライン攻撃を使用する場合、もしAPが脆弱であれば、数秒から数分で済む場合があります。
reaver-wps (reaver 1.0) の最初のバージョンは、2011年にCraig Heffnerによって作成されました。
reaver-wps-fork-t6x バージョン 1.6.x は、さまざまなバグ修正、新機能、および追加の攻撃方法(オフラインPixie Dust攻撃など)を含むコミュニティフォークバージョンです。
カーネルがwext拡張をサポートしていない場合(残念ながらほとんどの最新ディストリビューションではその傾向があります)、ワイヤレスチャンネルを切り替えるためのコードは機能しません。その場合は、reaver/washを実行する前に手動でチャンネルを切り替える(チャンネルオプションを使用しない)か、以下の2つのlibnl実装のいずれかに対してビルドすることができます。
その後、./configure --enable-libnl3 または --enable-libnl-tiny を使用します。
sudo apt -y install build-essential libpcap-dev aircrack-ng pixiewps
この例では、オペレーティングシステム (OS) としてKali Linuxを使用しています。pixiewpsが含まれているからです。
Pixie Dust攻撃を実行するには、WiireのPixiewpsがすでにインストールされている必要があります。最新版は公式GitHubリポジトリにあります。
ダウンロード
git clone https://github.com/t6x/reaver-wps-fork-t6x
または
wget https://github.com/t6x/reaver-wps-fork-t6x/archive/master.zip && unzip master.zip
シェルに移動
cd reaver-wps-fork-t6x*
cd src
コンパイル
./configure
make
インストール
sudo make install
Copyright (c) 2011, Tactical Network Solutions, Craig Heffner <[email protected]>
Required Arguments:
-i, --interface=<wlan> Name of the monitor-mode interface to use
-b, --bssid=<mac> BSSID of the target AP
Optional Arguments:
-m, --mac=<mac> MAC of the host system
-e, --essid=<ssid> ESSID of the target AP
-c, --channel=<channel> Set the 802.11 channel for the interface (implies -f)
-s, --session=<file> Restore a previous session file
-C, --exec=<command> Execute the supplied command upon successful pin recovery
-f, --fixed Disable channel hopping
-5, --5ghz Use 5GHz 802.11 channels
-v, --verbose Display non-critical warnings (-vv or -vvv for more)
-q, --quiet Only display critical messages
-h, --help Show help
Advanced Options:
-p, --pin=<wps pin> Use the specified pin (may be arbitrary string or 4/8 digit WPS pin)
-d, --delay=<seconds> Set the delay between pin attempts [1]
-l, --lock-delay=<seconds> Set the time to wait if the AP locks WPS pin attempts [60]
-g, --max-attempts=<num> Quit after num pin attempts
-x, --fail-wait=<seconds> Set the time to sleep after 10 unexpected failures [0]
-r, --recurring-delay=<x:y> Sleep for y seconds every x pin attempts
-t, --timeout=<seconds> Set the receive timeout period [10]
-T, --m57-timeout=<seconds> Set the M5/M7 timeout period [0.40]
-A, --no-associate Do not associate with the AP (association must be done by another application)
-N, --no-nacks Do not send NACK messages when out of order packets are received
-S, --dh-small Use small DH keys to improve crack speed
-L, --ignore-locks Ignore locked state reported by the target AP
-E, --eap-terminate Terminate each WPS session with an EAP FAIL packet
-J, --timeout-is-nack Treat timeout as NACK (DIR-300/320)
-F, --ignore-fcs Ignore frame checksum errors
-w, --win7 Mimic a Windows 7 registrar [False]
-K, --pixie-dust Run pixiedust attack
-Z Run pixiedust attack
-O, --output-file=<filename> Write packets of interest into pcap file
-M, --mac-changer Change the last digit of the MAC Address for each pin attempt [False]
Example:
reaver -i wlan0mon -b 00:90:4C:C1:AC:21 -vv
オプションの説明と使用例は、Craig HeffnerのReadmeにあります。以下は、その後導入された新しいオプションの説明です。
-Kおよび-Zオプションは、PKE、PKR、E-Hash1、E-Hash2、E-Nonce、Authkey変数を自動的に渡すことで、オフライン攻撃であるPixie Dust (pixiewps) を実行します。pixiewpsは、検出されたRalink、Broadcom、Realtekのチップセットを攻撃しようとします。
特別な注意: Realtek APを攻撃する場合、小さなDH鍵 (-S) オプションを使用しないでください。
ユーザーは、WPAパスフレーズを取得するために、クラックしたPIN(オプション-p)を指定してreaverを実行する必要があります。
これは一時的な解決策であり、完全な攻撃を行うオプションは近日中に実装される予定です。
ウィキを参照してください: WPSをクラックする新しい方法: オプション-pと任意の文字列
Copyright (c) 2011, Tactical Network Solutions, Craig Heffner
Required Arguments:
-i, --interface=<iface> Interface to capture packets on
-f, --file [FILE1 FILE2 FILE3 ...] Read packets from capture files
Optional Arguments:
-c, --channel=<num> Channel to listen on [auto]
-n, --probes=<num> Maximum number of probes to send to each AP in scan mode [15]
-O, --output-file=<filename> Write packets of interest into pcap file
-F, --ignore-fcs Ignore frame checksum errors
-2, --2ghz Use 2.4GHz 802.11 channels
-5, --5ghz Use 5GHz 802.11 channels
-s, --scan Use scan mode
-u, --survey Use survey mode [default]
-a, --all Show all APs, even those without WPS
-j, --json print extended WPS info as json
-U, --utf8 Show UTF8 ESSID (does not sanitize ESSID, dangerous)
-p, --progress Show percentage of crack progress
-h, --help Show help
Example:
wash -i wlan0mon
具体的な構文例を含むオプションの詳細な説明は、Craig Heffnerのwash readmeにあります。
新しいオプションと機能について:
Washのオプション-aは、WPSが有効になっていないものを含むすべてのアクセスポイントをリストします。
APのプローブ応答からの拡張WPS情報(シリアル、モデルなど)がターミナルに(json形式で)表示されます。
Washは、アクセスポイントからWiFiチップセットのメーカーを表示するようになりました。これにより、Pixie Dust攻撃に対して脆弱かどうかを判断できます。
washの出力は他のコマンドにパイプできることに注意してください。詳細については、Wiki記事Everything about the new options from washを参照してください。
reaver-wps-fork-t6x "コミュニティエディション"の作成者:
t6x
バージョン1.6b以降のメイン開発者:
rofl0r
修正を行った方々:
t6_x, DataHead, Soxrok2212, Wiire, AAnarchYY, kib0rg, KokoSoft, rofl0r, horrorho, binarymaster, Ǹotaz, Adde88, feitoi
アイデアを提供した方々:
nuroo, kcdtv
バグ修正を行った方々:
alxchk, USUARIONUEVO, ldm314, vk496, falsovsky, rofl0r, xhebox
Soxrok2212WiireCraig Heffner - http://www.devttys0.com/Dominique Bongard