DECIMAL2IP


PURPOSE   OPERATION   COMMAND LINES   OPTIONS   OUTPUT SAMPLES   RELATED PROGRAMS


Author: Dan Mares, dmares @ maresware . com
Portions Copyright © 1998-2020 by Dan Mares and Mares and Company, LLC
Phone: 678-427-3275
Last update: August 01, 2014.

This is a command line program.
MUST be run within a command window as administrator.


Purpose

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 111.111.111.111 format. This program will convert the decimal to IP format.


top

Operation

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


top

Options

This program does not have any options.


top

Command lines

C:>DECIMAL2IP 
Program name by itself gets help file

C:>DECIMAL2IP  input_file_containing_ip_values.txt
Process the input file and creat an output file

top
Sample FILE_conv.csv Output
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|137.25.139.226
2472721727, text line|Hex|8D69CB21|IP-decimal|141.105.203.33
824360586, text line|Hex|3254129A|IP-decimal|51.54.48.144
top

Related Programs

None

top