Add a test for Zigbee. Compress the 802.11 capture. Fix an error message.

svn path=/trunk/; revision=41898
This commit is contained in:
Gerald Combs 2012-04-02 18:48:56 +00:00
parent 937df7af18
commit 4326f8de55
4 changed files with 19 additions and 2 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -57,7 +57,7 @@ decryption_step_80211_wpa_psk() {
env $TS_DC_ENV $TSHARK $TS_DC_ARGS \
-o "wlan.enable_decryption: TRUE" \
-Tfields -e http.request.uri \
-r captures/wpa-Induction.pcap \
-r captures/wpa-Induction.pcap.gz \
-R http \
| grep favicon.ico > /dev/null 2>&1
RETURNVALUE=$?
@ -77,7 +77,7 @@ decryption_step_dtls() {
| grep "69:74:20:77:6f:72:6b:20:21:0a" > /dev/null 2>&1
RETURNVALUE=$?
if [ ! $RETURNVALUE -eq $EXIT_OK ]; then
test_step_failed "Failed to decrypt SSL"
test_step_failed "Failed to decrypt DTLS"
return
fi
test_step_ok
@ -95,10 +95,27 @@ decryption_step_ssl() {
test_step_ok
}
# ZigBee
# https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7022
decryption_step_zigbee() {
env $TS_DC_ENV $TSHARK $TS_DC_ARGS \
-r captures/sample_control4_2012-03-24.pcap \
-Tfields -e data.data \
-R zbee.aps \
| grep "30:67:63:63:38:65:20:63:34:2e:64:6d:2e:74:76:20" > /dev/null 2>&1
RETURNVALUE=$?
if [ ! $RETURNVALUE -eq $EXIT_OK ]; then
test_step_failed "Failed to decrypt ZigBee"
return
fi
test_step_ok
}
tshark_decryption_suite() {
test_step_add "IEEE 802.11 WPA PSK Decryption" decryption_step_80211_wpa_psk
test_step_add "DTLS Decryption" decryption_step_dtls
test_step_add "SSL Decryption" decryption_step_ssl
test_step_add "ZigBee Decryption" decryption_step_zigbee
}
decryption_cleanup_step() {