Skip to content

Holds the contracts that web3 developers use on a daily basis, including Ethernaut, Uniswap,Damn Vulnerable DeFi etc.

License

Notifications You must be signed in to change notification settings

6boris/awesome-web3-contracts

Repository files navigation

Awesome Web3 Contracts

Holds the contracts that web3 developers use on a daily basis, including ethernaut, etc.

Install Dependency

yarn

Common install It might take a while.

 forge install

Install spec lib version

git submodule add https://github.com/OpenZeppelin/openzeppelin-contracts foundry/lib/@openzeppelin/contracts-v4.7.3
cd foundry/lib/@openzeppelin/contracts-v4.7.3 && git checkout tags/v4.7.3 && cd ../../../../
# run test case
forge test

# run local node
anvil -f sepolia

# run script
forge script foundry/script/Deploy.s.sol --fork-url http://localhost:8545 --broadcast

Damn Vulnerable DeFi

Damn Vulnerable DeFi is the wargame to learn offensive security of DeFi smart contracts in Ethereum. Featuring flash loans, price oracles, governance, NFTs, DEXs, lending pools, smart contract wallets, timelocks, and more. I also do videos on CTF on BILIBILI and YouTube, so feel free to SUBSCRIBE OR 一键三连.

Level Docs Video Note
1.Unstoppable ... BILIBILIYouTube ...
2.Naive receiver ... BILIBILI ...
3.Truster ... BILIBILI ...
4.Side Entrance ... BILIBILI ...
5.The Rewarder ... BILIBILI ...
6.Selfie ... BILIBILI ...
7.Compromised ... BILIBILI ...
8.Puppet ... BILIBILI ...
9.Puppet V2 ... BILIBILI ...
10.Free Rider ... BILIBILI ...
11.Backdoor ... ... ...
12.Climber ... ... ...
13.Wallet Mining ... ... ...
14.Puppet V3 ... ... ...
15.ABI Smuggling ... ... ...

Ethernaut is a Web3 / Solidity based adversarial game inspired by overthewire.org, running on the Ethernaut virtual machine. Each level is a smart contract that needs to be hacked.

Level Docs Video Note
0.XXXX Mirror YouTubeBILIBILI ...
0.Hello Ethernaut Mirror YouTubeBILIBILI ...
1.Fallback Mirror YouTubeBILIBILI ...
2.Fallout Mirror YouTubeBILIBILI ...
3.CoinFlip Mirror YouTubeBILIBILI ...
4.Telephone Mirror YouTubeBILIBILI ...
5.Token Mirror YouTubeBILIBILI ...
6.Delegate Mirror YouTubeBILIBILI ...
7.Force Mirror YouTubeBILIBILI ...
8.Vault Mirror YouTubeBILIBILI ...
9.King Mirror YouTubeBILIBILI ...
10.Reentrance Mirror YouTubeBILIBILI ...

ELEVATE YOUR EVM EXPERTISE WITH HANDS-ON CHALLENGES, COMPETE ON THE LEADERBOARD, AND JOIN A COMMUNITY OF SECURITY RESEARCHERS AND ENTHUSIASTS.

Status Level Docs Video Note
1.FREEBIE ... ... ...
2.TUTORIAL ... ... ...
3.REVERSE RUGPULL ... ... ...
4.UNDER THE FLOW ... ... ...
5.WRAPPED ETHER ... ... ...
6.ALL OR NOTHING ... ... ...
7.PLEASE SIGN HERE ... ... ...
8.BRIDGE TAKEOVER ... ... ...
9.SHAPESHIFTER ... ... ...
10.13TH AIRDROP ... ... ...
11.DIVERSION ... ... ...
12.PAYDAY ... ... ...

Hacking Analysis

Provide some Web3 Hack event analysis backtracking.

Hack Victim Video Note
20231012 - Platypus Victim contract,Exploit transaction,Exploit Code BILIBILI,YouTube 2.2 Million USD Stolen.

About

Holds the contracts that web3 developers use on a daily basis, including Ethernaut, Uniswap,Damn Vulnerable DeFi etc.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published