nwo-embed-microchip - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
nwo-embed-microchip (628B) | |
--- | |
1 #!/bin/sh | |
2 | |
3 microchip="/br/gopher/memecache/microchip.vtv" | |
4 | |
5 if [ $# -lt 1 ]; | |
6 then | |
7 printf "usage: %s file[.jpeg|jpg|bmp|wav|au]\n" >&2 | |
8 exit 1 | |
9 fi | |
10 | |
11 inputfile="$1" | |
12 case "$inputfile" in | |
13 *.jpeg|*.jpg|*.JPG|*.JPEG|*.BMP|*.bmp|*.WAV|*.wav|*.au|*.AU) | |
14 ;; | |
15 *) | |
16 printf "Given filetype is not supported by the NWO ... YET.\n" >… | |
17 exit 1 | |
18 ;; | |
19 esac | |
20 | |
21 if [ -e "${inputfile}.nochip" ]; | |
22 then | |
23 printf "%s already chipped.\n" "${inputfile}" | |
24 exit 1 | |
25 fi | |
26 | |
27 cp "${inputfile}" "${inputfile}.nochip" | |
28 steghide embed -ef "${microchip}" -cf "${inputfile}" \ | |
29 -p "Bill Gates is our savior." | |
30 if [ $? -gt 0 ]; | |
31 then | |
32 rm "${inputfile}.nochip" | |
33 exit 1 | |
34 fi | |
35 | |
36 exit 0 | |
37 |