#!/usr/bin/env python3 import paramiko PASS = "Bbt9115xty9176!" for host, user in [("10.10.0.11", "root"), ("10.10.0.10", "localadministrator")]: print(f"\n######## {host} ########") c = paramiko.SSHClient() c.set_missing_host_key_policy(paramiko.AutoAddPolicy()) try: c.connect(host, username=user, password=PASS, timeout=20) except Exception as ex: print("connect failed", ex) continue cmds = [ "ss -tlnp | grep -E ':80 |:443 ' || true", "curl -sSI --max-time 10 -H 'Host: thepinkpulse.com' http://127.0.0.1/ | head -6", "curl -sSI --max-time 10 -H 'Host: exposedgays.com' http://127.0.0.1/ | head -6", "curl -sSI --max-time 10 -H 'Host: avbeat.com' http://127.0.0.1/ | head -6", "curl -sSI --max-time 10 -H 'Host: exposedgays.onsethost.com' http://127.0.0.1/ | head -6", ] 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")[:1500]) c.close()