23 lines
882 B
Python
23 lines
882 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 @ns71.domaincontrol.com www.exposedgays.com ANY +noall +answer",
|
|
"dig @ns71.domaincontrol.com exposedgays.com ANY +noall +answer",
|
|
"dig +trace www.exposedgays.com A 2>&1 | tail -20",
|
|
"dig 03079a26-f14c-4622-b463-ba54a24f7472.cfargotunnel.com A +short",
|
|
"getent hosts www.exposedgays.com",
|
|
"resolvectl query www.exposedgays.com 2>/dev/null || systemd-resolve --status www.exposedgays.com 2>/dev/null | head -20",
|
|
]
|
|
for cmd in cmds:
|
|
print(f"\n=== {cmd} ===")
|
|
_, o, e = c.exec_command(cmd, timeout=60)
|
|
o.channel.recv_exit_status()
|
|
print((o.read() + e.read()).decode(errors="replace")[:4000])
|
|
|
|
c.close() |