aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/captures/wpa3-sae.pcapng.gzbin0 -> 5981 bytes
-rw-r--r--test/config/80211_keys.tmpl1
-rw-r--r--test/suite_decryption.py10
3 files changed, 11 insertions, 0 deletions
diff --git a/test/captures/wpa3-sae.pcapng.gz b/test/captures/wpa3-sae.pcapng.gz
new file mode 100644
index 0000000000..755827065e
--- /dev/null
+++ b/test/captures/wpa3-sae.pcapng.gz
Binary files differ
diff --git a/test/config/80211_keys.tmpl b/test/config/80211_keys.tmpl
index 0f3874baa2..a9f3c81632 100644
--- a/test/config/80211_keys.tmpl
+++ b/test/config/80211_keys.tmpl
@@ -5,3 +5,4 @@
"wpa-psk","a5001e18e0b3f792278825bc3abff72d7021d7c157b600470ef730e2490835d4"
"wpa-psk","79258f6ceeecedd3482b92deaabdb675f09bcb4003ef5074f5ddb10a94ebe00a"
"wpa-psk","23a9ee58c7810546ae3e7509fda9f97435778d689e53a54891c56d02f18ca162"
+"wpa-psk","ecbfe709d6151eaba6a4fd9cba94fbb570c1fc4c15506fad3185b4a0a0cfda9a"
diff --git a/test/suite_decryption.py b/test/suite_decryption.py
index 113096584a..808c5c6aeb 100644
--- a/test/suite_decryption.py
+++ b/test/suite_decryption.py
@@ -79,6 +79,16 @@ class case_decrypt_80211(subprocesstest.SubprocessTestCase):
))
self.assertEqual(self.countOutput('ICMP.*Echo .ping'), 2)
+ def test_80211_wpa3_personal(self, cmd_tshark, capture_file):
+ '''IEEE 802.11 decode WPA3 personal / SAE'''
+ # Included in git sources test/captures/wpa3-sae.pcapng.gz
+ self.assertRun((cmd_tshark,
+ '-o', 'wlan.enable_decryption: TRUE',
+ '-r', capture_file('wpa3-sae.pcapng.gz'),
+ '-Y', 'wlan.analysis.tk == 20a2e28f4329208044f4d7edca9e20a6 || wlan.analysis.gtk == 1fc82f8813160031d6bf87bca22b6354',
+ ))
+ self.assertTrue(self.grepOutput('Who has 192.168.5.18'))
+ self.assertTrue(self.grepOutput('DHCP ACK'))
@fixtures.mark_usefixtures('test_env')
@fixtures.uses_fixtures