Giter Club home page Giter Club logo

viasocket's Introduction

Introduction

  • It is docker based sandbox to run untrusted Javascript, PHP, Python scripts.
  • Currently support Python-3.8, Php-7.4, Node v14.0.0.

Installation

  • Navigate to multilang directory and execute setup.sh i.e run ./setup.sh

  • Add current user to docker group -:

    sudo groupadd docker
    sudo usermod -aG docker $(whoami) 
    newgrp docker 
    
  • Enable cgroup swapping,

  • Start server by node server.js

    • If everything has been setup correctly, you will see the following message on your terminal
      Running at http://0.0.0.0:8000
      

Supported OS

  • Ubuntu 16.04, 18.04 LTS

API Usage Examples

{
 "code":"a=$a  \n a; \n",
 "lang":"python",
 "vars":{"$a":2,"$b":3}
 }
{
   	"id":"5",
   	"vars":["$a"],
   	"code":"<?php \n$value=$a; \n $a;?>",
   	"lang":"php"
   
}
{
    "id":"5",
    "vars":{"$a":2}	
}

viasocket

viasocket's People

Contributors

mayank0802 avatar mohitmg25 avatar

Watchers

James Cloos 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.