🌴
Ethernaut-solution 20. Denial
Ethernaut-solution
20. Denial
-
deploy DenialAttack.sol
> contract
n {methods: {…}, abi: Array(6), address: '0x084d1e5F01b1bf2ad05080D1f5843237BfeD49Cc', transactionHash: undefined, constructor: ƒ, …}
- paste DenialAttack address //DenialAttack be WithdrawPartner, always assert error if you try to withdraw fund
contract.setWithdrawPartner("0x97EB3A7dcd84b417317045af7e6351c4750AD6e5")
- contract.withdraw() //partner.call{value:amountToSend}(""); gonna foeward all of the remaining gas for this trnasaction to execute this function
Discussion