Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zobront/paradigm-ctf
template for efficient paradigm ctf testing & scripts
https://github.com/zobront/paradigm-ctf
Last synced: 2 months ago
JSON representation
template for efficient paradigm ctf testing & scripts
- Host: GitHub
- URL: https://github.com/zobront/paradigm-ctf
- Owner: zobront
- Created: 2022-08-19T19:34:37.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-18T03:38:52.000Z (over 1 year ago)
- Last Synced: 2024-08-04T01:02:07.797Z (6 months ago)
- Language: Solidity
- Size: 1.63 MB
- Stars: 154
- Watchers: 1
- Forks: 33
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-foundry - Paradigm CTF Template - Template for efficient paradigm ctf testing & scripts. (Tools)
README
# Paradigm CTF Setup
This is a template for the Spearbit Rearguard team (or anyone else who finds it) to use for Paradigm CTF 2022.
## Set Up
- Create a .env file in the root directory with `PARADIGM_RPC_URL` and `PRIVATE_KEY` (these will be used for submission scripts)
- Add your Paradigm RPC to the `foundry.toml` file (this will be used to fork for tests)## Running Challenges
- Create a folder in /src with the contracts for the challenge.
- Copy the `Template.t.sol` file in /test and set it up for the challenge. Link in needed contracts (including mocks). It's already set up to fork the Paradigm network at the start of the test.
- Write exploit in the test (after `vm.createSelectFork(vm.rpcUrl("paradigm"));`). Use cast commands in terminal or console.logs in the test to aid as needed.
- When the test succeeds, copy everything over to `script/Exploitoor.s.sol`, in between `startBroadcast()` and `stopBroadcast()`.
- Call `bash exploit.sh` to run the script on the Paradigm network with your private key.