Giter VIP home page Giter VIP logo

how2bof's Introduction

how2bof

Now updated scripts run with python3!

Guide to buffer overflows, binaries that can be used to practice BufferOverFlows. All these binaries are 32bit. Compiled on Ubuntu 16.04 (will update to 20.04 at some point)

You probably arrive here because you're interested in learning to hack. Hopefully this repo contains information that is useful in your pursuit. Another resource I can highly recommend is LiveOverflow. He has a real gift for explaining the underlying technical principles.

This challenge was taken directly from the pwnable.kr challenge "bof". This is a great starting point for learning about buffer overflows.

This challenge requires you to overwrite the return pointer on the stack. Can you get shell?

This challenge requires you to set up the stack correctly to pass arguments to the system function. Are you up for the challenge?

Similar to bof3, but strings won't be as readily available, can you still get shell?

Introduction into ASLR, and using return to libc (ret2libc) for popping a shell.

Building on the last level, this introduces the concept of stack cookies/sentinels/guards and requires leaking several values yourself by using FSB.


Essential Tools:

pwntools. Please head over there and look up how to install this excellent python module.

It is also recommended that you use something to make the use of GDB a bit 'friendlier'. I would recommend using one of the following:

After putting these challenges together I found: https://github.com/bert88sta/how2exploit_binary Take a look at his repo and very similar information there (plus more) ;)

how2bof's People

Contributors

caesurus avatar

Stargazers

Mehloul Mohamed avatar  avatar Giovanni Cammisa avatar  avatar Xavier avatar Manon avatar Soda avatar Wyatt Walter avatar  avatar 5l1v3r1 avatar Terence Chan Zun Mun avatar Soumyajit Deb avatar  avatar NickVido avatar Samuel Vidovich avatar  avatar  avatar  avatar Atharva Vaidya avatar eagle avatar Jon Peters (Dark) avatar qui3tw0lf avatar 小稚 avatar Brandon Nhem avatar Kr0ff avatar Jerusalemsbell avatar N3XUS avatar Conor Pirry avatar Bo-Wei Chen avatar  avatar  avatar WALL-E avatar Victor Azzam avatar echel0n avatar X0RED avatar Acharya  avatar Aan avatar Mocking G33K avatar Souhardya Sardar avatar  avatar Yash avatar Neonalton avatar  avatar  avatar Paul Liljenberg avatar  avatar Petr Pospíšil avatar WJ avatar JK avatar Zhang avatar 434b avatar Panda avatar JP Roemer avatar  avatar TJN avatar Abdillah Hasny avatar Siddarth Senthilkumar avatar  avatar Abhi V avatar Craig Ingram avatar

Watchers

James Cloos avatar  avatar

how2bof's Issues

bof4 broken

it seems like the bof4 is broken where it should read in the buffer contents

printf("overflow me:");
gets(overflowme); // smash me!

Recompilation doesn't solve it

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.