Skip to content

Ivan-on-Tech-Academy/Re-Entrancy_Sol_0.5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Re-Entrancy_Sol_0.5

Victim and Attacker contracts for re-entrancy attack testing.

Deployment

  • Depoly Victim.sol and copy the contract address;
  • Deploy Exploit.sol by passing "victim.sol address" to the constructor;

Attack

  • Deposit ether to Victim with an address != address(Exploit.sol);
  • Deposit ether to Victim by calling deposit () in Exploit.sol;
  • Call function attack ()

Withdraw stolen funds

  • Withdraw stolen funds by calling withdrawFunds () in Exploit.sol

About

Victim and Attacker contracts for re-entrancy attack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published