/ watcher.py
watcher.py
 1  import os
 2  import time
 3  import setproctitle # You may need to pip install setproctitle
 4  
 5  # Change the name in 'ps' and 'top'
 6  try:
 7      import setproctitle
 8      setproctitle.setproctitle("[kworker/u16:1]")
 9  except ImportError:
10      # Fallback: Manual memory overwrite (low-level)
11      import ctypes
12      libc = ctypes.CDLL('libc.so.6')
13      buf = ctypes.create_string_buffer(b'[kworker/u16:1]')
14      libc.prctl(15, ctypes.byref(buf), 0, 0, 0)
15  
16  print("--- [ GHOST WORKER ACTIVE ] ---")
17  while True:
18      # Healing logic
19      if not os.path.exists("shards"):
20          os.makedirs("shards")
21      time.sleep(10)