Giter Site home page Giter Site logo

hourglassbreaker's Introduction

HourglassBreaker

This is a python program that can open files encrypted by Hourglass by bruteforcing the key protecting the file.

It does not matter how many iterations you've set in Hourglass, because the underlying encryption is only 16-bit.

A test vector is included. HourglassBreaker works best on medium length messages. If it's too short, then the CRC isn't effective, and multiple keys produce a file that checksums correctly. The longer the file is, the longer HB will take.

This works as of commit 8cf7c8c.

Example usage

$ time ./bruteforce.py todecrypt
Solution found!
key = 0x2a4f
plaintext = b'Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n'
flags = 2

real	0m3.239s
user	0m3.240s
sys	0m0.000s

License

GPLv3

Dependencies

Python 3

Bugs

Doesn't support qCompress. If you get 'flags = 3' and a bunch of gobbledygook, that's because the data is compressed.

hourglassbreaker's People

Contributors

nickodell avatar

Stargazers

 avatar  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.