Tyrannosaurus Hex – 10 picoctf 2014 writeup

hex-2014

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)

hex_hint_2014

You could try asking Google or Wolfram Alpha

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 ๐Ÿ˜ฆ

hex_1_2014

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 ๐Ÿ™‚

hex_2_2014

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.

http://en.wikipedia.org/wiki/Hexadecimal

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 ๐Ÿ˜‰

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s