# Defi安全挑战系列-Damn Vulnerable DeFi **Published by:** [skye](https://paragraph.com/@skye-3/) **Published on:** 2023-06-19 **URL:** https://paragraph.com/@skye-3/defi-damn-vulnerable-defi ## Content 这是一个关于Defi安全相关的一系列挑战的解决方案讲解。原题网址: https://www.damnvulnerabledefi.xyz/ 怎么玩? 克隆代码库 使用 git checkout v3.0.0 切换到最新版本 使用 yarn 安装依赖项 在 *.challenge.js 文件中编写您的解决方案(位于 test 文件夹中每个挑战文件夹的内部) 使用 yarn run challenge-name 运行挑战。如果测试成功执行,说明您已经通过了! 提示 要编写解决方案,您可能需要阅读 Ethers 和 Hardhat 的文档。 在所有挑战中,您必须使用名为 "player" 的账户。在 Ethers 中,这可能需要使用 .connect(player)。 一些挑战要求您编写并部署自定义智能合约。 如需故障排除、支持和问答,请访问此处。 另外 我会默认为用户是熟读了挑战中的智能合约和部署代码,就没有逐行写注释了。但是会简单的分析下智能合约,并且提供解决方案供参考。 ## Publication Information - [skye](https://paragraph.com/@skye-3/): Publication homepage - [All Posts](https://paragraph.com/@skye-3/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@skye-3): Subscribe to updates