Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #Script by Kris Occhipinti
- #http://filmsbykris.com
- #GPLv3 - http://www.gnu.org/licenses/gpl-3.0.txt
- #Copyright Feb 2018
- ip="192.168.1.179"
- user="username"
- pass="password"
- echo "Enter Command (WASD) (P)icture (Q)uit"
- while [ 1 ]
- do
- read -rsn1 c
- if [ $c = "s" ]
- then
- printf "\r "
- printf "\rLast Command: Down"
- wget -qO- /dev/null "http://$ip/decoder_control.cgi?&loginuse=$user&loginpas=$pass&command=2&onestep=1&15152518315000.571733322584179&_=1515251831501" 2&> /dev/null
- elif [ $c = "w" ]
- then
- printf "\r "
- printf "\rLast Command: Up"
- wget -qO- /dev/null "http://$ip/decoder_control.cgi?&loginuse=$user&loginpas=$pass&command=0&onestep=1&15152520149740.734559326264288&_=1515252014975" 2&> /dev/null
- elif [ $c = "a" ]
- then
- printf "\r "
- printf "\rLast Command: Left"
- wget -qO- /dev/null "http://$ip/decoder_control.cgi?&loginuse=$user&loginpas=$pass&command=4&onestep=1&15152522067620.3410644620228558&_=1515252206762" 2&> /dev/null
- elif [ $c = "d" ]
- then
- printf "\r "
- printf "\rLast Command: Right"
- wget -qO- /dev/null "http://$ip/decoder_control.cgi?&loginuse=$user&loginpas=$pass&command=6&onestep=1&15152522532600.21843916365527538&_=1515252253260" 2&> /dev/null
- elif [ $c = "q" ]
- then
- printf "\r "
- printf "\rLast Command: Good-Bye..."
- exit 0;
- elif [ $c = "p" ]
- then
- printf "\r "
- printf "\rLast Command: Taking Photo..."
- feh "http://$ip/snapshot.cgi?user=$user&pwd=$pass" > /dev/null
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement