[Ethernaut] 2. Fallout
1. 문제 아래의 컨트랙트의 소유권을 탈취해라. // SPDX-License-Identifier: MIT pragma solidity ^0.6.0; import 'openzeppelin-contracts-06/math/SafeMath.sol'; contract Fallout { using SafeMath for uint256; mapping (address => uint) allocations; address payable public owner; /* constructor */ function Fal1out() public payable { owner = msg.sender; allocations[owner] = msg.value; } modifier onlyOwner { require( msg.sen..
Solidity/Hacking
2024. 1. 5. 09:43