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

GallaFrancesco authored on 10 Jun
README.md readme 5 months ago
diablo.py wrong error returned 5 months ago

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.


$ python3 diablo.py -p [TCP PORT]