8000 GitHub - XieJunhua/openspace_ctf
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

XieJunhua/openspace_ctf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Try to Hack Vault

Read the smart contract Vault.sol, try to steal all eth from the vault.

You can write a hacker contract and add some code to pass the forge test .

Tips

you need understand following knowledge points:

  1. reentrance
  2. ABI encoding
  3. delegatecall

Anvil

$ anvil

Deploy

forge script script/Vault.s.sol --rpc-url http://127.0.0.1:8545 --broadcast

test

forge test -vvv

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 100.0%
0