Forcefully Send Ether with selfdestruct | Hack Solidity (0.6)
Channel: Smart Contract Programmer
Date: 2020-07-01

Did you know that there is a hack to forcefully send Ether to any contract, even if the receiving contract does not have any payable fallback or payable function? In this video, I will explain how this can be done and also show you how to protect your contract from this hack.

#Solidity #selfdestruct #hack

Code: https://solidity-by-example.org/hacks/self-destruct/
References
https://github.com/ethereumbook/ethereumbook/blob/develop/09smart-contracts-security.asciidoc
https://solidity-05.ethernaut.openzeppelin.com/

Remix IDE: http://remix.ethereum.org
Solidity: https://solidity.readthedocs.io

Follow on Twitter: @ProgrammerSmart https://twitter.com/ProgrammerSmart
Join me on Discord: https://discord.gg/Ny8sPaj
Website: https://smartcontractprogrammer.com