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 |
---|---|
GreeterVault | Delegatecall |
GreeterGate | Storage Layout |
GuessGame | Immutable Variables; Precompiled Contracts |
Registry | Reentrancy |
Who | Special Address; Gas Puzzle; Storage Layout |
ByteVault | EVM Bytecode Constraints |
ByteDance | EVM Bytecode Constraints; Delegatecall |
DeFiMaze | Logic Puzzle |
Achilles | Logic Puzzle; UniswapV2 |
StakingPool | Logic Puzzle |
EthStaking | Logic Puzzle |
Challenge | Keyword |
---|---|
Re-Remix | Signature Malleability; Storage Layout; Read-Only Reentrancy |
Challenge | Keyword |
---|---|
Confidentiality | Signature Malleability |
Funds Secured | Missing Length Check |
Challenge | Keyword |
---|---|
positive | Integer Overflow |
infinite | Logic Puzzle |
deception | Bytecode Reverse Engineering |
Challenge | Keyword |
---|---|
damn brackets | EVM Bytecode Golf |
Challenge | Keyword |
---|---|
Murky Seepass | Missing Length Check |
Operation Feathered | abi.encodePacked Collisions |
Pigeon Bank | Reentrancy |
Pigeon Vault | Governance; ERC-2535: Diamonds Proxy; Missing Signature Verification |
Challenge | Keyword |
---|---|
d3casino | EVM Bytecode Golf; Special Address |
Challenge | Keyword |
---|---|
Counter | EVM Bytecode Golf; Delegatecall |
SimpleCall | Integer Overflow; Reentrancy |
LittleMoney | EVM Bytecode Golf; Delegatecall; Bytecode Reverse Engineering |
Exist | Special Address |
HEXP | Bytecode Reverse Engineering |
Asslot | EVM Bytecode Golf; Gas Puzzle |
LenderPool | Reentrancy |
GOATFinance | Logic Puzzle |
Wallet | Head Overflow Bug |
ApplePool | Price Manipulation; UniswapV2 |