Files
Hacks/rootme/challenges/cryptanalyse/code-pseudo-random-number-generator/find_bz2_file.sh
2023-02-25 18:45:44 +01:00

12 lines
183 B
Bash
Executable File

#!/bin/sh
for f in out-*.bz2 ; do
echo "Check file $f"
if bunzip2 -c "$f" &> /dev/null ; then
echo "$f is a BZ2 file !!!"
echo "=> out"
bunzip2 -c "$f" > out
exit
fi
done