# All the Data — Solution
An unknown file called `data`, how original...
Let's go through the standard checklist to figure out what type of file we'redealing with.
![Useless](img/useless.png)
This looks useless, let's try invoking `strings data`. Bingo, we finally findsome useful information:
![Useful](img/useful.png)
Looks like we are dealing with a [WAD file](https://doomwiki.org/wiki/WAD)— a file format used by Doom engine based games for storing data. WADactually stands for "Where's All the Data?", which makes the challenge titleand description make more sense.
Wait a minute, how come `file data` didn't recognize the WAD format? Is itcorrupted? Let's try to inspect its bytes...
![Hexdump](img/hexdump.png)
Of course, the first few bytes of the file header are wrong. Luckily, it's easyto figure out they should spell out `PWAD`. After fixing the header in ourfavourite hex editor, we get:
![Fixed Header](img/fix_header.png)
We may now be tempted to fire up DOOM and rip & tear through the game. Whilebeing fun, it will be very hard, if not impossible to extract the flag thisway. Instead, let's open up the WAD file in a DOOM level editor, such as[eureka](https://eureka-editor.sourceforge.net/).
Going through the good old [E1M1:Hangar](https://doom.fandom.com/wiki/E1M1:_Hangar_(Doom)), we see the firstglimpse of the flag in the nukage pool outside.
![e1m1](img/e1m1.png)
Further inspecting the subsequent levels yields:
![e1m2](img/e1m2.png)
![e1m3](img/e1m3.png)
![e1m4](img/e1m4.png)
![e1m5](img/e1m5.png)
![e1m5](img/e1m6.png)
![e1m6](img/e1m7.png)
Putting it all together, we get the first flag: `TBTL{Wh47ch4_G07_1n_7h3r3?}`.
The second flag is hiding in [E1M8: PhobosAnomaly](https://doom.fandom.com/wiki/E1M8:_Phobos_Anomaly_(Doom)), but it has atwist:
![e1m6](img/e1m8.png)
We have the word `SCRAMBLE` and a bunch of numbers. Presumably, each numbercorresponds to one character of the flag.
Crypto enthusiasts probably unscrambled the numbers without external help sincethe cipher is not particularly strong. However, the intended way of approachingthis was to find the connection with DOOM, and that connection is [cheat codeencryption](http://justsolve.archiveteam.org/wiki/Doom_cheat_code_encryption).
Once we find that, it's trivial to uncover the second flag:`TBTL{1n_h3r3?_D0oOo0M!}`.
**Easter Egg:** When combined, the two flags reference [this piece ofdialogue](https://www.youtube.com/watch?v=8K0oeM0wHeY) from [The Color ofMoney](https://www.imdb.com/title/tt0090863/), which was the inspiration forthe name of the game that changed the world.