17 lines
651 B
Python
17 lines
651 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 = [
|
|
"curl -sSI --max-time 10 -k -H 'Host: exposedgays.onsethost.com' https://127.0.0.1/ | head -8",
|
|
"curl -sSI --max-time 10 https://exposedgays.onsethost.com/ 2>&1 | head -8",
|
|
"dig @1.1.1.1 exposedgays.onsethost.com A +short",
|
|
]
|
|
for cmd in cmds:
|
|
print(f"\n=== {cmd} ===")
|
|
_, o, e = c.exec_command(cmd, timeout=20)
|
|
o.channel.recv_exit_status()
|
|
print((o.read() + e.read()).decode())
|
|
c.close() |