v2: ID verification by state, 15 photos/5 albums, 20 quick replies, logo, mobile polish
This commit is contained in:
33
deploy/check-dns-full.py
Normal file
33
deploy/check-dns-full.py
Normal file
@@ -0,0 +1,33 @@
|
||||
#!/usr/bin/env python3
|
||||
import paramiko
|
||||
import subprocess
|
||||
|
||||
PASS = "Bbt9115xty9176!"
|
||||
|
||||
print("=== Local dig ===")
|
||||
for q in ["exposedgays.com", "www.exposedgays.com"]:
|
||||
r = subprocess.run(["nslookup", q, "1.1.1.1"], capture_output=True, text=True, timeout=20)
|
||||
print(f"\n{q}:")
|
||||
print(r.stdout or r.stderr)
|
||||
|
||||
c = paramiko.SSHClient()
|
||||
c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
||||
c.connect("10.10.0.10", username="localadministrator", password=PASS, timeout=20)
|
||||
|
||||
cmds = [
|
||||
"dig @1.1.1.1 exposedgays.com NS +short",
|
||||
"dig @1.1.1.1 exposedgays.com A +short",
|
||||
"dig @1.1.1.1 exposedgays.com CNAME +short",
|
||||
"dig @1.1.1.1 www.exposedgays.com A +short",
|
||||
"dig @1.1.1.1 www.exposedgays.com CNAME +short",
|
||||
"curl -sSI https://exposedgays.com/ | head -15",
|
||||
"curl -sSL https://exposedgays.com/ | head -c 400",
|
||||
"curl -sSI -H 'Host: exposedgays.com' https://127.0.0.1/ -k | head -10",
|
||||
]
|
||||
for cmd in cmds:
|
||||
print(f"\n=== {cmd} ===")
|
||||
_, o, e = c.exec_command(cmd, timeout=30)
|
||||
o.channel.recv_exit_status()
|
||||
print((o.read() + e.read()).decode(errors="replace"))
|
||||
|
||||
c.close()
|
||||
Reference in New Issue
Block a user