Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pablito2020/bufferoverflow-exploit
https://github.com/pablito2020/bufferoverflow-exploit
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pablito2020/bufferoverflow-exploit
- Owner: Pablito2020
- Created: 2022-10-23T20:50:51.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-30T15:47:24.000Z (about 2 years ago)
- Last Synced: 2023-03-08T18:04:13.250Z (almost 2 years ago)
- Language: C
- Size: 56.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.