Skip to content

Instantly share code, notes, and snippets.

@klaxa
Created July 22, 2014 00:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save klaxa/f2f5c547ac2c82ccf7ee to your computer and use it in GitHub Desktop.
Save klaxa/f2f5c547ac2c82ccf7ee to your computer and use it in GitHub Desktop.
#!/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"
#!/bin/bash
netevent -hotkey EV_KEY:97:1 "@toggle" -ontoggle "echo \$GRAB > ~/.netdevgrab" -read /dev/input/event0 | ssh root@10.0.0.2 '/home/klaxa/netevent/netevent -write'
#/bin/bash
netevent -read /dev/input/event18 | ssh root@10.0.0.2 '/home/klaxa/netevent/netevent -write'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment