Reimplementing smart contract vulnerabilities and attacking them to aid understanding
Each individual bug can be found in the /src/
folder with the name of each folder
being the name of the attack/bug. The tests can also be found in the same folder.
Note that different solidity versions are used per attack.
- install foundry - https://github.com/foundry-rs/foundry/blob/master/README.md
- to build: $
forge build
- to test: $
forge test
. Use $forge test -vvvv
to see trace errors and how attacks are played (especially for reentrancy attacks)
Contact me twitter - https://twitter.com/0xCredence mailto: [email protected]