Add NWO support to annna. - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit 9229703079f05658b19cfedd6d522a74899c7d66 | |
parent 9eb27f07cf23b19841340daffaf15c3712f1a059 | |
Author: Annna Robert-Houdin <[email protected]> | |
Date: Thu, 21 May 2020 15:27:28 +0200 | |
Add NWO support to annna. | |
Diffstat: | |
A nwo-chip-all | 9 +++++++++ | |
A nwo-embed-microchip | 37 +++++++++++++++++++++++++++++… | |
2 files changed, 46 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/nwo-chip-all b/nwo-chip-all | |
@@ -0,0 +1,9 @@ | |
+#!/bin/sh | |
+ | |
+export PATH="/home/annna/bin:$PATH" | |
+ | |
+memecache="/br/gopher/memecache" | |
+ | |
+find "${memecache}" -regex ".*\.\(jpg\|JPG\|jpeg\|JPEG\|wav\|WAV\|au\|AU\)" \ | |
+ -exec ./nwo-embed-microchip {} \; | |
+ | |
diff --git a/nwo-embed-microchip b/nwo-embed-microchip | |
@@ -0,0 +1,37 @@ | |
+#!/bin/sh | |
+ | |
+microchip="/br/gopher/memecache/microchip.vtv" | |
+ | |
+if [ $# -lt 1 ]; | |
+then | |
+ printf "usage: %s file[.jpeg|jpg|bmp|wav|au]\n" >&2 | |
+ exit 1 | |
+fi | |
+ | |
+inputfile="$1" | |
+case "$inputfile" in | |
+*.jpeg|*.jpg|*.JPG|*.JPEG|*.BMP|*.bmp|*.WAV|*.wav|*.au|*.AU) | |
+ ;; | |
+*) | |
+ printf "Given filetype is not supported by the NWO ... YET.\n" >&2 | |
+ exit 1 | |
+ ;; | |
+esac | |
+ | |
+if [ -e "${inputfile}.nochip" ]; | |
+then | |
+ printf "%s already chipped.\n" "${inputfile}" | |
+ exit 1 | |
+fi | |
+ | |
+cp "${inputfile}" "${inputfile}.nochip" | |
+steghide embed -ef "${microchip}" -cf "${inputfile}" \ | |
+ -p "Bill Gates is our savior." | |
+if [ $? -gt 0 ]; | |
+then | |
+ rm "${inputfile}.nochip" | |
+ exit 1 | |
+fi | |
+ | |
+exit 0 | |
+ |