We have several dozen login servers servicing thousands of users running TigerVNC 1.8.0. Over time some users tend to accumulate several, or even many, vnc servers. I'd like to quickly enumerate vnc servers and their owners so I can audit those with many sessions, and provide a useful "listing" service to users before they start a new vnc server.
My initial thought was to do a port scan. Our VNC server, upon connection, returns:
RFB 003.008
. This lets me know that a VNC server is listening on that port, but doesn't give me any indication of who the owner is.
Is there any way to interrogate this connection to identify who the owner is, without explicitly connecting to each login server and looking either for Xvnc processes or open port information?
question from:
https://stackoverflow.com/questions/65892890/enumerating-vnc-sessions-and-owners-across-numerous-servers 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…