Zipped Up

Table of Contents

Still Onion

Problem

My friend changed the password of his Minecraft account that I was using so that I would stop being so addicted. Now he wants me to work for the password and sent me this zip file. I tried unzipping the folder, but it just led to another zipped file. Can you find me the password so I can play Minecraft again?

Solution

Wrote a shell script.

#/bin/bash
current=***
while [ "$current" -gt -1 ]
do
    if ( ls | grep $current | grep .tar. );
    then
        echo "7z x ./$current.tar.*"
        7z x ./$current.tar.*
        echo "7z x ./$current.tar"
        7z x ./$current.tar
        echo "cd $current"
        cd $current
        let "current += 1"
    else
        7z x ./$current.*
        cd $current
        let "current += 1"
    fi
done

Then copy all txts:

cp **/*.txt ./txts/

You would get 1.txt, 2.txt, …, 1001.txt.

Get real txt:

cat ./*  | grep -v {n0t_th3_fl4g}

Result

➜  txts cat ./*  | grep -v {n0t_th3_fl4g}
tjctf{p3sky_z1p_f1L35}
Nemo Xiong avatar
Nemo Xiong
ex-Cybersecurity Executor, now a student in Unimelb
comments powered by Disqus