This repository contains a solution for the AngryStorage task from the website forkbomb.ru, which I solved by exploiting a race condition vulnerability. The original challenge involved understanding and leveraging concurrent execution to achieve the desired result.
I decided to rewrite the solution in C, focusing on implementing the exploit in a multithreaded environment using pthreads and the libcurl library for HTTP requests. This project serves as both a practical implementation of the exploit and a demonstration of handling concurrency in C.
- Python 3.x: Ensure Python 3 is installed on your system. You can check by running:
python3 --version
- C Compiler (gcc): Ensure you have a C compiler (like gcc) and the libcurl development library installed. You can install them on Linux with:
sudo apt-get install gcc libcurl4-openssl-dev
git clone https://github.com/yourusername/AngryStorage.git
cd AngryStorage
python3 ./exploit.py
gcc ./exploit.c -o ExploitRaceCondition -lcurl && ./ExploitRaceCondition