A POC of a remote process caller using twisted and HTTP Post requests

GallaFrancesco authored 9 days ago
README.md readme 9 days ago
diablo.py wrong error returned 9 days ago
README.md

Remote call process-spawning server

Requires: python, twisted, a client capable of understanding JSON.

Accepted client requests

Only two, based on the "cmd" field of the sent JSON.

Spawn a process

Example JSON: {"cmd": "spawn", "data": "ls -a"}

Returns: a json with status "LAUNCHED" and the process "pid".

Query for process status

Example JSON: {"cmd": "status", "data": 16895} Where 16895 is the process pid obtained with #1.

Returns: a JSON with: status, pid, stdout, stderr, exitcode if process has terminated.

Configuration

$ python3 diablo.py -p [TCP PORT]