Author: Dan Mares, dmares @ maresware . com
Portions Copyright © 1998-2016 by Dan Mares and Mares and Company, LLC
Last update: August 01, 2014.
This is a command line program.
MUST be run within a command window as administrator.
This program: DECIMAL2IP.exe is a command line program.
It can be used to convert a decimal (number) value (3139526714) to an IP octet (127.45.119.216) value.
Occassionally when running forensic software, you get listings of IP addresses in a decimal format. This decimal needs to be converted to the traditional IP octet 22.214.171.124 format. This program will convert the decimal to IP format.
The program works only on a text file containing the decimal IP numbers to convert.
The input file contains text lines containing as the first field the decimal number. The rest of the data record/line can be other data, but the first field of the record MUST be the decimal value.
The record can be delimited, and contain up to 32000 characters per line. BUT again, the first item/field must be the decimal to convert. See sample below
3149546312,This is a delimieted text line 2373321737,Delimited with the comma 844370586,The delimiter can be any common | delimeter 2572422727,as long as the decimal is the first item
The program takes the input file. Reads the record. Determines the first field is the decimal to convert. Then writes the entire input record to the output file and adds a few pipe delimeted fields. The Hex value of the decimal, then IP value of the decimal.
This resulting output file has a new filename with an extension of .IP.
Input name: decimal_numbers.txt
Output name: decimal_numbers.IP
This program does not have any options.
Program name by itself gets help file
Input file 3149546312, text line 2553322217, text line 884310136, text line
Output file, notice the additional pipe ( | ) delimited items added 3149546312, text line|Hex|BB2381EC|IP-decimal|126.96.36.199 2472721727, text line|Hex|8D69CB21|IP-decimal|188.8.131.52 824360586, text line|Hex|3254129A|IP-decimal|184.108.40.206top