Created
September 14, 2022 10:03
-
-
Save outlinepix/7fc846d6120ad3a87545a7001c2a9f55 to your computer and use it in GitHub Desktop.
Evilzone.org | Programming Challenge | Challenge: Unpacker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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