v2: ID verification by state, 15 photos/5 albums, 20 quick replies, logo, mobile polish
This commit is contained in:
19
deploy/compare-working-site.py
Normal file
19
deploy/compare-working-site.py
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/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)
|
||||
for domain in ["thepinkpulse.com", "freerangefruit.com", "justtworoommates.com"]:
|
||||
cmds = [
|
||||
f"dig @1.1.1.1 {domain} NS +short",
|
||||
f"dig @1.1.1.1 {domain} A +short",
|
||||
f"dig @1.1.1.1 www.{domain} CNAME +short",
|
||||
]
|
||||
print(f"\n--- {domain} ---")
|
||||
for cmd in cmds:
|
||||
_, o, e = c.exec_command(cmd, timeout=15)
|
||||
o.channel.recv_exit_status()
|
||||
out = (o.read() + e.read()).decode().strip()
|
||||
print(cmd.split()[-2], "->", out or "(empty)")
|
||||
c.close()
|
||||
Reference in New Issue
Block a user