Install NoVNC:

sudo apt install -y novnc x11vnc

(10 mins on RPi 0 W, 2 mins on RPi 0 2)

Start x11vnc:

x11vnc -display :2 -autoport -nopw -bg -xkb -ncache -ncache_cr -quiet -forever

(or change the :2 to :1 for CLI via web)

On Raspberry Pi Zero 2, I used ":0".

Start NoVNC:

/usr/share/novnc/utils/launch.sh --listen 8081 --vnc localhost:5900

(where 5900 is the port output by the previous command to start x11vnc)

After that, local (RNDIS) machine can access via this URL:

http://kali:8081/vnc.html?host=kali&port=8081

Raspberry Pi Zero 2 NoVNC Instructions:

  1.  Install everything
  2. Start X11VNC ("The VNC desktop is: raspberrypi:0 PORT=5900" indicates success starting x11vnc)
  3. Start NoVNC

Make sure to follow the chain of logic on this.

First, we start a VNC server.  This VNC server listens on Port 5900.

Then we start NoVNC.  This talks to the VNC server that's listening on Port 5900.

After starting NoVNC, you should see something like this screenshot:

NoVNC for Raspberry Pi 0 2 W

NoVNC will attempt to connect to the VNC server running on Port 5900.

Open VNC in Browser

Open your phone's browser (or any other device other than your Raspberry Pi).

Then, just paste the URL you see in the Terminal into your browser.  The URL should looks something like this:

http://yourPCname:8081/vnc.html?host=kali&port=8081

You should see your Pi's desktop!

Just like this..

Raspberry Pi VNC in Browser - NoVNC

You can see the screen area needs a bit of adjusting, but it works great otherwise.  Especially for VNC in browser.

 

Then if you connect P4wnP1 to your WiFi (use Client mode in the P4wnP1 web GUI), your other devices can connect via this URL:
http://192.168.68.121:8081/vnc.html?host=kali&port=8081
or try
http://kali:8081/vnc.html?host=kali&port=8081
(But P4wnp1 must be connected to the network - in client mode not AP mode)

 

 

*** Backup up to menuwithip-boo.img