Created
July 22, 2014 00:40
-
-
Save klaxa/f2f5c547ac2c82ccf7ee to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ "$(whoami)" != "root" ]] | |
then | |
echo "Start as root, fag" | |
exit 1 | |
fi | |
echo -n "Starting in 3..." | |
sleep 1 | |
echo -n "2..." | |
sleep 1 | |
echo -n "1..." | |
sleep 1 | |
echo "0" | |
echo "Starting mouse forwarding" | |
tmux new-session -d /root/forward_mouse.sh | |
echo "Starting keyboard forwarding" | |
tmux new-session -d /root/forward_keyboard.sh | |
echo "Done" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
netevent -hotkey EV_KEY:97:1 "@toggle" -ontoggle "echo \$GRAB > ~/.netdevgrab" -read /dev/input/event0 | ssh [email protected] '/home/klaxa/netevent/netevent -write' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
netevent -read /dev/input/event18 | ssh [email protected] '/home/klaxa/netevent/netevent -write' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment