ethernaut
2,346
Stars
0
Forks
0
Watchers
0
Open Issues
未知
许可证
Solidity
语言
创建时间
最近更新
项目能做什么
基于 Web3 和 Solidity 的智能合约安全攻防闯关游戏(Wargame)。
来源:AI 基于仓库事实生成
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# Ethernaut
[](https://twitter.com/OpenZeppelin)
[](https://forum.openzeppelin.com/tag/ethernaut)
Ethernaut is a Web3/Solidity based wargame inspired by [overthewire](https://overthewire.org), to be played in the Ethereum Virtual Machine. Each level is a smart contract that needs to be 'hacked'.
The game acts both as a tool for those interested in learning ethereum, and as a way to catalogue historical hacks as levels. There can be an infinite number of levels and the game does not require to be played in any particular order.
## Deployed Versions
You can find the current, official version at: [ethernaut.openzeppelin.com](https://ethernaut.openzeppelin.com)
## Install and Build
There are three components to Ethernaut that are needed to run/deploy in order to work with it locally:
- Test Network - A testnet that is running locally, like ganache, hardhat network, geth, etc
- Contract Deployment - In order to work with the contracts, they must be deployed to the locally running testnet
- The Client/Frontend - This is a React app that runs locally and can be accessed on localhost:3000
In order to install, build, and run Ethernaut locally, follow these instructions:
0. Be sure to use a compatible Node version. If you use `nvm` you can run `nvm use` at the root level to be sure to select a compatible version.
1. Clone the repo and install dependencies:
```bash
git clone git@github.com:OpenZeppelin/ethernaut.git
cd ethernaut
yarn install
```
2. Start deterministic rpc
```bash
yarn network
```
3. Import one of the private keys from the ganache-cli output to your Metamask wallet.
4. Compile contracts
```bash
yarn compile:contracts
```
5. Set `client/src/constants.js` `ACTIVE_NETWORK` to `NETWORKS.LOCAL`
6. Deploy contracts
```bash
yarn deploy:contracts
```
7. Start Ethernaut locally
```bash
yarn start:ethernaut
```
### Running locally (sepolia network)
The same as using the local network but steps 2, 3 and 6 are not necessary.
In this case, replace point 5 with:
5. Set `client/src/constants.js` `ACTIVE_NETWORK` to `NETWORKS.SEPOLIA`
### Running tests
```bash
yarn test:contracts
```
### Building
```bash
yarn build:ethernaut
```
### Deploying
You will normally need to deploy it on a local network, for this you can just run `yarn deploy:contracts` and all the contracts will be deployed on your local node running on `localhost:8545` and you will be able to check each level address in the `deploy.local.json` file.
To deploy the contracts on Sepolia, first set the `ACTIVE_NETWORK` variable in `constants.js` and then edit `deploy.sepolia.json`. This file keeps a history of all level and contract instances. To deploy a new instance, add an "x" entry to the arr
阅读完整原文
商业机会分析 AI 生成
交互式Web3安全自学与深度通关助手平台
| 产品构想 | 针对官方Ethernaut完全依赖控制台操作且无官方官方提示的痛点,构建带内置Web IDE、交易可视化跟踪、分步提示及详细漏洞原理复盘的辅助学习平台。 |
| 核心功能 | 免配本地节点/水龙头的一键云端沙盒环境、交易Trace可视化调用栈分析、阶梯式思路提示系统、经典漏洞原理与防护代码对比。 |
| 目标用户 | 自学Solidity的初中级开发者、准备转行Web3安全的工程师。 |
| 难度/周期 | 中等 · 1 - 2 个月 · 成本:每月50-200美元(轻量级云服务器、RPC节点调用配额)。 |
| 收费模式 | 会员订阅制(免费体验前3关,高阶关卡解析与云沙盒收取月费/年费)。 |
| 竞争风险 | 官方免费托管(ethernaut.openzeppelin.com)且网络上存在大量第三方免费通关writeup,需依靠极佳的交互式体验形成壁垒;AGPL-3.0协议要求前端代码衍生合规。 |
| 依据 | 已验证事实(官方无内置IDE及提示系统,完全基于控制台)+ AI推测 |
Web3安全招聘考核与CTF竞赛SaaS
| 产品构想 | 基于Ethernaut架构扩展关卡管理与防作弊机制,为Web3项目方、安全审计公司提供候选人能力测验与自动化评分系统。 |
| 核心功能 | 动态实例派发(独立合约地址防止抄袭)、计时与提交验证、代码审计报告自动生成、排行榜与候选人能力雷达图。 |
| 目标用户 | Web3创业项目方、智能合约审计公司HR及技术主管、Web3黑客松与CTF赛事组织方。 |
| 难度/周期 | 中等偏高 · 2 - 3 个月 · 成本:每月100-300美元(容器化服务、专用私有测试网RPC节点集群)。 |
| 收费模式 | B2B SaaS按调用次数付费(每次测评单价)或企业年度订阅席位制。 |
| 竞争风险 | Web3行业招聘周期波动大,中小团队可能直接使用免费开源方案自测,销售周期偏长。 |
| 依据 | AI推测 |
企业级智能合约安全防御实战内训靶场
| 产品构想 | 整合Ethernaut关卡,补充近几年真实DeFi被黑案例(如闪电贷攻击、预言机操纵),打包为企业内部安全研发合规培训靶场与私有化交付方案。 |
| 核心功能 | 私有化一键部署脚本、新增10+工业级实战漏洞关卡、防御修复模式(攻破后编写防御补丁)、团队学习进度跟踪后台。 |
| 目标用户 | DeFi协议开发团队、交易所、区块链安全培训机构。 |
| 难度/周期 | 高 · 3 - 4 个月 · 成本:研发人力成本为主,云服务成本每月100美元以内。 |
| 收费模式 | 项目制私有化交付费用、定制化漏洞关卡开发费、企业培训服务费。 |
| 竞争风险 | 定制化项目交付需要极强的智能合约安全审计背景,交付周期难以标准化,且必须严格遵循AGPL-3.0开源许可规避侵权。 |
| 依据 | 数据支持的判断(AGPL-3.0严格传染性,需以服务/外部独立管理系统方式隔离) |
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
| 项目 | 中文简介 | Stars | 语言 |
|---|---|---|---|
| ciaranmcveigh5/ethernaut-x-foundry | 中文介绍暂未生成 Ethernaut puzzles solved with foundry |
278 | Solidity |
| StErMi/foundry-ethernaut | 中文介绍暂未生成 | 109 | Solidity |
| nvnx7/ethernaut-openzeppelin-hacks | 中文介绍暂未生成 Hacks to Openzeppelin's Ethernaut smart contract challenges |
83 | - |
| RealJohnnyTime/ethernaut-foundry-solutions-johnnytime | 中文介绍暂未生成 Ethernaut Challenges Solutions with Foundry - By JohnnyTime |
81 | Solidity |
| MrToph/ethernaut | 中文介绍暂未生成 My solutions to https://ethernaut.openzeppelin.com/ |
69 | TypeScript |
| ethernautdao/challenges | 中文介绍暂未生成 A list of challenges designed for traveling ethernauts |
68 | - |
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。
项目优势与风险
| 技术成熟度 | 创建于 ,最近推送 |
| 社区活跃 | Star 2,346 / Fork 0 / Issue 0(数据支持,可自行核实) |
| 许可证 | 未检测到(需人工确认) |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
快速开始(以仓库 README 为准)
git clone https://github.com/OpenZeppelin/ethernaut.git cd ethernaut # 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。