Coder Social home page Coder Social logo

hanhaizhiya / pcapkeyinjector Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thomas-v2/pcapkeyinjector

0.0 0.0 0.0 201 KB

This is a utility tool that simplifies the integration of TLS key files into Wireshark captures.

License: GNU Lesser General Public License v3.0

C# 100.00%

pcapkeyinjector's Introduction

PcapKeyInjector

This is a utility tool that simplifies the integration of TLS key files into Wireshark captures.

With integrated keys, you can share the capture files with other users in one single file. After the intergation the file will contain the TLS secrets which allows Wireshark to decrypt the TLS communication in the capture file.

Requirements

  • Dot Net Framework 4.7.2
  • Wireshark installation

Usage

Enter the path to the editcap.exe from your Wireshark installation to the program settings. Modify the output filename pattern and the output directory to your own requirements. As filename pattern you can use {1} for the Wireshark capture filename, and {2} for the keylog filename, which will be replaced by the entered files. You can either drag&drop a file onto the (coloured) fields, enter the filenames manually, or use the browse file dialog buttons.

By clicking on "Inject", editcap.exe from the Wireshark installation is used to inject the TLS secrets from the .log file into the .pcapng file, and saves all together to a new file.

Pcap Key Injector running

In the background the program is calling editcap.exe with this parameters:

editcap.exe --inject-secrets tls,keylog.log capture.pcapng capture-with-keys.pcapng

This can also be done manually on the command line, but the program simplifies it with a graphical user interface.

Keylog file

The keylog file with the secrets of the TLS protocol can be saved in OpenSSL by using the SSL_CTX_keylog callback method, where you can save the private keys.

The keylog file will contain 5 lines, which start with the following identifiers:

SERVER_HANDSHAKE_TRAFFIC_SECRET xxx
EXPORTER_SECRET xxx
SERVER_TRAFFIC_SECRET_0 xxx
CLIENT_HANDSHAKE_TRAFFIC_SECRET xxx
CLIENT_TRAFFIC_SECRET_0 xxx

License

GNU Lesser General Public License, Version 3 or later.

Authors

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.