A set of tasks for cracking implementations of smart-contracts with typical vulnerabilities.
Visit positive.com (soon)
OR
Clone the repository and solve locally, a separate test is made for each problem
git clone https://github.com/PositiveSecurity/PositiveCTF.git
cd PositiveCTF
forge install
- In some cases it may be necessary to write part of the exploit in the
setUp()
function, due to the peculiarities of processing theSELFDESTRUCT
command in Foundry - Some tasks require fork testing (
--fork-url
) - There are two roles in
BaseTest.t.sol
, sometimes it is required to send transactions fromplayer
, you cannot send transactions fromowner
- It is possible to manipulate the time of the blockchain within reasonable limits
All Solidity code, practices and patterns in this repository are for educational purposes only.
DO NOT USE IN PRODUCTION.