• Stars
    star
    488
  • Rank 90,123 (Top 2 %)
  • Language
    Solidity
  • Created over 3 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Official repository for Paradigm CTF 2021

Paradigm CTF 2021

Installing

Prerequisites

Configuration

You'll need to set the following environment variables:

  • ETH_RPC_URL to a valid Ethereum JSON-RPC endpoint
  • PYTHONPATH to point to mpwn

You'll also need to manually install the following:

  • pip install ecdsa pysha3 web3

Usage

Build everything

./build.sh

Run a challenge

Running a challenge will open a port which users will nc to. For Ethereum related challenges, an additional port must be supplied so that users can connect to the Ethereum node (which forks from mainnet state)

./run.sh babycrypto 31337

On another terminal:

nc localhost 31337

For ETH challenges:

./run.sh bank 31337 8545

When prompted for the hashcash PoW, use the default secret secret:

$ nc localhost 31337
1 - launch new instance
2 - get flag
action? 1
hashcash -mb24 gdrfjbxs = ? secret

your private blockchain has been deployed
it will automatically terminate in 30 minutes
here's some useful information

Running the autosolver

./solve.sh

Add a new challenge

  1. Copy one of the existing challenge directories and rename it to your challenge's name
  2. Edit the info.yaml to add your details
  3. Add your contracts under the public/contracts directory
  4. Add any contracts which are supposed to be private, such as the source code for a rev challenge or a challenge solution under the contracts/private directory
  5. Add it to the build script with the dirname and compiler version
  6. (Optional) Allow it to be auto-solved:
    1. Do either of the following:
      • Add an private/Exploit.sol file with a constructor(Setup setup) constructor that solves the challenge
      • Add a private/solve.py if it requires additional actions to be executed (e.g. babycrypto, vault)
    2. Then add it to the solve script

More Repositories

1

reth

Modular, contributor-friendly and blazing-fast implementation of the Ethereum protocol, in Rust
Rust
3,910
star
2

artemis

A simple, modular, and fast framework for writing MEV bots in Rust.
Rust
2,292
star
3

cryo

cryo is the easiest way to extract blockchain data to parquet, csv, json, or python dataframes
Rust
1,137
star
4

rivet

Developer Wallet & DevTools for Anvil
TypeScript
804
star
5

flux

Graph-based LLM power tool for exploring many completions in parallel.
TypeScript
773
star
6

flood

flood is a load testing tool for benchmarking EVM nodes over RPC
Python
316
star
7

paradigm-ctf-2022

Rust
296
star
8

paradigm-data-portal

a collection of open source crypto datasets for researchers and tool builders
Python
288
star
9

revmc

JIT and AOT compiler for the Ethereum Virtual Machine, built on Revm.
Rust
202
star
10

zk-eth-rng

Secure randomness for Ethereum's execution layer via SNARKs and RANDAO.
Solidity
172
star
11

mev-share-rs

Rust client library for Flashbots MEV-share
Rust
167
star
12

mesc

MESC is a specification for how crypto tools configure their RPC endpoints
Rust
167
star
13

pyrevm

Python wrapper around https://github.com/bluealloy/revm/ using PyO3
Rust
158
star
14

ultimate_evm_tracing_reference

a collection of EVM tracing information for easy reference
156
star
15

etop

like htop for Ethereum and other EVM chains
Rust
143
star
16

jitevm

convert evm bytecode to native machine code and go vroom - just an experiment, probably broken, reach out to [email protected] to contribute / productionize.
Rust
141
star
17

spice

Simple client for extracting data from the Dune Analytics API
Python
131
star
18

tbl

tbl is a swiss army knife for parquet read and write operations
Rust
112
star
19

reth-exex-examples

Collection of ExEx examples built on Reth
Rust
100
star
20

paradigm-ctf-infrastructure

Public infra related to hosting Paradigm CTF
Solidity
98
star
21

sinker

Synchronize Postgres to Elasticsearch
Python
63
star
22

local_reth

Run Reth+Prometheus+Grafana locally via docker-compose
Dockerfile
60
star
23

paradigm-ctf-2023

Solidity
59
star
24

stress4844

Tiny CLI for submitting large calldata transactions to EVM networks to stress test the networking layer. Main motivation: EIP4844blobs.
Rust
56
star
25

fig

Guidelines & best practices for developing Frames: https://www.figma.com/community/file/1367670879509913267/frame-interface-guidelines
52
star
26

paradigm-ctf-2022-teaser

https://rinkeby.etherscan.io/address/0xffb9205c84d0b209c215212a3cdfc50bf1cfb0e0#code
Solidity
40
star
27

op-rs

Rust
37
star
28

how-to-raise-the-gas-limit

Data & code accompanying Paradigm's How to Raise the Gas Limit post.
Jupyter Notebook
33
star
29

foundry-alphanet

Foundry tools for interfacing with Reth Alphanet's bleeding-edge EVM extensions.
Shell
29
star
30

humanizooor

16
star
31

phishing-list

A rapidly-updated list of live phishing domains for consumption by the eth-phishing-detect module
16
star
32

state_growth

Python
15
star
33

homebrew-brew

A homebrew tap
Ruby
12
star
34

.github

7
star
35

evm-inspectors

EVM Execution Hooks.
2
star
36

crypto_colors

Python
1
star