paradigmxyz / paradigm-ctf-2022

Puzzles used in the 2022 Paradigm CTF

Home Page:https://ctf.paradigm.xyz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Paradigm CTF 2022

Installing

Prerequisites

  • Docker
  • mpwn
  • Python 3

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 yaml ecdsa pysha3 web3 cairo-lang

Usage

Build everything

./build.sh

Run a challenge

Running a challenge will open a port which users will nc to. For Ethereum/Starknet related challenges, an additional port must be supplied so that users can connect to the Ethereum/Starknet node

./run.sh random 31337 8545

On another terminal:

nc localhost 31337

When prompted for the ticket, use any value

$ nc localhost 31337
1 - launch new instance
2 - kill instance
3 - get flag
action? 1
ticket please: ticket

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

Running the autosolver

./solve.sh

About

Puzzles used in the 2022 Paradigm CTF

https://ctf.paradigm.xyz


Languages

Language:Rust 40.5%Language:Cairo 22.9%Language:Solidity 16.5%Language:Python 7.3%Language:JavaScript 5.1%Language:TypeScript 4.9%Language:Dockerfile 1.6%Language:Shell 1.2%Language:Makefile 0.0%