diff --git a/research/deinit.sh b/research/deinit.sh deleted file mode 100755 index ee280bb92..000000000 --- a/research/deinit.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -rmmod mac80211_hwsim -rmmod ath9k_htc -rmmod ath9k_common -rmmod ath9k_hw -rmmod ath -rmmod mac80211 -rmmod cfg80211 -rmmod compat diff --git a/research/droptraffic.sh b/research/droptraffic.sh old mode 100644 new mode 100755 diff --git a/research/post-analysis.py b/research/post-analysis.py deleted file mode 100755 index e132caaf7..000000000 --- a/research/post-analysis.py +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/env python3 -from libwifi import * - -def netbsd_forcefrag_verify(): - # Capture made using independent TL-WN722N - cap = rdpcap("../../captures/netbsd-forward-eapol-before-auth-fragmented-1.pcapng") - fragments = [] - fragments.append(cap[1204][Dot11]) - fragments.append(cap[1207][Dot11]) - fragments.append(cap[1262][Dot11]) - fragments.append(cap[1262][Dot11]) - fragments.append(cap[1266][Dot11]) - fragments.append(cap[1270][Dot11]) - fragments.append(cap[1277][Dot11]) - fragments.append(cap[1355][Dot11]) - - # Taken from debug output hostapd on NetBSD - tk = "b7 2a 27 4c 50 6b c1 3b 86 3d 9a 97 fe 85 8b c9" - tk = bytes.fromhex(tk.replace(" ", "")) - - print("Testing decryption") - for frag in fragments: - decrypt_ccmp(frag, tk) - - # Encrypt newly constructed packet - pt = fragments[0].copy() - pt.remove_payload() - # Note: the import to give the original number of A's so the EAPOL length - # fields are properly reconstructed. After this, we trim the length. - payload = LLC()/SNAP()/EAPOL()/EAP(raw(EAP()/Raw(b"A" * 2600))) - pt = pt/raw(payload)[:2314] - test = encrypt_ccmp(pt, tk, pn=1) - - print("Testing reconstructed encryption") - assert raw(fragments[0]) == raw(test) - -def main(): - netbsd_forcefrag_verify() - -if __name__ == "__main__": - main() - diff --git a/research/start_ap.sh b/research/start_ap.sh deleted file mode 100755 index f14a9c837..000000000 --- a/research/start_ap.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -set -e - -../hostapd/hostapd ../hostapd/hostapd.conf -dd -K diff --git a/research/start_sta.sh b/research/start_sta.sh deleted file mode 100755 index 98fc99995..000000000 --- a/research/start_sta.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -set -e - -../wpa_supplicant/wpa_supplicant -D nl80211 -i wlan1 -c client.conf -dd -K diff --git a/research/start_sta2.sh b/research/start_sta2.sh deleted file mode 100755 index 106ce174b..000000000 --- a/research/start_sta2.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -set -e - -../wpa_supplicant/wpa_supplicant -D nl80211 -i wlan2 -c client.conf -dd -K