Description
Программист Томми написал программу. Кажется он скрыл от нас важную информацию. Выясните что прячет Томми.
Tommy wrote a program. It seems he has hidden from us important information. Find out what Tommy hides.
Solution
The solution on this one is quite simple, probably due to a mistake made by the developer. Still, a simple solution is also a solution.
First, I extracted the ZIP archive that contained the files. First thing I always do is a simple grep. I knew that all flags in this CTF, as usual, have the same syntax, namely h4ckit{flag}. Let’s try to find some stuff:
1 2 |
root@kali:~/h4ck1tctf/Canada/solve# grep -Ri "h4ck" . Binary file ./parse matches |
It seems there is a file called ./parse that contains the ASCII string h4ck. Let’s further investigate:
1 2 |
root@kali:~/h4ck1tctf/Canada/solve# strings parse | grep -i "h4ck" to unused region of span2910383045673370361328125_cgo_thread_start missingacquirep: invalid p stateallgadd: bad status Gidlebad procedure for programbad status in shrinkstackcan't scan gchelper stackchansend: spurious wakeupcheckdead: no m for timercheckdead: no p for timerh4ck1t{T0mmy_g0t_h1s_Gun}mach_semcreate desc countmissing stack in newstackno buffer space availableno such file or directoryoperation now in progressreflect: Bits of nil Typereleasep: invalid p stateresource deadlock avoidedruntime: program exceeds runtime |
The output above contains the flag, which is h4ck1t{T0mmy_g0t_h1s_Gun}.
2 Comments