Giter Club home page Giter Club logo

canarybrute3's Introduction

CanaryBrute3

A simple script to bruteforce 64 bits binaries with python 3.

Before using

Please read the code as I have left comments indicating what needs to be changed.

Introduction

I wanted to share with you a script made in Python 3 without pwntools (pwntools has a dev3 branch which supports python3).

The following script will bruteforce asynchronously the following addresses:

  • Stack canary address
  • EBP
  • Return address

This has been built to bruteforce 64 bits binaries with the following details:

  • The binary establishes a listener in certain address and port (localhost, 1337).
  • The binary sends one single line and then expects user input.

Since this process is being done asynchronously, the needed time to extract these 3 addresses is reduced a lot compared to a single threaded-single task bruteforce.

How to run

There are 3 global variables that need to be modified according to our needs.

HOST has to point to a valid and resolvable host, such as localhost, 10.10.10.10, etc.

PORT has to point to a valid port, such as 1337, 8006, 5050, etc.

BUFFER_OVERFLOW_OFFSET has to contain a numeric offset where the binary being bruteforced crashes by overflowing the buffer. If the binary crashes after 80 characters, this variable will contain that number.

Since this is made for python 3, please run it with python3. No command line arguments are required.

Output

The script will output the latest tested payload, Canary, EBP and return address hexadecimal addresses and time needed to bruteforce:

Post

I wrote a post about this script here

canarybrute3's People

Contributors

xh4h avatar

Watchers

James Cloos 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.