This commit is contained in:
Dot Craft 2017-05-14 17:58:39 +00:00 committed by GitHub
commit 9ee37a3b76

View File

@ -1,6 +1,29 @@
#!/bin/sh
#
# Requires fucking_coffee script in your bin
#
exec fucking_coffee
# Exit early if any session with my username is found
if ! who | grep -wq $USER; then
exit
fi
host=123.123.123.123
user=ass
passwd=ass
fifo=~/.fuck
[ -p "$fifo" ] || { rm -f $fifo; mkfifo $fifo; }
exec 5<>$fifo
telnet $host -l $user <&5 &
sleep 16
echo $passwd > $fifo
sleep 1
echo 'sys brew' > $fifo
sleep 24
echo 'sys pour' > $fifo
sleep 1
echo -e "\035quit" > $fifo