vnc - jhu-information-security-institute/NwSec GitHub Wiki

Use x11vnc for Kali (it just works)

Install

  1. $ sudo apt-get install x11vnc
  2. $ sudo x11vnc -storepasswd <YOURPASSWORDHERE> /etc/x11vnc.pass
  3. Create the /etc/systemd/system/x11vnc.service file with:
    [Unit]
    Description="x11vnc"
    Requires=display-manager.service
    After=display-manager.service
    
    [Service]
    ExecStart=/usr/bin/x11vnc -xkb -noxrecord -noxfixes -noxdamage -display :0 -auth guess -rfbauth /etc/x11vnc.pass
    Restart=on-failure
    Restart-sec=2
    
    [Install]
    WantedBy=multi-user.target
    
  4. $ sudo systemctl daemon-reload
  5. $ sudo systemctl enable x11vnc
  6. $ sudo systemctl start x11vnc

Connect

  1. get the ip address of the server
  2. Use the vnc password you setup, ip address, and default port (either :0 or :5900) with your VNC client of choice (RealVNC works well)