Giter Club home page Giter Club logo

Comments (15)

larseggert avatar larseggert commented on July 30, 2024

Are you on the latest master version? Are you using the most recent wireshark nightly? Are you feeding the TLS log into wireshark (default location /tmp/quant-tlslog)?

from quant.

amitgeron avatar amitgeron commented on July 30, 2024

Versions:
QUANT - ccf9ecd (with submodules up-to-date)
Wireshark - Version 3.0.2 (Git commit 621ed351d5c9)
TLS log set correctly. Please note that in case TLS log is absent, Wireshark would still able to recognize QUIC packets.

from quant.

larseggert avatar larseggert commented on July 30, 2024

Maybe try and go back to 9afd822? I can't look into this much for the next two weeks, sorry

from quant.

larseggert avatar larseggert commented on July 30, 2024

Also, please try a newer wireshark - the 3.1.0 series is the current nightly: https://www.wireshark.org/download/automated/osx/

from quant.

adikabintang avatar adikabintang commented on July 30, 2024

@amitgeron You may want to use Wireshark version commit 5e79558a8243c046ce3f279c635f9670be7f8f05 or newer.

You can either git clone https://code.wireshark.org/review/wireshark or download from here https://www.wireshark.org/download/automated/src/

from quant.

amitgeron avatar amitgeron commented on July 30, 2024

Same result with 3.1.0rc0-1058-g142e024e1f02 (Git commit 6183dc441c38)

I don't think this is a Wireshark issue, since with other implementations of QUIC I don't experience this issue.

from quant.

larseggert avatar larseggert commented on July 30, 2024

Would you try going back to the commit before I shortened the exporter labels? I just made that change due to what @Lekensteyn

from quant.

larseggert avatar larseggert commented on July 30, 2024

Wrote in #12 but didn’t test it fully

from quant.

amitgeron avatar amitgeron commented on July 30, 2024

Tested with commit 9afd822, and after forcing Wireshark to decode the packets as QUIC, I get no errors.

from quant.

larseggert avatar larseggert commented on July 30, 2024

Thanks for confirming this. I guess it’s an issue with the shortened labels then, either in quant or in wireshark (cc @Lekensteyn @alagoutte)

from quant.

Lekensteyn avatar Lekensteyn commented on July 30, 2024

Key logging works for me.

sudo tcpdump -i lo -p -w quant.pcap &
bin/server &
bin/client http://localhost:4433 -l quant.keys
editcap --inject-secrets tls,quant.keys quant.pcap quant-dsb.pcapng
wireshark -r quant-dsb.pcapng -dudp.port==4433,quic

Capture file with embedded keys (ZIP due to Github limitations): quant-dsb.pcapng.zip

With Wireshark v3.1.0rc0-1099-g2d96da9b7f (git master), everything can be decrypted, except for 0-RTT data (need to check why). Edit: 0-RTT decryption was not yet implemented in Wireshark, proposed patch: https://code.wireshark.org/review/33695

The version field is reported as "0x45474714" instead of the official draft version 0xff000014 (draft-20). That is likely the reason why Wireshark heuristics refuses to interpret it, requiring a manual Decode As action.

quant was built on Arch Linux with:

sudo pacman -S git cmake ninja libbsd http-parser libev
git clone --depth=100 https://github.com/NTAP/quant /tmp/quant
mkdir /tmp/build && cd /tmp/build
cmake -GNinja /tmp/quant -DCMAKE_BUILD_TYPE=Debug
ninja

Environment:

If you still run into problems, can you share a pcapng file with embedded secrets as described above? A separate pcap + key log file would also work.

from quant.

amitgeron avatar amitgeron commented on July 30, 2024

Thanks!
I can confirm that all looks good now. I built latest Wireshark (3.1.0rc0-1121-gec10752adb78), which already includes the patch that you mentioned.

from quant.

larseggert avatar larseggert commented on July 30, 2024

Thanks all for confirming things; I’m closing this now

from quant.

Lekensteyn avatar Lekensteyn commented on July 30, 2024

@larseggert you actually reopened it 😄

from quant.

larseggert avatar larseggert commented on July 30, 2024

Man this CodeHub app is not great

from quant.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.