1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-11-01 06:57:04 +01:00
doorlockd-mirror/doorlockd/tools/inject_doorcommand.sh
2015-10-01 22:10:35 +02:00

24 lines
253 B
Bash
Executable File

#!/bin/bash
echo -n "Cmd: "
read CMD
echo -n "User: "
read USER
echo -n "Password: "
read -s PW
echo
echo -n "Token: "
read TOKEN
cat << EOF | nc localhost 5555
{
"command" : "$CMD",
"user" : "$USER",
"password" : "$PW",
"token" : "$TOKEN"
}
EOF