Giter Site home page Giter Site logo

sandbox-1's Introduction

sandbox

<<<<<<< HEAD AppSec-13-Assignment-1

AppSec Sandbox

91aea7713960700a70a86f7a355f2416ecf033f1

Author: Dominic Spinosa Class: Application Security (Fall 2013) Instructor: Justin Cappos FInal Modified Date: 9/17/13

Turing-Complete Sandbox

Functionality and Purpose:

This application reads in a Python script line-by-line and executes each
line separately while comparing called functions against a determined
whitelist, which act as a "safe" subset of the Python language. This whitelist
is enforced by removing all other functions from the local built-in function
list, thus rendering any functions that do not reside within the whitelist
as undefined/prohibited. This sandbox supports calculations and mathematical
operations within the provided (input) program and also supports inherent
Python output (preceded by an string of "ERROR:"). The stack and incurred
data types are memory-restricted as well to avoid potential overflow
vulnerabilities.

Environment:

This application has been tested and is able to execute within the confines
of an Ubuntu 12.X OS platform (specifically, a VM).

Required Files:

"sandbox.py" Python script
user's Python script(s)

Execution (from the command line):

python sandbox.py <Python script>

Examples:

Example Python scripts have been provided within the GitHub repository
in order to demonstrate the execution of this sandbox application. These
example scripts are as follows:

	counting.py
	fibonacci.py

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.