# -*- coding: utf-8 -*- import sys import paramiko sys.stdout.reconfigure(encoding="utf-8", errors="replace") c = paramiko.SSHClient() c.set_missing_host_key_policy(paramiko.AutoAddPolicy()) c.connect("108.174.50.68", 22, "root", "Xiao4669805", timeout=45, allow_agent=False, look_for_keys=False) # upload auth.py quickly s = c.open_sftp() s.put(r"c:\Users\admin\Desktop\douyinWEB\backend\app\auth.py", "/opt/douyinWEB/backend/app/auth.py") s.close() cmd = r""" systemctl restart douyinweb-api P=/opt/douyinWEB/backend/data/neko/profiles/1 echo '=== host profile ===' find "$P/Default" -maxdepth 3 -type d 2>/dev/null | head -50 echo '=== TM ===' ls -la "$P/Default/Extensions/dhdgffkkebhmkfjojejmpbldmpobfkfo" 2>/dev/null | head ls -la "$P/Default/Local Extension Settings/dhdgffkkebhmkfjojejmpbldmpobfkfo" 2>/dev/null | head grep -a -c 'YouTube Studio Auto Dismiss' "$P/Default/Local Extension Settings/dhdgffkkebhmkfjojejmpbldmpobfkfo/"* 2>/dev/null || echo 'no script bytes yet' python3 - <<'PY' import json from pathlib import Path p=Path('/opt/douyinWEB/backend/data/neko/profiles/1/Default/Preferences') if p.exists(): d=json.loads(p.read_text(encoding='utf-8', errors='replace')) s=(d.get('extensions') or {}).get('settings') or {} tm=s.get('dhdgffkkebhmkfjojejmpbldmpobfkfo') print('tm', bool(tm), 'state', (tm or {}).get('state'), 'path', (tm or {}).get('path')) print('devmode', ((d.get('extensions') or {}).get('ui') or {}).get('developer_mode')) else: print('no prefs') PY echo '=== container ===' docker exec douyinweb-neko-1 sh -c 'ls /home/neko/.config/google-chrome/Default/Extensions 2>/dev/null; ls /home/neko/.config/google-chrome/Default/Local\ Extension\ Settings 2>/dev/null; grep -aR -l "YouTube Studio Auto Dismiss" /home/neko/.config/google-chrome/Default/Local\ Extension\ Settings 2>/dev/null | head' """ _i, o, e = c.exec_command(cmd, timeout=90) print(o.read().decode("utf-8", "replace")) print(e.read().decode("utf-8", "replace")[:500]) c.close()