reentrancy (1) 썸네일형 리스트형 [이더넛] 레벨 10 'Re-entrancy' 풀기 [이더넛] 레벨 10 'Re-entrancy' 풀기 [목표] 타겟 컨트랙트 Re-entrancy의 모든 잔고를 인출하기. 타겟 컨트랙트 코드 // SPDX-License-Identifier: MIT pragma solidity ^0.6.0; import '@openzeppelin/contracts/math/SafeMath.sol'; contract Reentrance { using SafeMath for uint256; mapping(address => uint) public balances; function donate(address _to) public payable { balances[_to] = balances[_to].add(msg.value); } function balanceOf(addres.. 이전 1 다음