
ワイヤレスペネトレーションテストのためのフレームワーク。
SniffAirは、受動的に収集した無線データを簡単に解析できるだけでなく、高度な無線攻撃を仕掛けることができるオープンソースの無線セキュリティフレームワークです。SniffAirは、大規模または複数のpcapファイルの管理に関連する手間を省き、トラフィックを徹底的に相互検証・分析して潜在的なセキュリティ上の欠陥を探します。組み込みのクエリに加えて、ユーザーはバックエンドのSQLデータベースに保存された無線データを解析するためのカスタムクエリを作成できます。SniffAirは、これらのクエリを使用して無線侵入テストレポート用のデータを抽出するというコンセプトに基づいて構築されています。このデータは、SniffAirにモジュールとして含まれる高度な無線攻撃のセットアップにも活用できます。
SniffAirは @Tyl0us と @theDarracott によって開発されました。
SniffAirはPythonバージョン2.7で開発されました。
Kali Linux、Debian、Ubuntuでテストおよびサポートされています。
インストールするには、setup.shスクリプトを実行してください
$./setup.sh
% * ., %
% ( ,# (..# %
/@@@@@&, *@@% &@, @@# /@@@@@@@@@ .@@@@@@@@@. ,/ # # (%%%* % (.(. .@@ &@@@@@@%.
.@@& *&@ %@@@@. &@, @@% %@@,,,,,,, ,@@,,,,,,, .( % % %%# # % # ,@@ @@(,,,#@@@.
%@% %@@(@@. &@, @@% %@@ ,@@ /* # /*, %.,, ,@@ @@* #@@
,@@& %@@ ,@@* &@, @@% %@@ ,@@ .# //#(, (, ,@@ @@* &@%
.@@@@@. %@@ .@@( &@, @@% %@@%%%%%%* ,@@%%%%%%# (# ##. ,@@ @@&%%%@@@%
*@@@@ %@@ .@@/ &@, @@% %@@,,,,,, ,@@,,,,,,. %#####% ,@@ @@(,,%@@%
@@% %@@ @@( &@, @@% %@@ ,@@ % (*/ # ,@@ @@* @@@
%@% %@@ @@&&@, @@% %@@ ,@@ % # .# .# ,@@ @@* @@%
.@@&/,,#@@@ %@@ &@@@, @@% %@@ ,@@ /(* /(# ,@@ @@* @@#
*%@@@&* *%# ,%# #%/ *%# %% #############. .%# #%. .%%
(@Tyl0us & @theDarracott)
>> [default]# help
Commands
========
workspace Manages workspaces (create, list, load, delete)
live_capture Initiates a valid wireless interface to collect wireless packets to be parsed (requires the interface name)
offline_capture Begins parsing wireless packets using a pcap file-kismet .pcapdump work best (requires the full path)
offline_capture_list Begins parsing wireless packets using a list of pcap file-kismet .pcapdump work best (requires the full path)
query Executes a query on the contents of the acitve workspace
help Displays this help menu
clear Clears the screen
show Shows the contents of a table, specific information across all tables or the available modules
inscope Add ESSID to scope. inscope [ESSID]
SSID_Info Displays all information (i.e all BSSID, Channels and Encrpytion) related to the inscope SSIDS
use Use a SniffAir module
info Displays all variable information regarding the selected module
set Sets a variable in module
exploit Runs the loaded module
run Runs the loaded module
exit Exit SniffAir
>> [default]#
まず、workspace create <workspace> または workspace load <workspace> コマンドを使用して、新しいワークスペースを作成するか、既存のワークスペースをロードします。既存のワークスペースをすべて表示するには workspace list コマンドを使用し、目的のワークスペースを削除するには workspace delete <workspace> コマンドを使用します。
>> [default]# workspace
Manages workspaces
Command Option: workspaces [create|list|load|delete]
>> [default]# workspace create demo
[+] Workspace demo created
pcapファイルからデータを目的のワークスペースにロードするには、offline_capture <pcapファイルのフルパス> コマンドを使用します。一連のpcapファイルをロードするには、offline_capture_list <pcapファイル名のリストを含むファイルのフルパス> コマンドを使用します(このファイルには各pcapファイルのフルパスが含まれている必要があります)。無線インターフェースを使用してライブ無線トラフィックをキャプチャするには、live_capture <インターフェース名> コマンドを使用します。
>> [demo]# offline_capture /root/sniffair/demo.pcapdump
[+] Importing /root/sniffair/demo.pcapdump
\
[+] Completed
[+] Cleaning Up Duplicates
[+] ESSIDs Observed
show コマンドは、テーブルの内容、全テーブルにわたる特定の情報、または利用可能なモジュールを表示します。構文は以下の通りです:
>> [demo]# show table AP
+------+-----------+-------------------+-------------------------------+--------+-------+-------+----------+--------+
| ID | ESSID | BSSID | VENDOR | CHAN | PWR | ENC | CIPHER | AUTH |
|------+-----------+-------------------+-------------------------------+--------+-------+-------+----------+--------|
| 1 | HoneyPot | c4:6e:1f:##:##:## | TP-LINK TECHNOLOGIES CO. LTD. | 4 | -17 | WPA2 | TKIP | MGT |
| 2 | Demo | 80:2a:a8:##:##:## | Ubiquiti Networks Inc. | 11 | -19 | WPA2 | CCMP | PSK |
| 3 | Demo5ghz | 82:2a:a8:##:##:## | Unknown | 36 | -27 | WPA2 | CCMP | PSK |
| 4 | HoneyPot1 | c4:6e:1f:##:##:## | TP-LINK TECHNOLOGIES CO. LTD. | 36 | -29 | WPA2 | TKIP | PSK |
| 5 | BELL456 | 44:e9:dd:##:##:## | Sagemcom Broadband SAS | 6 | -73 | WPA2 | CCMP | PSK |
+------+-----------+-------------------+-------------------------------+--------+-------+-------+----------+--------+
>> [demo]# show SSIDS
---------
HoneyPot
Demo
HoneyPot1
BELL456
Hidden
Demo5ghz
---------
query コマンドは、指定されたパラメータに基づいて一意のデータセットを表示するために使用できます。query コマンドはSQL構文を使用します。
inscope <SSID> コマンドを使用すると、SSIDをインスコープテーブルに追加し、関連するすべてのデータを inscope_AP、inscope_proberequests、inscope_proberesponses テーブルにロードできます。すべてのインスコープSSIDのサマリーを表示するには、SSID_Info コマンドを実行します。
モジュールは、ワークスペースに含まれるデータを分析したり、use <モジュール名> コマンドを使用して攻撃的な無線攻撃を実行するために使用できます。一部のモジュールでは追加の変数を設定する必要がある場合があります。設定は set コマンド set <変数名> <変数値> を使用して行います。
>> [demo]# show modules
Available Modules
=================
[+] Auto EAP - Automated Brute-Force Login Attack Against EAP Networks
[+] Auto PSK - Automated Brute-Force Passphrase Attack Against PSK Networks
[+] AP Hunter - Discover Access Point Within a Certain Range Using a Specific Type of Encrpytion
[+] Captive Portal - Web Based Login Portal to Capture User Entered Credentials (Runs as an OPEN Network)
[+] Certificate Generator - Generates a Certificate Used by Evil Twin Attacks
[+] Exporter - Exports Data Stored in a Workspace to a CSV File
[+] Evil Twin - Creates a Fake Access Point, Clients Connect to Divulging MSCHAP Hashes or Cleartext Passwords
[+] Handshaker - Parses Database or .pcapdump Files Extracting the Pre-Shared Handshake for Password Guessing (Hashcat or JTR Format)
[+] Mac Changer - Changes The Mac Address of an Interface
[+] Probe Packet - Sends Out Deauth Packets Targeting SSID(s)
[+] Proof Packet - Parses Database or .pcapdump Files Extracting all Packets Related to the Inscope SSDIS
[+] Hidden SSID - Discovers the Names of HIDDEN SSIDS
[+] Suspicious AP - Looks for Access Points that: Is On Different Channel, use a Different Vendor or Encrpytion Type Then the Rest of The Network
[+] Wigle Search SSID - Queries wigle for SSID (i.e. Bob's wifi)
[+] Wigle Search MAC - Queries wigle for all observations of a single mac address
>> [demo]#
>> [demo]# use Captive Portal
>> [demo][Captive Portal]# info
Globally Set Varibles
=====================
Module: Captive Portal
Interface:
SSID:
Channel:
Template: Cisco (More to be added soon)
>> [demo][Captive Portal]# set Interface wlan0
>> [demo][Captive Portal]# set SSID demo
>> [demo][Captive Portal]# set Channel 1
>> [demo][Captive Portal]# info
Globally Set Varibles
=====================
Module: Captive Portal
Interface: wlan0
SSID: demo
Channel: 1
Template: Cisco (More to be added soon)
>> [demo][Captive Portal]#
すべての変数が設定されたら、exploit または run コマンドを実行して目的の攻撃を実行します。
ワークスペースのテーブルに保存されているすべての情報をエクスポートするには、Exporter モジュールを使用し、目的のパスを設定します。
Sniffiarは以下のリポジトリの成果を含んでいます: