Giter Club home page Giter Club logo

bofenum's Introduction

BOFenum

Complete enumeration tool for win32 binaries vulnerable to stack based buffer overflows. Written in python.

Demo video

Features

This tool will perform dymanic analysis of a win32 binary. It can, without interaction, go from fuzzing to badchar detection to shellcode generation.

  • Uses wine. No windows host needed - only the binary and its custom .DLL dependencies (windows DLLs are linked automatically though)
  • Automatic fuzzing
  • Automatic pattern generation and offset identification
  • Automatic badchar detection
  • Automatic module identification and selection
  • ALSR/NX/Safe SEH detection: BOFenum only searches for gadgets (jmp esp) in modules without exploit mitigations turned on.
  • Automatic gadget identification, will find jmp esp (ff e4) and push esp; ret (54 c3)
  • Automatic shellcode generation
  • 100% local - this is only an enumeration tool for binary analysis. No actual exploitation is performed on any remote host.

Install

You need the following tools to use this: wine (for wine and winedbg), pev (to read the binary headers) and msfvenom (to generate shellcode). Tested with wine 6.0 and pev 0.80

sudo apt-get install pev

sudo apt install wine64

sudo apt-get install metaploit-framework

Use

sudo pkill -f wine #to make sure there are no wine/winedbg instances running

sudo python3 BOFenum.py targetBin tport [-h] [-p PREFIX] [-w] [-l LPORT] [-H LHOST] [-r RHOST] [-f FUZZSTART] [-s FUZZSTRIDE]

Disclaimer

Offsec staff have confirmed that this tool is disallowed on the exam (I got to use it because I was the author)

bofenum's People

Contributors

c-1-4 avatar

Stargazers

taipansec avatar

Watchers

 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.