GithubHelp home page GithubHelp logo

andream16 / mitmcracker Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 345 KB

Second version of go-crackerino. More performant and more idiomatic go.

Go 48.71% Makefile 0.86% OCaml 50.43%
go golang go-routine cracker meet-in-the-middle-attacks security

mitmcracker's Introduction

mitmcracker

Golang Key Cracker Which Implements Meet In the Middle Strategy.

Given a known cipher-text and a known plain-text, it finds two keys k1 and k2 in a way that Ek1(plain) == Dk2(cipher) where E is the encryption function and D is the decryption function.

It tries all the possible keys in the range of 24/28/32 bits and prints which are the keys to be used for the encryption and decryption.

Keys can only be 6/7/8 Digits HEX and Cipher/Plain can only be 16 Digits HEX.

What you need to run the project:

  • Go: ~v1.15
  • Ocaml: ~v4.08.1

How to run the app

From the root of the project:

  • build the go/ocaml binaries: make
  • run the command: ./mitmcracker -key=$keyLength -encoded=$encodedMsg -plain=$plainMsg

Known Inputs/Outputs

  • 24-bit:
    • plain: C330C9CBD01DFBA0
    • encoded: E10C65124518DB05
    • encoding key to be found: 6d3952
    • decoding key to be found: 513346
  • 28-bit:
    • plain: 492A5BB83F8A3F95
    • encoded: 47090A6AC4A56798
    • encoding key to be found: ???????
    • decoding key to be found: ???????
  • 32-bit:
    • plain: FFC7C9E5694ABFF7
    • encoded: 98AC59F25448FFAC
    • encoding key to be found: ????????
    • decoding key to be found: ????????

When Ek1(C) == Dk2(P) you found the right keys k1, k2 to read all encrypted messages.

mitmcracker's People

Contributors

andream16 avatar

Watchers

 avatar  avatar  avatar

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.