#!/usr/bin/env python3 import paramiko PASS = "Bbt9115xty9176!" for src, host, user in [ ("supabase", "10.10.0.11", "localadministrator"), ("coolify", "10.10.0.10", "localadministrator"), ]: print(f"\n######## {src} ########") c = paramiko.SSHClient() c.set_missing_host_key_policy(paramiko.AutoAddPolicy()) c.connect(host, username=user, password=PASS, timeout=20) cmds = [ "sudo ss -tlnp | grep ':80 '", "docker ps --format 'table {{.Names}}\t{{.Ports}}' | grep -E '80|443|kong|proxy|nginx|traefik' ", "curl -sSI --max-time 10 -H 'Host: thepinkpulse.com' http://10.10.0.11/ | head -6", "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' -k https://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")[:2000]) c.close()