jeudi 10 septembre 2015

Protection from dangerous code

As you know, there are a lot of testing programs for programming contests such as ACM. Such testing programs get task source code from participants compile and run it. Then they perform some tests, to to determine whether the solution was correct. There are usually some time and memory limits in tasks.

My purpose is to implement a very simple analogue (in Windows). The question is - how to protect server from execution of dangerous code such as access to files on server, external URLs usage, assembler usage (maybe), etc... All that I could find - such programs use some debugger while execution of possibly dangerous code.

How can I protect such system in Windows? Some real examples would be great! I use Python and Visual C++ 2010 compiler, but I think it is not really important. Some WinAPI is needed apparently.

I would be very grateful for any help!

Aucun commentaire:

Enregistrer un commentaire