Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pablito2020/bufferoverflow-exploit


https://github.com/pablito2020/bufferoverflow-exploit

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# Buffer Overflow Exploit

## Usage:
First, clone the project (THE DIRECTORY IS IMPORTANT FOR CALCULATING THE RETURN VALUE, SO PLEASE, FOLLOW THIS INSTRUCTIONS):

```bash
$ cd /home/user # the username is important, for now only "user" is tested
$ git clone [email protected]:Pablito2020/bufferoverflow-exploit.git practica
$ cd practica
```

Then, install the binaries and disable some stack protections:
```bash
$ sudo make install
```

Finally, run the exploit (if 70 isn't enough, try different numbers or create a loop that tries from 20 to 200):
```bash
$ ./exploit 70
```

## Additional information
If you want to see how you can overflow the version that uses puts instead of printf (which was disabled with the *-fno-builtin-printf* flag), you can check out the "gdb-only" branch.