Basic scripts
This commit is contained in:
parent
e27812939d
commit
8d4bbda945
8 changed files with 300 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
*.local
|
37
init.sh
Normal file
37
init.sh
Normal file
|
@ -0,0 +1,37 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo "> Importing signer"
|
||||
gpg --import signer.pub
|
||||
gpg --edit-key tudbut@tudbut.de "trust" "quit"
|
||||
echo done
|
||||
|
||||
echo "> Setting up peers"
|
||||
echo -n "This node: TudbuT.infra."
|
||||
read name
|
||||
echo "TudbuT.infra.$name" > name.local
|
||||
echo -n "Router is TudbuT.infra.router.main? [Y/n] "
|
||||
read yn
|
||||
if [ "$yn" != "n" ] ; then
|
||||
echo "TudbuT.infra.router.main" > router.local
|
||||
else
|
||||
echo -n "Router: TudbuT.infra."
|
||||
read router
|
||||
echo "TudbuT.infra.$router" > router.local
|
||||
fi
|
||||
echo -n "Router lives at domain: "
|
||||
read domain
|
||||
echo "$domain" > router.ip.local
|
||||
echo "All set."
|
||||
|
||||
echo "> Setting up GPG"
|
||||
gpg --gen-key
|
||||
echo "Please sign:"
|
||||
gpg --export -a "TudbuT.infra.$name"
|
||||
echo -n "Enter to confirm"
|
||||
read
|
||||
echo "Please give me the signed key:"
|
||||
gpg --import
|
||||
echo "Thank you!"
|
||||
|
||||
echo "> Done."
|
||||
|
5
pushkey.sh
Normal file
5
pushkey.sh
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
name=$(cat name.local)
|
||||
|
||||
echo key
|
||||
gpg --export -a "$name"
|
20
read-msg.sh
Normal file
20
read-msg.sh
Normal file
|
@ -0,0 +1,20 @@
|
|||
#!/bin/sh
|
||||
|
||||
read todo
|
||||
|
||||
if [ "$todo" = "" ] ; then
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ "$todo" = "push" ] ; then
|
||||
read filename
|
||||
cat > "$filename"
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ "$todo" = "exec" ] ; then
|
||||
read command
|
||||
exec bash -c "$command"
|
||||
fi
|
||||
|
||||
echo "invalid command: $todo"
|
6
recv-msg.sh
Normal file
6
recv-msg.sh
Normal file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
data="$(bash verify.sh)"
|
||||
c=$?
|
||||
if [ $c != 0 ] ; then exit $c ; fi
|
||||
bash read-msg.sh <<< "$data" || exit 1
|
5
sign.sh
Normal file
5
sign.sh
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
name=$(cat name.local)
|
||||
|
||||
echo data
|
||||
gpg --local-user "$name" --sign -a
|
195
signer.pub
Normal file
195
signer.pub
Normal file
|
@ -0,0 +1,195 @@
|
|||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
|
||||
mQGNBGOoOXcBDADSxtI1k1sUmbLOW7mxpFqS9lX6Sp+kZF10Hxf6eACKNz3q9YZJ
|
||||
cYajTyioEiMjVCNQibg0TiTg9nmUvviqHMto4QIvWluiFFQ6KLQTmapZ88ugXHkv
|
||||
IndLB/xKdGuQlqu8Q2N+vow661A5eJGzqtKdU1VvTIaNaNN7zYhAlMj1pTEuCQf/
|
||||
W5Ure2xxUTEl+clL3QvA2FLbcHtHBVI+toSyKirEw2eBhGhZQOI+tNjKZ60vGs8C
|
||||
AtIOQ6ZkUIEsYSFXVFo3UFnTK1VQgdS/EqlW6dCYU0+BJicea/6sksfMMZGlBh24
|
||||
rmiAokbzMlPOuLcwLRms6EmBqqGwZkJMtokU2fjE7NjrCUIAh5DgWYfEaMlUVKCe
|
||||
0hHyYkNsd5A1kQRDaeIP9xEyqD/SWXy00tBnZYYLESI9/diF029LbQKf+g7B1Y24
|
||||
NDRyxDhzsWxmkqaUQwsmW3Np+lQMCneHZMvrgheKQsTnT4UnqaUDbBxWsz/+4o11
|
||||
ZZzN2Y4MIONYH/0AEQEAAbQeRGFuaWVsIEguIDxncGdAbWFpbC50dWRidXQu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YNk5vwt2dbUgmBJXDaz2YRYjThIV
|
||||
NUA2TkTwlrqVvnoYEO50b0GddRPQIu6jqBFy6lrLD4kRZKIjeqfDN+x3snDnNR3M
|
||||
J0nimjVs5PnQ+82PHBomLEIpJrsWtuI01uYtzsOnF79+g7Zg4Lr+FxEIegsmV3vC
|
||||
EzvlpdWjoUQG5sb52o9ZPYvZmMHvrPrfA4rHbL4c3RvmlNvKa3b2bsqfcMrB5FGj
|
||||
VhEtANI+nZQT2UCEF4sFF7g4BGb+uhwSCisGAQQBl1UBBQEBB0BnxIkRVShdBMhj
|
||||
CTZQ28VnHFnbZSv8GQIilN/q+taqWwMBCAeJAbwEGAEIACYWIQQUE45QagMuQAsQ
|
||||
vxt9Y9VjS3xBfwUCZv66HAIbDAUJA8JnAAAKCRB9Y9VjS3xBf2HSC/wKJWgDXFhx
|
||||
y3cUNs7DhtpsprPjFNCAzvyju8dubdHGmyTFbzoMzLt3wahennQQWOcDRd3CJoYu
|
||||
FKW/tTaFcBOb0n7U/sczivW9BAyfR859vZu16mE6xXsQh0aD2SJYsCbF5oAIiqyM
|
||||
Wwhd1bH7y+GMEFzWYz7VZT/C7MpoCWRjMfywH8d0usfR8jKYaRHvJO3sHe/xdkxI
|
||||
Cq/wxMdhuFr+Wsmzf+FYHmUY8H0BPYHdVlsPxltxfaT5hlwgpmO/4Aq1zoxQdXdR
|
||||
s8iJ+P6k3h5NhFsLOPB8zt7WrWUjimCialB7HHSZCUzUf/kKgLT150OQ+R0dFYKl
|
||||
H8QocRbccRDrC37H7a/mI+BEKthFtECy4zzDBd2eu04seexSkgxgBAhkZmmhl3Nr
|
||||
hoKLtAJNMhI9taCFKurnFS/02caVuE2BFCUHZ8fJzC3TsDzLt81dETv70AnfVXL6
|
||||
Qy080xgwNBFcyhzzINeZ+YMj8rH8HV7sUiPUSHJGtn/K9vjEJzCCvog=
|
||||
=/9qg
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
31
verify.sh
Normal file
31
verify.sh
Normal file
|
@ -0,0 +1,31 @@
|
|||
#!/bin/sh
|
||||
|
||||
read mode
|
||||
|
||||
|
||||
if [ "$mode" = "key" ] ; then
|
||||
output="$( (exec gpg --import > /dev/null) 2>&1 )"
|
||||
if [ "$?" = 0 ] ; then
|
||||
echo recv ok > /dev/stderr
|
||||
else
|
||||
echo recv bad > /dev/stderr
|
||||
exit 1
|
||||
fi
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ "$mode" = "data" ] ; then
|
||||
|
||||
id=$!
|
||||
stderr="$( (exec gpg -d > /tmp/$id.msg) 2>&1 )"
|
||||
if [ $? = 0 ] && ! grep "WARNING" <<< "$stderr" > /dev/null ; then
|
||||
echo recv sig ok > /dev/stderr
|
||||
else
|
||||
echo recv sig bad > /dev/stderr
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cat /tmp/$id.msg
|
||||
|
||||
exit
|
||||
fi
|
Loading…
Add table
Reference in a new issue