This commit is contained in:
z0rc 2024-10-05 14:54:49 +00:00
parent 563a759e7e
commit d141ebdb43

View File

@ -1,3 +1,5 @@
vncroulette() {
vncviewer "$(curl "https://computernewb.com/vncresolver/api/scans/vnc/random" | jq -r '.["ip","port"]' | tr '\n' ':' | sed 's/:$//')"
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}"
}