Ethernaut 闯关笔记 第2关 Fallback
待攻击的合约代码: // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract Fallback { mapping(address => uint256) public contributions; address public owner; constructor() { owner = msg.sender; contributions[msg.sender] = 1000 * (1 ether); } modifier onlyOwner() { require(msg.sender == o..
更多Ethernaut 闯关笔记 第1关 Hello Ethernaut
点击 get new instance ,按 F12 键启动审查元素,点击“Console”,在其中按照题目要求输入指令,逐步解决谜题 player '0x15AfABaA426334636008Bc15805760716E8b5c5E' getBalance(player) Promise {<pending>} [[Prototype]]: Promise [[PromiseState]]: "fulfilled" [[PromiseResult]]: "6.126630930601673173" ethernaut n {methods: {…}, ab..
更多