Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
Requested by [aspirin] on #wireshark, this script adds a percentage
number to the tshark statistics output. Adding a percentage bar can also
be done, but is an exercise for later at the moment.
|
|
|
|
I previously mentioned that nobody seems to support AES CCM for PSK, but
then I noticed that bug 8567 uses this for a DTLS capture. I might need
to add some of these missing cases to the ssl_get_keyex_alg function.
[1]: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8567
|
|
The new ssl_get_keyex_alg.txt.diff has been generated with the
following patches applied:
- (unrelated) ssl: Support PSK larger than 16 octets
- Use correct key exchange type for ECDHE ciphers
- (unrelated) ssl: drop unused SIG_ field and constants
- Add more PSK and Camellia ciphers
- Simplify determining key exchange algorithm, more PSK support
|
|
ssl_get_keyex_alg.txt contains the current supported list of cipher
suites for key exchange by the ssl_get_keyex_alg() function.
It was generated with:
awk -F '[ :;\t]+' '/^gint ssl_get_keyex_alg/{p=1}
/case/{if(p)a[$3]=0} /return/{for(i in a)print i, $3;delete a} /^}
/{if(p)exit}' packet-ssl-utils.c
This file can then be converted and sorted with:
while read num name; do echo $((num)) $name;
done < ssl_get_keyex_alg.txt | sort -n > /tmp/1
To get the current cipher suites list:
awk -F '[ {,]+' '/,KEX_/{print $2, $3}' packet-ssl-utils.c > /tmp/2
Check which cipher suites are missing or have an incorrect key exchange:
diff -y /tmp/[12]
It turned out that the ECDH cipher suites were incorrectly marked as
DH (tested on top of SVN rev 52320). Therefore adjust the
generate-wireshark-cs file.
|
|
|
|
|
|
Wireshark already supports these suites, yay :)
|
|
Sent to gcrypt-devel@gnupg.org.
|
|
I stopped when I had the thousandth dependency issue after
crypt/libairpdcap.la, this time (again) some broken headers (wsutil
something if I remember correctly? Or was it something related to LUA?)
|
|
|
|
Making assumptions about ClientHello is very fragile, but since we are
controlling the client, it should not be a big deal.
|
|
|
|
RC2 is a block, not a stream. I thought I fixed this some time ago...
|
|
This makes it easier to see relations in plaintext (if any).
|
|
|
|
This is removed because it is redundant, see
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9144#c16
|
|
|
|
|
|
./openssl-listen /tmp/test-certs
dumpcap -f '(host ::1 or host 127.0.0.1) and tcp portrange 4430-4433' \
-i lo -w all/dump.pcapng
./openssl-connect < all/ciphers-without-SRP-PSK.txt > all/premaster.txt
# kill dumpcap
Check with:
wireshark -o ssl.keylog_file:$PWD/premaster.txt dump.pcapng \
-o http.ssl.port:4430-4433 -o ssl.debug_file:debug.txt
debug.txt is not added because it is a 5.8 MiB file (1.3 MiB gzipped).
|
|
This allows for something like:
openssl ciphers -V | grep -v \ SRP- | ./openssl-connect /tmp/test-certs
|
|
|
|
|
|
And also support reading suites.txt (generated from IANA's CSV[1]).
Not supported are SRP, KRB5, PSK, ARIA and CCM. Suggested usage:
grep -vE '_(SRP|KRB5|PSK|ARIA)_|_CCM(_|$)' suites.txt |
./generate-wireshark-cs
[1]: http://www.iana.org/assignments/tls-parameters/tls-parameters-4.csv
|
|
|
|
|
|
|