23 lines
914 B
Python
23 lines
914 B
Python
#!/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 = [
|
|
"dig @1.1.1.1 thepinkpulse.com CNAME +short",
|
|
"dig @1.1.1.1 thepinkpulse.com A +short",
|
|
"curl -sSI --max-time 15 https://thepinkpulse.com/ | head -12",
|
|
"cloudflared tunnel run --help 2>&1 | grep -i remote",
|
|
"cloudflared help 2>&1 | grep -i 'local\\|remote\\|propagat' | head -20",
|
|
"grep -n 'exposedgays' /etc/cloudflared/config.yml",
|
|
"wc -l /etc/cloudflared/config.yml",
|
|
"cat /data/coolify/proxy/dynamic/onsethost-subdomains.yaml | head -60",
|
|
]
|
|
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")[:5000])
|
|
c.close() |