Y.C's Blog

TO SHARE, TO LEARN

How to Convert Hexadecimal to Decimal?

leave a comment »

In previous post on IP Header Analysis, we know that we can analyze the datagram more throughly by using the hexadecimal dump option. And now, we are going to look on how we can convert hexadecimal to decimal BY HAND.

Let’s take the same example in previous post… Source IP Address : c0a8 0d14. What does it represent?

How to Convert Hexadecimal to Decimal

How to Convert Hexadecimal to Decimal

Based on the conversion table above, the calculation is as follow:

Hex to Dec Calculation

Hex to Dec Calculation

So now we know that the source IP address is 192.168.13.20. Correct?
Let’s compare with the standard WinDump output:
03:19:38.413592 IP 192.168.13.20 > 192.168.13.47: ICMP echo request, id 43, seq 40150, length 24

There are many automated converter out there which can really ease your job  (this is the one I use most often). My intention of sharing this is just to let you know and understand the theory behind this hex-dec conversion. Enjoy!

About these ads

Written by @YCOng

March 12, 2012 at 9:58 pm

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 )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 57 other followers

%d bloggers like this: