Code Monkey home page Code Monkey logo

remote-code-execution-as-a-service's Introduction

REMOTE CODE EXECUTION AS A SERVICE

This repository contains the two stages of the RCE as a Service challenge for the LosFuzzys Glacier CTF 2022.

The contents of ./stage1 and ./stage2 are almost identical. There are minor differences in the source code (Program.cs) in order to make stage 2 harder and the Dockerfiles specify different names and ports so that both stages can be run simultaneously.

The project itself is a .NET6 Minimal Web API. One of its endpoints compiles user-provided code on-the-fly.

I've written extensively about it here and here, but I strongly suggest to only read those articles after trying your hands on the challenge.

Installation

With .NET6 being cross-platform, you should be able to compile the binaries yourself with the appropriate tooling installed.

However, containerizing the applications with the help of the provided Dockerfiles is the recommended way. Have a look at the build_and_start.sh and build_and_start_stage2.sh scripts for a rough idea.

In order to verify connectivity, you can send a GET request to the root path of the application (stage 1):

curl --request GET \
  --url http://localhost:8001/

remote-code-execution-as-a-service's People

Contributors

thegebirge avatar

Watchers

 avatar

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.