douyinWEB/scripts/_probe_new_vps6.py
eric d409e416da Ship physical dual-edge stack, Studio CDP live metrics, and ops tooling.
Capture Neko/WG/network hubs, Studio viewer charts, physical deploy docs, and one-shot scripts so VPS vs physical can be toggled later without losing WIP.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-04 22:42:40 -05:00

20 lines
983 B
Python

# -*- 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("192.227.152.110", 22, "root", "Leaf448772566", timeout=30, allow_agent=False, look_for_keys=False)
cmds = [
"readlink /proc/3874214/exe; tr '\\0' ' ' < /proc/3874214/cmdline; echo; ls -l /proc/3874214/cwd; cat /proc/3874214/environ | tr '\\0' '\\n' | grep -iE 'prefix|conf' || true",
"nginx -V 2>&1 | tr ' ' '\\n' | grep -E prefix|conf",
"ls /www/wwwroot 2>/dev/null | head -30; ls /www/server/nginx/conf/conf.d 2>/dev/null | head; ls /www/server/panel/vhost/nginx 2>/dev/null | head",
"ls /usr/local/nginx/conf/vhost 2>/dev/null | head; ls /opt/1panel/www 2>/dev/null | head",
]
for cmd in cmds:
print("\n===== ", cmd[:100], " =====")
_, o, e = c.exec_command(cmd, timeout=15)
print((o.read() + e.read()).decode("utf-8", "replace")[-5000:])
c.close()