Skip to content

SecurFi/PoC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PoC

This repository contains serveral sample attack transactions. We highly recommend you to start hacking from this repository.

After local debugging of PoC, you can generate the proof of exploit locally using zkProver or do it online on the SecurFi Online Tool.

If you prefer to generate the proof of exploit locally, please follow the steps below.

1. requirements

2. PoC

Write the PoC using the provided template.

3. debug locally

forge test -vv

4. generate the proof of exploit

zkProver evm -r https://rpc.flashbots.net/ src/Exploit.sol

Additionally, you can generate sample proofs of exploits to view more details on Secur.Fi.

  • SushiRouter
zkProver evm -r https://rpc.flashbots.net -b 17007841 src/SushiRouter/SushiRouterExploit.sol
  • FuseProtocol
zkProver evm -r https://rpc.flashbots.net/ -b 14684684 src/fuseProtocol/FuseProtocolExploit.sol
  • Anyswap
zkProver evm -r https://rpc.flashbots.net/ -b 14037236 src/Anyswap/AnyswapExploit.sol