This is my solution/guide repository for the BuidlGuidl Capture the Flag (CTF) challenges. They are designed to teach various Ethereum security concepts and smart contract vulnerabilities.
The challenges themselves are located in the src/
directory, taken directly from the CTF's repository.
The solutions and guides are located in the test/
directory, with each challenge having its own subdirectory. In each subdirectory, there is a README.md
file that explains the challenge and a general solution, as well as a ChallengeX.t.sol
file that contains an implementation of the solution.
- Challenge 1
- Challenge 2
- Challenge 3
- Challenge 4
- Challenge 5
- Challenge 6
- Challenge 7
- Challenge 8
- Challenge 9
- Challenge 10
- Challenge 11
- Challenge 12
This repository uses Foundry. If you would like to tinker with this repository, you should install Foundry and clone the repository:
git clone https://github.com/ByteAtATime/bg-ctf.git
Then, you have to install the dependencies (be patient, this may take a while):
foundry install
Finally, you can run the tests:
foundry test