文件名称:ethernaut-ctf:Ethernaut CTF解决方案(https
文件大小:38KB
文件格式:ZIP
更新时间:2024-04-19 17:54:38
security ethereum smart-contracts solidity web3
醚瑙ctf
基于
您可以在notonlyowner.com上找到
安装依赖项
运行npm install来安装Ganache-cli和Truffle
用法
使用npx ganache-cli --port 7545在端口7545上启动ganache-cli
将合同部署到运行npx truffle migrate本地区块链
使用npx truffle exec exploits/
【文件预览】:
ethernaut-ctf-master
----.gitattributes(32B)
----migrations()
--------1_initial_migration.js(129B)
--------2_deploy_contracts.js(2KB)
----contracts()
--------ForceAttack.sol(247B)
--------Elevator.sol(373B)
--------Force.sol(44B)
--------MagicNum.sol(657B)
--------Vault.sol(336B)
--------Delegation.sol(371B)
--------CoinFlip.sol(899B)
--------ReentranceAttack.sol(387B)
--------Reentrance.sol(579B)
--------CoinFlipAttack.sol(733B)
--------PreservationAttack.sol(266B)
--------King.sol(430B)
--------Fallback.sol(1KB)
--------Telephone.sol(277B)
--------TelephoneAttack.sol(316B)
--------Privacy.sol(868B)
--------Locked.sol(852B)
--------Preservation.sol(1KB)
--------KingAttack.sol(547B)
--------Fallout.sol(863B)
--------open-zeppelin()
--------Delegate.sol(215B)
--------NaughtCoin.sol(972B)
--------Token.sol(572B)
--------ElevatorAttack.sol(746B)
--------Migrations.sol(515B)
----LICENSE(1KB)
----test()
--------preservation.exploit.js(2KB)
--------naughtcoin.exploit.js(941B)
--------privacy.exploit.js(958B)
--------locked.exploit.js(595B)
----truffle-config.js(154B)
----README.md(855B)
----.gitignore(19B)
----exploits()
--------elevator.exploit.js(790B)
--------fallback.exploit.js(2KB)
--------telephone.exploit.js(2KB)
--------coinflip.exploit.js(1KB)
--------force.exploit.js(1KB)
--------vault.exploit.js(1KB)
--------reentrance.exploit.js(2KB)
--------king.exploit.js(2KB)
--------delegation.exploit.js(2KB)
--------fallout.exploit.js(1KB)
--------token.exploit.js(672B)
----package-lock.json(24KB)
----package.json(716B)