mirror of
https://github.com/binary-kitchen/doorlockd
synced 2024-12-22 18:34:25 +01:00
Added tool for simple command injection
This commit is contained in:
parent
49a5b88f6c
commit
b66c82aad8
23
doorlockd/tools/inject_doorcommand.sh
Executable file
23
doorlockd/tools/inject_doorcommand.sh
Executable file
@ -0,0 +1,23 @@
|
|||||||
|
#!/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
|
Loading…
Reference in New Issue
Block a user