There is a file with the name **flag_999.tar.gz**
which has been packed maybe 999 times is there any way of unpacking all of them or a bash script because nothing is working for me.
The name is the file goes as flag_999.tar.gz and inside the archive, there is flag_998.tar.gz and inside that there is flag_997.tar.gz. So here the "flag_" is constant and then the number goes descending I reached flag_967.tar.gz manually to check the file names inside.
I tried:
file=(*tar); while [[ -e $file ]]; do tar zxf "$file"; rm "$file"; file=(*tar); done
no output
awk -F'\0' '/[^\0]/{print $(NF)}' flag_999.tar.gz
output not readable
for i in {1000..1}; do tar -xf $i.tar; done
maybe this could work I don't know because I don't know how to use it.
Click here to see and download the file https://drive.google.com/file/d/1ycWVR0htwFyexCJRohTGHio4UFdvGuPW/view?usp=sharing
-xzf
instead of-xf
obviously