vnc - jhu-information-security-institute/NwSec GitHub Wiki
Use x11vnc for Kali (it just works)
Install
$ sudo apt-get install x11vnc
$ sudo x11vnc -storepasswd <YOURPASSWORDHERE> /etc/x11vnc.pass
- 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
$ sudo systemctl daemon-reload
$ sudo systemctl enable x11vnc
$ sudo systemctl start x11vnc
Connect
- get the ip address of the server
- Use the vnc password you setup, ip address, and default port (either :0 or :5900) with your VNC client of choice (RealVNC works well)