summaryrefslogtreecommitdiff
path: root/spazd/spazd.sh.in
blob: ff1600c18f6ce72e15a9963781260675eaa4f082 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env sh
# Filename: store-crypted.sh.in
# License: CC-BY-SA 4.0
# Author: bgstack15
# Startdate: 2019-08-28 08:00
# Title: Script Plus A Zipped Datum (spazd)
# Purpose: Script that stores a zip file at the end of this file, to obscurely and insecurely store a simple value
# History:
# Usage:
#    create crypted object:
#       printf '%s' "CUSTOMVALUE" | bzip2 > ~/foo3
#    learn value for "mysize" and update script
#       wc -c ~/foo3
#    remove comments from this input file and build final script
#       cat store-crypted.sh.in ~/foo3 > final.sh ; rm ~/foo3
# Reference:
#    various installer tarball/script combos from different vendors
#    original research
# Improve:
# Documentation:

mysize=62
cat="$( printf '\x62\x75\x6e\x7a\x69\x70\x32' )"
tail -c${mysize} "${0}" | $cat | cat
printf '\r\n'
exit
bgstack15