Giter Club home page Giter Club logo

paradigm-ctf-2022's Introduction

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

paradigm-ctf-2022's People

Contributors

samczsun-paradigm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

paradigm-ctf-2022's Issues

[Workaround]Docker image "gcr.io/paradigmxyz/ctf/eth-base" does not exist anymore

Looks like the image gcr.io/paradigmxyz/ctf/eth-base:latest doesn't exist anymore and docker build would fail.

Dockerfile:1
--------------------
   1 | >>> FROM gcr.io/paradigmxyz/ctf/eth-base:latest
   2 |     
   3 |     COPY deploy/ /home/ctf/
--------------------
ERROR: failed to solve: gcr.io/paradigmxyz/ctf/eth-base:latest: gcr.io/paradigmxyz/ctf/eth-base:latest: not found

Workaround is to find a backup image from Docker - anjia0532/paradigmxyz.ctf.eth-base and replace that in Dockerfile.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.