confpub/vncroulette_setup.sh

6 lines
215 B
Bash
Raw Permalink Normal View History

2024-10-05 10:38:41 -04:00
vncroulette() {
2024-10-05 11:11:25 -04:00
local host="$(curl -sS "https://computernewb.com/vncresolver/api/scans/vnc/random" | jq -r '.["ip","port"]' | tr '\n' ':' | sed 's/:$//')"
2024-10-05 10:54:49 -04:00
echo "Connecting to ${host}..."
vncviewer "${host}"
2024-10-05 10:38:41 -04:00
}