This repository contains my personal workspace and solutions to Solidity-based CTF blockchain challenges. Please note that the solutions provided are intended solely for reference purposes.
The src directory contains blockchain challenges, while the src/test directory includes scripts for solving these challenges. The template.t.sol can serve as a reference for creating your own scripts, simply replacing the contract name and target address accordingly.
To test locally, use the following command:
forge test --contracts .\src\test\TemplateCTF\template.t.sol -vvv
To solve the challenge and interact with it remotely, use the following command:
forge script --contracts .\src\test\TemplateCTF\templateScript.t.sol --slow .\src\test\TemplateCTF\templateScript.t.sol --broadcast
Note: Before interacting with the challenge remotely, make sure to correctly fill in the RPC endpoint.
| Challenge |
Keyword |
| SpaceBank |
Precision Loss; Create2; Selfdestruct |
| WomboCombo |
ERC-2771: Trusted Forwarder |
| AlienSpaceship |
Bytecode Reverse Engineering; Logic Puzzle |
| XYZ |
Precision Loss; Logic Puzzle |
| Challenge |
Keyword |
| Re-Remix |
Signature Malleability; Storage Layout; Read-Only Reentrancy |
| Challenge |
Keyword |
| d3casino |
EVM Bytecode Golf; Special Address |