confpub/vncroulette_setup.sh
2024-10-05 15:11:25 +00:00

6 lines
215 B
Bash

vncroulette() {
local host="$(curl -sS "https://computernewb.com/vncresolver/api/scans/vnc/random" | jq -r '.["ip","port"]' | tr '\n' ':' | sed 's/:$//')"
echo "Connecting to ${host}..."
vncviewer "${host}"
}