Smart Contracts Hacking: ReEntrancy Attack in Solidity Explained with EASY Examples
Johnny Time
Master Smart Contract Hacking (Free Application): http://smartcontractshacking.com/
Hey guys! Today we will learn about the ReEntrancy Attack which is one of the most destructive attacks in Crypto and DEFI. A reentrancy attack occurs when a function makes an external call to another contract. Then the contract makes a recursive call back to the original function in an attempt to drain funds.
When the contract fails to update its state before sending funds, the attacker can continuously call the withdraw function to drain the contract’s funds. A famous real-world Reentrancy attack is the DAO attack which caused a loss of 60 million US dollars.
We will cover in this video:
- What is ReEntrancy Attack - Simplified with a Diagram.
- Explore a solidity smart contracts that is vulnerable to ReEntrancy attack
- Create an attack simulation environment using Hardhat.
- Design the malicious smart contract to attack the ETH bank.
- Implement the malicious smart contract to attack the ETH bank.
- Deploying and Executing the Attack
- Learn how to write a secure solidity code and defend against ReEntrancy attacks.
Solidity Hacking Ethereum Hacking Smart Contract Auditing Smart Contract Hacking Reentrancy Attack Tutorial Reentrancy Attack Smart Contract Reentrancy Attack Example Reentrancy Attack Explained Reentrancy Attack Simplified Reentrancy Attack Code Reentrancy Attack Diagram Reentrancy Attack Ethereum Reentrancy Attack EVM Reentrancy Attack ERC20 Reentrancy Attack DAO Reentrancy Attack Openzeppelin Reentrancy Attack Crypto The DAO Attack Rari Capital Hack Revest Finance Hack
Github ReEntrancy Attack Repo: https://github.com/RealJohnnyTime/ReEntrancy-Attack
Patreon: https://www.patreon.com/JohnnyTime
Discord: https://johnnytime.xyz/discord
BUSD Tip Jar: 0xFf3d275BB50bB677Ea1f117730B68Cf42651a60f
Timestamps: 00:00 Intro 01:45 ReEntrancy Attack Explained 05:36 ReEntrancy Vulnerable Contract 07:10 Attack Simulation Environment 09:30 Designing the Malicious Smart Contract 10:38 Implementing the Malicious Smart Contract 13:25 Deploying and Executing the Attack 15:00 Defending Against ReEntrancy Attacks 18:08 Outro And Summary
⚠️⚠️⚠️ #ReEntrancy #Attack #SmartContracts #Attack #Cyber #Solidity #Hacks #Explained #Tutorial #HowTo #Guide #DEFI #Tokens ⚠️⚠️⚠️ The content in any of Johnny's Youtube videos shall not be construed as tax, legal, insurance, construction, engineering, health & safety, electrical, financial advice, or other & may be outdated or inaccurate; it is your responsibility to verify all information. I do not provide personal investment advice and I am not a qualified licensed investment advisor. I am just sharing my knowledge and my findings.
Social Media:
Twitter: https://twitter.com/RealJohnnyTime
Instagram: https://www.instagram.com/johnnytime.eth
Music By Yoad Ronen: https://soundcloud.com/yoad-ronen
Until next time, Johnny Time ... https://www.youtube.com/watch?v=5BYg79J4fC0
284735021 Bytes