"""Deep probe: find Nginx configs and deploy robots.txt correctly""" import paramiko import time JD_HOST = "111.228.37.165" JD_USER = "root" JD_PASS = "Liudecai110" LAB_HOST = "216.144.233.14" LAB_USER = "root" LAB_PASS = "Kt9V72Tx2c48ChikKU" RN_HOST = "107.174.186.162" RN_USER = "root" RN_PASS = "liudapao2026" jd = paramiko.SSHClient() jd.set_missing_host_key_policy(paramiko.AutoAddPolicy()) jd.connect(JD_HOST, port=22, username=JD_USER, password=JD_PASS, timeout=20, banner_timeout=60, allow_agent=False, look_for_keys=False) # === gfil-lab.com (216.144.233.14) === print("=== gfil-lab.com (216.144.233.14) ===") cmd = f"""sshpass -p '{LAB_PASS}' ssh -o StrictHostKeyChecking=no {LAB_USER}@{LAB_HOST} ' echo "--- All Nginx configs ---" ls -la /etc/nginx/sites-enabled/ 2>/dev/null ls -la /etc/nginx/conf.d/ 2>/dev/null echo "--- Full Nginx config ---" cat /etc/nginx/sites-enabled/default 2>/dev/null | head -50 cat /etc/nginx/conf.d/default.conf 2>/dev/null | head -50 echo "--- Find gfil-lab server block ---" grep -rl "gfil-lab\\|server_name" /etc/nginx/ 2>/dev/null echo "--- Nginx test ---" nginx -T 2>/dev/null | grep -A3 "server_name" | head -30 '""" stdin, stdout, stderr = jd.exec_command(cmd, timeout=30) print(stdout.read().decode()[:3000]) # === gfil-intel.xyz (RackNerd) === print("\n=== gfil-intel.xyz (RackNerd) ===") cmd2 = f"""sshpass -p '{RN_PASS}' ssh -o StrictHostKeyChecking=no {RN_USER}@{RN_HOST} ' echo "--- gfil-intel Nginx config ---" cat /etc/nginx/sites-available/gfil-mask 2>/dev/null | head -60 echo "--- Sites enabled ---" ls -la /etc/nginx/sites-enabled/ 2>/dev/null echo "--- Check if gfil-mask is enabled ---" ls -la /etc/nginx/sites-enabled/gfil-mask 2>/dev/null '""" stdin, stdout, stderr = jd.exec_command(cmd2, timeout=30) print(stdout.read().decode()[:3000]) jd.close()