# Tyrannosaurus Hex – 10 picoctf 2014 writeup

Hope that you can see the question clearly but here is the question once more ๐

The contents of the flash drive appear to be password protected. On the back of the flash drive, you see the hexadecimal number 0x95f48ed9 scribbled in ink. The password prompt, however, only accepts decimal numbers. What number should you enter? (Press the Hint button for advice on solving the challenge)

I really think that everyone was able to get through this question ๐ Let’s go with the hints first

To me googling did not work ๐ฆ

Butย wolframalpha.com did the job as in the hint, but I have never heard of this and I needed a account to get get the result, so there is no other option than creating one ๐

After entering our number in hex (hexadecimal). If you have no idea of what I am speaking about you better visit this wiki page and read more about the Number Representation ๐ Remember here that our goal is not getting the flag by doing something that even you don’t understand, CTF is an excellent platform to learn things.

So we need to convert the given hex value to decimal, the wolfram works good but I think that we can do it in a better manner ๐ in python with a single line of code ๐

here is the code

```
#!/usr/bin/env python

print int(0x95f48ed9)

```
```
#!/usr/bin/env python

print 0x95f48ed9

```

or we could do the same on the python interpreter by just typing the number or by using the int function before it.

```>>> 0x95f48ed9
2515832537
>>> int(0x95f48ed9)
2515832537
>>>```

So we got the password in different manner which is nothing but decimal value of theย 0x95f48ed9 so our flag is

`2515832537`

Happy hacking, ๐ hoping that I will be able to write all the writeup’s ๐