blockchain15 [Ethernaut] Magic Number 풀이 Instance// SPDX-License-Identifier: MITpragma solidity ^0.8.0;contract MagicNum { address public solver; constructor() {} function setSolver(address _solver) public { solver = _solver; } /* ____________/\\\_______/\\\\\\\\\_____ __________/\\\\\_____/\\\///////\\\___ ________/\\\/\\\____\///______\//\\\__ ______/\\\/\/\\\______________.. 2025. 1. 18. [Ethernaut] GateKeeper Two 풀이 Instance// SPDX-License-Identifier: MITpragma solidity ^0.8.0;contract GatekeeperTwo { address public entrant; modifier gateOne() { require(msg.sender != tx.origin); _; } modifier gateTwo() { uint256 x; assembly { x := extcodesize(caller()) } require(x == 0); _; } modifier gateThree(bytes8 _gateKey) { require(ui.. 2025. 1. 18. [Ethernaut] Gatekeeper One 풀이 Instance// SPDX-License-Identifier: MITpragma solidity ^0.8.0;contract GatekeeperOne { address public entrant; modifier gateOne() { require(msg.sender != tx.origin); _; } modifier gateTwo() { require(gasleft() % 8191 == 0); _; } modifier gateThree(bytes8 _gateKey) { require(uint32(uint64(_gateKey)) == uint16(uint64(_gateKey)), "GatekeeperOne: .. 2025. 1. 18. 이전 1 2 3 4 다음