v2: ID verification by state, 15 photos/5 albums, 20 quick replies, logo, mobile polish
This commit is contained in:
16
deploy/_test_origin_hosts.py
Normal file
16
deploy/_test_origin_hosts.py
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/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)
|
||||
hosts = ["gitea.onsethost.com", "thepinkpulse.com", "exposedgays.com", "exposedgays.onsethost.com"]
|
||||
for h in hosts:
|
||||
for scheme in ["http", "https"]:
|
||||
cmd = f"curl -k -sSI --max-time 8 -H 'Host: {h}' {scheme}://10.10.0.11:80/ | head -3"
|
||||
_, o, e = c.exec_command(cmd, timeout=20)
|
||||
o.channel.recv_exit_status()
|
||||
out = (o.read() + e.read()).decode().strip().replace("\n", " | ")
|
||||
print(f"{scheme:5} {h:30} -> {out}")
|
||||
c.close()
|
||||
Reference in New Issue
Block a user