viper-7 / deployable-php-codepad Goto Github PK
View Code? Open in Web Editor NEWWeb Application (still alpha!) using Gearman, Jailkit and SilverStripe CMS
Home Page: http://codepad.viper-7.com
Web Application (still alpha!) using Gearman, Jailkit and SilverStripe CMS
Home Page: http://codepad.viper-7.com
I was just playing around with shell_exec (no bad intent, just looking around, looked pretty safe actually, I was impressed). Then I got the bright idea to do the following:
while true; do cat /dev/zero > /dev/null; done
I didn't think that would work but... well.. I couldn't access the site for like 10 minutes. So I'm just telling you here because it's probably something you could fix pretty easy, and it can cause a lot of annoyance (sorry again).
Line #26
https://github.com/Viper-7/Deployable-PHP-Codepad/blob/master/worker/worker.php
$limits = "/bin/bash -c ulimit -c 1024000 -e 19 -f 10 -t 20 -u 10 -x 5; timelimit -T 1 -t 15 ";
shouldnt this be :
$limits = "/bin/bash -c 'ulimit -c 1024000 -e 19 -f 10 -t 20 -u 10 -x 5'; timelimit -T 1 -t 15 ";
??
It appears you dun goofed at /Paste when the request is using GET.
Hey Viper 7,
I'm really interested in this project, but there is no documentation. I'm totally lost on the code and the bash scripts don't work on Windows or all environments.
Can you make this code more accessible. I want to integrate this into a big project. I'm willing to contract out some work too.
Good day,
I created an account, the system said an e-mail verification would be sent out. That was a 3-4 days ago and nothing has been sent. Can you please assist?
Thank you,
derrick
I was testing the codepad on viper-7 and inadvertently locked up the web server when seeing what it was capable of (your readme mentions "And the other, "Worker", which runs inside the jail as the jailexec user, and executes pastes via a mock CGI interface, where security is no problem, and so where the entire request/response transaction, shell environment, php extensions, and even custom php.ini's are all fair game ") via a code snippet similar to the following (in my snippet I was trying to test how your codepad handled fork recursion - apparently it doesn't).
To reproduce, run something similar to this in a paste:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.