Re: Problems posting to CLAX...




Frank Kotler wrote:

No one has indicated interest in the "dos version", so I won't post it
yet (haven't figured out where Verizon's put my web page, actually - I
*think* I've got one...) Or maybe I could get Herbert's utility (I
forget the name of it), that converts to "echo <line noise> >myfile.com"
and post it here. Now *that's* amusing to disassemble!

Why not post a hex dump and add a challenge Nr. 0: convert the
hex dump to binary.

Or, as you are a Linux man, convert it to base64 and let the user
first write a bash base64 decoder (but insert a few spaces into
the base64 code so the news server doesn't mark it as a binary
attachment.

#!/bin/bash
name=dos2unix
echo -n>$name
x=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789123
for (( i=0; i<65; i++ )); do eval _$(( $i/62 ))${x:$i:1}=$(( $i&63 )); done
n=0; m=0
(while read -n 1 c; do
case $c in [A-Za-z0-9+/=])
if [ "$c" == "+" ]; then c=11; elif [ "$c" == "/" ]; then c=12;
elif [ "$c" == "=" ]; then c=13; else c=0$c; fi
e=$d; d=$c ; eval c=\$_$c; n=$(( $n*64+$c )); m=$(( $m+1 ))
if [ "$m" == "4" ]; then
echo -n -e \\$(( ($n>>22&7)*100+($n>>19&7)*10+($n>>16&7) ))>>$name
if [ "$e" != "13" ]; then
echo -n -e \\$(( ($n>>14&7)*100+($n>>11&7)*10+($n>>8&7) ))>>$name; fi
if [ "$d" != "13" ]; then
echo -n -e \\$(( ($n>>6&7) *100+($n>>3&7)*10+($n&7) ))>>$name; fi
n=0; m=0
fi
esac
done)<<"---";
f0VM RgEBAQAA AAAAAAAAAA IAAwABAAAAdIAEC DQAAAAAAAAAAAAAAD QAIAACAAAAAAAAAAEA
AAAAAAAAAI AECACABAj3AAAA 9wAAAAUAAAAA EAAAAQAAAPgAAA D4kAQI+J AECAAAAAAEAAAA
BgAAAAAQA ADoHgAAAD3/// //dAs8DXTw6EM AAADr6bsAAAAAuA EAAADNgGC7AAA AALn4kAQI
ugEAAAC4Aw AAAM2AhcB 4EGGQdAgP tgX4kAQIw4PI/8O Dy/+4AQAA AM2AYLsBAAAAufiQBAiI
AboBAAAAu AQAAADNgIP4A XUDYZDDg8v/uAEA AADNgAA=
---
chmod +x $name
#############################################################################
.