Skip to content

vineelsai26/RCE

Repository files navigation

RCE

RCE is a http API in Go with which you can run different programs written in different languages

Getting Started

With Docker

  • From Docker Hub
docker run -it -p 3000:3000 -v "/var/run/docker.sock:/var/run/docker.sock" -v "/usr/src/app/runs:/usr/src/app/runs" vineelsai/rce
  • From GHCR
docker run -it -p 3000:3000 -v "/var/run/docker.sock:/var/run/docker.sock" -v "/usr/src/app/runs:/usr/src/app/runs" ghcr.io/vineelsai26/rce:latest

Note: Both images are the same

From command line

  • Download the latest Binary from Releases Page

  • Pull the required docker images

./rce-linux-amd64.bin --pull-images
  • And run it with the command
./rce-linux-amd64.bin

Usage

{ "code": "print(\"Hello World\")", "language": "python" }
  • The code will get executed and return a JSON object
{ "output": "Hello World" }

Supported Languages

  • python
  • c
  • cpp

Help

  • For help just run to know all the things you can do
./rce-linux-amd64.bin --help

About

Remote Code Execution engine in Go

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •