diff options
author | Prabhu Ramachandran | 2011-11-12 10:02:57 +0530 |
---|---|---|
committer | Prabhu Ramachandran | 2011-11-12 10:02:57 +0530 |
commit | fb31dcc7693395c9856fb19c3e867fbfa2e9b4f8 (patch) | |
tree | 24b50d4bce7ac5faa5ec6ae98db041766340814b /exam/xmlrpc_clients.py | |
parent | c69bc272c1c3ba02c3f244586b65254036e73de3 (diff) | |
download | online_test-fb31dcc7693395c9856fb19c3e867fbfa2e9b4f8.tar.gz online_test-fb31dcc7693395c9856fb19c3e867fbfa2e9b4f8.tar.bz2 online_test-fb31dcc7693395c9856fb19c3e867fbfa2e9b4f8.zip |
ENH: Running remote code safely via XMLRPC.
Adding a python_server which executes code as nobody safely so users
cannot do too much damage.
Diffstat (limited to 'exam/xmlrpc_clients.py')
-rw-r--r-- | exam/xmlrpc_clients.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/exam/xmlrpc_clients.py b/exam/xmlrpc_clients.py new file mode 100644 index 0000000..1bc5513 --- /dev/null +++ b/exam/xmlrpc_clients.py @@ -0,0 +1,5 @@ +from xmlrpclib import ServerProxy + +# Connect to the python server. +python_server = ServerProxy('http://localhost:8001') +
\ No newline at end of file |