https://github.com/yanorei32/unsafebf
An unsafe brainfuck interpreter. It uses stack as memory directly.
https://github.com/yanorei32/unsafebf
brainfuck brainfuck-interpreter return-oriented-programming stack-smaching vulnerable
Last synced: about 1 month ago
JSON representation
An unsafe brainfuck interpreter. It uses stack as memory directly.
- Host: GitHub
- URL: https://github.com/yanorei32/unsafebf
- Owner: yanorei32
- License: bsd-2-clause
- Created: 2023-12-23T09:38:53.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-12-24T14:18:54.000Z (over 1 year ago)
- Last Synced: 2025-02-12T17:22:50.124Z (3 months ago)
- Topics: brainfuck, brainfuck-interpreter, return-oriented-programming, stack-smaching, vulnerable
- Language: C
- Homepage:
- Size: 12.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# unsafebf
An unsafe brainfuck interpreter.
It uses stack as memory directly.## Features
- Simple code
- Dynamically allocated large memory
- A little fast
- Allows RCE for attacker
- Non portable (It depends on POSIX read and write functions that do not use stack.)## How to
```bash
gcc main.c -o unsafebf
./unsafebf "Some bf code"
```## FAQ
### Q. It's not working in my environment
This software depends on the implementation heavily.
I confirmed it works in x86_64 and -O3 flags.