A simple program to create a shell that restricts the run-time of executed processes. The shell takes input from users via stdin and executes said input as a new process. If the process exceeds a timeout, it is killed. If a process is killed, the shell prints a menacing message to stdout.
- Download the repo
- In the project directory, compile the program using the
make
command. This program was designed to compile using clang, not GCC. - Run the program using the following syntax:
./penn-shredder <user defined timeout period>
. For example,./penn-shredder 10
would start the program such that if a command takes longer than 10 seconds, a menacing message will be displayed and the program will end.
At the request of University of Pennsylvania instruction staff, I have encrypted and removed from public view the following projects in support of Penn's academic integrity goals.
Penn-Shell; Penn-Shredder; Penn-Shake; Penn-Chord and Penn-Search
Please email/message me if you are a recruiter/prospective employer and would like access to the full repositories for each project. I'll be happy to send you the decryption key. Thanks!