Giter VIP home page Giter VIP logo

take-me-back's Introduction

take me back

I miss the old libc

What is this? ๐Ÿง

With updates in glibc 2.34, getting basic ROP gadgets inside your binaries is harder, which is good for security, but makes learning the basics of binary exploitation a bit more annoying. This small Docker container spins up an Ubuntu image with an older version of glibc, so that you don't have to download a bunch of things yourself. It will also copy the libc and linker out of the Docker container for added convenience.

This project is solely intended for small, typically single file C programs to be used in CTF-style challenges, nothing more.

Usage ๐Ÿณ

Prerequisites: Docker

docker run --rm -it -v "$PWD:/pwd" --user $(id -u):$(id -g) take-me-back [GCC FLAGS]

Example

docker run --rm -it -v "$PWD:/pwd" --user $(id -u):$(id -g) take-me-back vuln.c -o vuln -fno-stack-protector -z execstack -no-pie

TODO ๐Ÿ“‹

  • Figure out a clean way to allow someone to specify the glibc version they need
  • maybe write a Python wrapper to handle the whole file path issue? WORKDIR is a thing dummy
  • Use a smaller base image, maybe Arch Linux or alpine-glibc?
  • Fix the whole ownership thing

take-me-back's People

Contributors

an00brektn avatar glitch-gecko avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

glitch-gecko

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.