Example #1
0
File: app.py Project: qq53/trace
def input_GET():
    d = request.form["data"]
    with open("subin", "a") as f:
        f.write(d)

    pid = os.fork()
    if pid == 0:
        kill_task()
        elf.trace_elf(get_cmd())
    else:
        return ""
Example #2
0
File: app.py Project: qq53/trace
def start_GET():
    pid = os.fork()
    if pid == 0:
        elf.trace_elf(get_cmd())
    else:
        return ""