Giter Club home page Giter Club logo

breach's Introduction

WHAT IS THIS?

This tool features the basic BREACH attack. We're working on the browser-based prototype shown at BlackHat 2013.

This is intended for self-assessment only. Don't do bad things.

NOTES

  • MITM: This is not required for the PoC. Instead, we suggest a simple HOSTS entry to enable measurement of the encrypted traffic.

  • Browserless: At this time we provide a simple HTTP client that simulates browser behavior. The full-featured browser-based tool will follow.

  • Block Ciphers: The tool isn't smart enough to work against block ciphers yet. Maybe you can send us a pull request to fix this!

HOW TO USE IT

Requirements:

  1. Windows OS (7+ tested)
  2. .NET 3.5+ Framework
  3. Visual Studio 2010+ (if you want to modify the code)

How to run:

  1. Build the projects to get the executables, or download them at http://breachattack.com/precompiled/.
  2. Run (echo. && echo 127.0.0.1 malbot.net) >> %windir%\system32\drivers\etc\hosts in a command shell with admin privs.
  3. Launch SSLProxy.exe.
  4. Launch BREACH Basic.exe.
  5. Verify the secret extracted is correct. (Take a look at the source of https://malbot.net/poc/.)

How to customize:

  1. Edit your hosts file entry with your new target.
  2. Edit TargetIP address in SSLProxy.cs.
  3. Edit KeySpace in BREACH Basic.cs to reflect the target secret's alphabet.
  4. Edit TargetURL in BREACH Basic.cs.
  5. Edit canary to specify your bootstrapping sequence in 'BREACH Basic.cs'.
  6. Compile & Run.

How to contribute:

Fork this repo. Make some awesome changes. Send us a pull request.

CONTACT

breach's People

Contributors

angeloprado avatar nealharris avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

breach's Issues

huffman coding check returning the same byte length

I cloned the repo and ran it locally.
Issue 1: The target IP in the SSL proxy does not match malbot.net This was easy enough to update in the source code.

Issue 2: The part that deals with the huffman coding by making two requests, one with the character before the padding and the other with the character after the padding is getting the same response size. The code that deals with this is in BREACH Basic.cs at the method IsCorrectGuess.

I know gzip is working because the response comes back encoded. I decoded the response and checked the values and they are inserted into the page correctly.

I am trying to replicate this attack for a computer security project.

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.