The solutions scripts are in the test directory.
For some challenges, an external Solidity contract was created to perform the attack. You will find these contracts in contracts/attacker-contracts.
The scripts and contracts contain comments explaining how the attack was set up.
Clone the repository
git clone https://github.com/joestakey/damn-vulnerable-defi.git
Install all the dependencies
npm install
Run a challenge
npm run <challenge_name>