🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #321074

<04><TFT><SCRIPT> Tin Foil Tools Script-Foo Challenge

#321074
From: CRYP7010G3R
Date: Thu, 16 Mar 2023 17:29
22 lines
1517 bytes
#!/usr/bin/env bash

# (tft) Tin Foil Tool Formatter - compress or decompress a base32 
columns file

# Usage
# compress      > $ tft smush [filename] ... > $ tft -c [filename]
# decompress    > $ tft bloat [filename] ... > $ tft -d [filename]

fyle="$2" ; [[ ! -f "$fyle" ]] && echo "file not found!" && exit 1

smush() {
cat "$fyle" | xz | base32 -w0 | fold -w 8 | tr '\n' ' ' | fold -w 63 | 
tr -d '='
}

bloat() {
cat "$fyle" | tr -dc A-Z2-7 | base32 -d | unxz
}

[[ "$1" == "smush" ]] && smush "$2" ; [[ "$1" == "-c" ]] && smush "$2"
[[ "$1" == "bloat" ]] && bloat "$2" ; [[ "$1" == "-d" ]] && bloat "$2"
Technical Details
Message-ID: <tuvjks$25nq$4@news.cyber23.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <tuvjae$25np$1@news.cyber23.de>

Show Full Headers
Complete Article Headers
Message-ID: <tuvjks$25nq$4@news.cyber23.de>
Subject: <04><TFT><SCRIPT> Tin Foil Tools Script-Foo Challenge
Date: Thu, 16 Mar 2023 12:29:13 -0500
From: CRYP7010G3R <cryptologer@defcon.social>
References: <tuvjae$25np$1@news.cyber23.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: alt.privacy.anon-server,comp.terminals
Organization: Cyber23 news
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 16 Mar 2023 17:29:01 -0000 (UTC)
Injection-Info: news.cyber23.de; logging-data="71418"; mail-complaints-to="abuse@cyber23.de"
Content-Language: en-US
In-Reply-To: <tuvjae$25np$1@news.cyber23.de>