v2: ID verification by state, 15 photos/5 albums, 20 quick replies, logo, mobile polish
This commit is contained in:
22
deploy/check-tunnel-ingress-remote.py
Normal file
22
deploy/check-tunnel-ingress-remote.py
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/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 journalctl -u cloudflared --no-pager -n 5 | grep -o 'hostname.*exposedgays' || echo 'not in recent log'",
|
||||
"sudo journalctl -u cloudflared --no-pager -n 3 | grep 'Updated to new configuration' | tail -1 | grep -o 'exposedgays' || echo 'exposedgays not in remote config'",
|
||||
"dig @annabel.ns.cloudflare.com exposedgays.com A +short",
|
||||
"dig @annabel.ns.cloudflare.com www.exposedgays.com A +short",
|
||||
"dig @1.1.1.1 exposedgays.com A +short",
|
||||
"dig @1.1.1.1 www.exposedgays.com A +short",
|
||||
"curl -sSI --max-time 20 https://exposedgays.com/ 2>&1 | head -12",
|
||||
"curl -sSL --max-time 20 https://exposedgays.com/ 2>&1 | head -c 300",
|
||||
]
|
||||
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")[:2500])
|
||||
c.close()
|
||||
Reference in New Issue
Block a user