Git Product home page Git Product logo

usbpcapodindumper.py's Introduction

USBPcapOdinDumper Unlicensed work

PyPi Status Libraries.io Status Code style: antiflash

We have moved to https://codeberg.org/KOLANICH-tools/USBPcapOdinDumper, grab new versions there.

Under the disguise of "better security" Micro$oft-owned GitHub has discriminated users of 1FA passwords while having commercial interest in success of FIDO 1FA specifications and Windows Hello implementation which it promotes as a replacement for passwords. It will result in dire consequencies and is competely inacceptable, read why.

If you don't want to participate in harming yourself, it is recommended to follow the lead and migrate somewhere away of GitHub and Micro$oft. Here is the list of alternatives and rationales to do it. If they delete the discussion, there are certain well-known places where you can get a copy of it. Read why you should also leave GitHub.


It's a tool to dump ODIN3 messages into files with human-readable names for further reverse-engineering. Both usbmon (the subsystem in Linux kernel) and usbpcap (the app for Windows) captures are supported.

Requirements

  • plumbum TravisCI Build Status - for the fancy CLI.
  • RichConsole TravisCI Build Status - for colors in console. It's mandatory because this shit is used internally to generate file names, so in console the names are colorful.
  • Pipeline TravisCI Build Status - The main app's pipeline.
  • kaitaistruct TravisCI Build Status - runtime for Kaitai Striuct-generated parsers.

How to use

python3 -m USBPcapOdinDumper pcap_file_1.pcap

or

python3 -m USBPcapOdinDumper

to process all the files in the current folder.

It will generate the folders in the current folder for each pcap file.

For each isUseful (see isUseful methods) packet it will generate the file, which name usually have encoded:

  • the packet number in pcap
  • the type of USB transaction (only bulk are useful for us)
  • the direction showed with an arrow
  • some info from enums of odin messages. If enum values are incorrect, an error occurs, info about which enum and which value is incorrect will be added into a file name.

The parser of ODIN3 messages is based on Benjamin Dobell's Heimdall TravisCI Build Status flasher.

Samples of protocol:

usbpcapodindumper.py's People

Contributors

kolanich avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

vaginessa mrstuff

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.