diff options
author | B Stack <bgstack15@gmail.com> | 2019-08-28 09:32:53 -0400 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2019-08-28 09:32:53 -0400 |
commit | 19df30724cec3a25960fc57aa3f87b4b97030063 (patch) | |
tree | e9f16e758259089dff4e556c9e7deac4d9736f25 /spazd | |
parent | add svgs-tkinter-python3 (diff) | |
download | former-gists-19df30724cec3a25960fc57aa3f87b4b97030063.tar.gz former-gists-19df30724cec3a25960fc57aa3f87b4b97030063.tar.bz2 former-gists-19df30724cec3a25960fc57aa3f87b4b97030063.zip |
add spazd
Diffstat (limited to 'spazd')
-rw-r--r-- | spazd/description | 1 | ||||
-rw-r--r-- | spazd/spazd.sh.in | 26 |
2 files changed, 27 insertions, 0 deletions
diff --git a/spazd/description b/spazd/description new file mode 100644 index 0000000..606eea9 --- /dev/null +++ b/spazd/description @@ -0,0 +1 @@ +Obscurely and insecurely store a simple value diff --git a/spazd/spazd.sh.in b/spazd/spazd.sh.in new file mode 100644 index 0000000..ff1600c --- /dev/null +++ b/spazd/spazd.sh.in @@ -0,0 +1,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 |