~johanvandegriff/unix-shell-programming-revised-edition-programs

unix-shell-programming-revised-edition-programs/obfuscated/eval_echo/backup11 -rw-r--r-- 528 bytes
fc214385Johan Vandegriff added other old scripts, some newer ones too 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
eval=alias
$eval eval_=echo
$eval eval_echo=$eval
shopt -s expand_$eval'es'
eval_echo echo_\=eval
echo=`eval_ "$@"|xxd -p`;[[ $echo == 0a ]]&&
echo=48656C6C6F20576F726C64210A
false
eval_=-$?
while [[ $eval_ -lt ${#echo}-1 ]];do
[[ $eval -gt eval_/10 ]]&&
eval_=$((eval_+2))&&
eval_ $echo|cut -c$eval_-$((eval_+1))|xxd -p -r

echo_=$((for i in $(seq $(($(find --help|wc -l)/5)));do ps & done)|wc -c)
eval=eval_\ \$echo_$echo_;eval=`echo_ $eval`
echo_ echo_$echo_'=$(('echo_$echo_+1\)\)

done

alias
eval_ hi
echo_ hi