import http.client,re
for ip,port in [("10.0.0.7",8090),("10.0.0.7",8088)]:
 for path in ["/actuator","/actuator/health","/actuator/env","/actuator/info","/actuator/beans","/actuator/configprops","/actuator/mappings","/actuator/heapdump","/actuator/threaddump","/actuator/loggers","/v2/api-docs","/v3/api-docs","/swagger-ui.html","/swagger-ui/index.html","/login","/css/login.css","/js/login.js"]:
  try:
   c=http.client.HTTPConnection(ip,port,timeout=4)
   c.request("GET",path,headers={"Host":"gitee.com","User-Agent":"Mozilla/5.0"})
   r=c.getresponse();b=r.read(1200);c.close()
   ct=r.getheader("Content-Type") or ""
   t=re.search(rb"<title[^>]*>(.*?)</title>",b,re.S|re.I)
   t=t.group(1).decode("utf-8","replace").strip()[:40] if t else b[:180].decode("utf-8","replace").replace("\n"," ")
   print(ip,port,path,r.status,ct,r.getheader("Location"),t)
  except Exception as e: print(ip,port,path,"X",type(e).__name__)
