v2: ID verification by state, 15 photos/5 albums, 20 quick replies, logo, mobile polish
This commit is contained in:
26
deploy/diag-tunnel.py
Normal file
26
deploy/diag-tunnel.py
Normal file
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env python3
|
||||
import paramiko
|
||||
|
||||
PASS = "Bbt9115xty9176!"
|
||||
c = paramiko.SSHClient()
|
||||
c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
||||
c.connect("10.10.0.10", username="localadministrator", password=PASS, timeout=30)
|
||||
|
||||
cmds = [
|
||||
"sudo systemctl is-active cloudflared",
|
||||
"sudo systemctl status cloudflared --no-pager | head -20",
|
||||
"sudo ls -la /etc/cloudflared/",
|
||||
"sudo ls -la /root/.cloudflared/ 2>/dev/null || echo no_root_cloudflared",
|
||||
"sudo ls -la /home/localadministrator/.cloudflared/ 2>/dev/null || echo no_home_cloudflared",
|
||||
"dig @1.1.1.1 www.exposedgays.com A +short",
|
||||
"dig @1.1.1.1 www.onsethost.com CNAME +short",
|
||||
"dig @1.1.1.1 coolify.onsethost.com CNAME +short",
|
||||
"curl -sSI --max-time 15 https://coolify.onsethost.com/ | head -8",
|
||||
"curl -sSI --max-time 15 https://www.exposedgays.com/ 2>&1 | head -8",
|
||||
]
|
||||
for cmd in cmds:
|
||||
print(f"\n=== {cmd} ===")
|
||||
_, o, e = c.exec_command(cmd, timeout=40)
|
||||
o.channel.recv_exit_status()
|
||||
print((o.read() + e.read()).decode(errors="replace")[:3000])
|
||||
c.close()
|
||||
Reference in New Issue
Block a user