diff options
author | root <root@krebs> | 2011-08-25 20:57:41 +0200 |
---|---|---|
committer | root <root@krebs> | 2011-08-25 20:57:41 +0200 |
commit | e98b2735d226684c70620738e584eb042cb47d8a (patch) | |
tree | 08635be6d8336c4cdee47edf324fa1721accf1e6 | |
parent | e8cb14522e1364ce9e871c3f06b63daa58479ca6 (diff) | |
parent | fb7f9fdef40ee8108dd34aa96dc1a84f0355d300 (diff) |
Merge branch 'master' of github.com:/krebscode/painload
-rw-r--r-- | licht/licht.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/licht/licht.sh b/licht/licht.sh new file mode 100644 index 00000000..d73a73c8 --- /dev/null +++ b/licht/licht.sh @@ -0,0 +1,13 @@ +#!/bin/bash +LAMPE="$1" +TOGGLE="$2" +LAMP=~s/[a-zA-Z]//g +TOGGLE=~s/[a-zA-Z]//g +STRING="\xA5\x5A\d$LAMPE\d$TOGGLE" +if [ $# != 2 ] +then + echo -ne "Usage: licht <lampe> <0/1>" +else + echo "$LAMPE$TOGGLE" + echo -ne "$STRING" | nc -u -w1 10.42.3.100 1337 +fi |