Skip to content

Instantly share code, notes, and snippets.

@outlinepix
Created September 14, 2022 10:03
Show Gist options
  • Save outlinepix/7fc846d6120ad3a87545a7001c2a9f55 to your computer and use it in GitHub Desktop.
Save outlinepix/7fc846d6120ad3a87545a7001c2a9f55 to your computer and use it in GitHub Desktop.
Evilzone.org | Programming Challenge | Challenge: Unpacker
#Dowload the archive file from : https://evilzone.org/index.php?page=challenges&sub=viewChallenge&id=21
#Run ./unpacker.sh script from the location you downloaded file.
#!/usr/bin/env bash
FILE=$(pwd)
FILE+=/flag_999.tar.gz
if test -f "$FILE"; then
echo "File found and Procesing."
else
echo "File $FILE does not exist."
exit
fi
for i in {1..1000}; do
let num=1000-$i
tar -xvf flag_$num.tar.gz
rm flag_$num.tar.gz
done
echo -n "YOUR FLAG IS:"
cat flag.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment