Sponsored Content
Top Forums UNIX for Advanced & Expert Users How to determine the encoding of this dd image? Post 302905913 by NICEPeppino on Monday 16th of June 2014 04:08:17 AM
Old 06-16-2014
Gnome How to determine the encoding of this dd image?

I have extracted a raw data file from a magnetic tape using the dd command

Afterwards, I managed to read the extracted data with Bless HexEditor and I found out that at offset 0x200000 there is a sequence of value which originally was stored in a table.

I would like to extract this data and import it in an Excel or CSV file, but above all I would like to understand the data encryption.

This is an example of the data extracted in hexadecimal format and its representation in unsigned int little endian:
Code:
//Hex Not.    // Little-Endian unsigned int 32
10 00 00 00   // 84       (Ref Number)  
55 F1 2E 04   // 20070306 (Date)
A2 3F 32 01   // 15144184 (Time)
F8 14 E7 00   // 20070306 (Date)
A2 3F 32 01   // 15491037 (Time)
DD 5F EC 00   // 1
01 00 00 00   // 1
01 00 00 00   // 4486656
00 76 44 00   // 492
EC 01 00 00   // 1
01 00 00 00   // 814185724
FC 7C 87 30   // 814185728
00 7D 87 30   // 814185732
04 7D 87 30   // 16

New Line

10 00 00 00   // 84
55 F1 2E 04   // 20070306
A2 3F 32 01   // 15491037
DD 5F EC 00   // 20070306
A2 3F 32 01   // 15534889
29 0B ED 00   // 18
12 00 00 00   // 1
01 00 00 00   // 4486656
00 76 44 00   // 492
EC 01 00 00   // 1
01 00 00 00   // 814185724
FC 7C 87 30   // 814185728
00 7D 87 30   // 814185732
04 7D 87 30   // 16

Can you understand starting from this piece of converted data how the raw file is encoded and how I can create a bash script to decode it??

Thanks

Moderator's Comments:
Mod Comment Please use code tags next time for your code and data. Thanks

Last edited by NICEPeppino; 07-30-2014 at 08:03 AM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Create an Ignite image on tape from Online IgniteUX image

Hi, (HP-UX 11.11) I need to create a tape image of an igniteUX image created on our igniteUX server. That is to say. I have a "Online" image of the igniteUX of the targeted system but I now need to copy it to a useable TAPE (igniteUX) image so i can build an other server from it that is not... (3 Replies)
Discussion started by: Andrek
3 Replies

2. UNIX for Dummies Questions & Answers

encoding

Hi, I'm using putty and when I try to write ü it writes | (or when I try to write é , it writes i) I tried to change settings/translation of putty but with no success I have KSH # locale LANG= LC_CTYPE="C" LC_NUMERIC="C" LC_TIME="C" LC_COLLATE="C" LC_MONETARY="C" LC_MESSAGES="C"... (3 Replies)
Discussion started by: palmer18
3 Replies

3. Shell Programming and Scripting

URL encoding

Hi All, I want to do URL encoding using shell script in my project. I decided that the sed is the correct tool to do this. But I am unable achieve what I wanted using sed. kindly help me to get rid of this. My requirement is , there will be one URL with all special character, spaces etc... ... (8 Replies)
Discussion started by: Vichu
8 Replies

4. Shell Programming and Scripting

Araic Encoding

hi folks , I have a shell script which contain SQL query that dump some data from the DB in arabic and this data is written to a file in unix machine but the problem that the arabic data is appear like ??????????|111|???????? even when I move it to my windows XP machine. Any one have an Idea... (2 Replies)
Discussion started by: habuzahra
2 Replies

5. UNIX for Dummies Questions & Answers

Encoding Type

Hi, Where can I find the encoding type in a unix server ? Thanks in advance !!! (1 Reply)
Discussion started by: risshanth
1 Replies

6. Shell Programming and Scripting

UTF8 encoding

Hi experts, I have a gz file from other system(solaris), which is ftped to our system(solaris). After gunzip, the file is a xml file and we are using ORACLE built in xml transformiing tool ORAXSL to transform XML to TXT. Now the issue is we come accross issue regarding UTF8 as below:... (1 Reply)
Discussion started by: summer_cherry
1 Replies

7. Shell Programming and Scripting

How to find the file encoding and updating the file encoding?

Hi, I am beginner to Unix. My requirement is to validate the encoding used in the incoming file(csv,txt).If it is encoded with UTF-8 format,then the file should remain as such otherwise i need to chnage the encoding to UTF-8. Please advice me how to proceed on this. (7 Replies)
Discussion started by: cnraja
7 Replies

8. Solaris

Encoding problem

Hi All, Hope you can help me with the below :). I'm working on a script on SUN solaris and I'm facing a problem with the number encoding as shown below, 1 is encoded to 31 (this is ASCII so it's ok) 11 is encoded as B118 !!! don't know why 111 is encoded as B1580C !!! don't know why ... (4 Replies)
Discussion started by: /dev/bag
4 Replies

9. Shell Programming and Scripting

matching image files to create one image

Hi, I have two sets of image files. Both sets have names A to Z but set 1 ends with .cdt.png and set 2 ends with .matrix.png. I want set 1 to match with set 2 if the names match (i.e. A.cdt.png will match with A.matrix.png) and with the convert image tool (program for images), it will merge the... (6 Replies)
Discussion started by: kylle345
6 Replies

10. Solaris

View file encoding then change encoding.

Hi all!! I´m using command file -i myfile.xml to validate XML file encoding, but it is just saying regular file . I´m expecting / looking an output as UTF8 or ANSI / ASCII Is there command to display the files encoding? Thank you! (2 Replies)
Discussion started by: mrreds
2 Replies
ldns(3) 						     Library Functions Manual							   ldns(3)

NAME
ldns_native2rdf_int8, ldns_native2rdf_int16, ldns_native2rdf_int32, ldns_native2rdf_int16_data, ldns_rdf2native_int8, ldns_rdf2native_int16, ldns_rdf2native_int32, ldns_rdf2native_sockaddr_storage, ldns_rdf2native_time_t- SYNOPSIS
#include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h> ldns_rdf* ldns_native2rdf_int8(ldns_rdf_type type, uint8_t value); ldns_rdf* ldns_native2rdf_int16(ldns_rdf_type type, uint16_t value); ldns_rdf* ldns_native2rdf_int32(ldns_rdf_type type, uint32_t value); ldns_rdf* ldns_native2rdf_int16_data(size_t size, uint8_t *data); uint8_t ldns_rdf2native_int8(const ldns_rdf *rd); uint16_t ldns_rdf2native_int16(const ldns_rdf *rd); uint32_t ldns_rdf2native_int32(const ldns_rdf *rd); struct sockaddr_storage * ldns_rdf2native_sockaddr_storage(const ldns_rdf *rd, uint16_t port, size_t *size); time_t ldns_rdf2native_time_t(const ldns_rdf *rd); DESCRIPTION
ldns_native2rdf_int8() returns the rdf containing the native uint8_t repr. type: the ldns_rdf type to use value: the uint8_t to use Returns ldns_rdf* with the converted value ldns_native2rdf_int16() returns the rdf containing the native uint16_t representation. type: the ldns_rdf type to use value: the uint16_t to use Returns ldns_rdf* with the converted value ldns_native2rdf_int32() returns an rdf that contains the given int32 value. Because multiple rdf types can contain an int32, the type must be specified type: the ldns_rdf type to use value: the uint32_t to use Returns ldns_rdf* with the converted value ldns_native2rdf_int16_data() returns an int16_data rdf that contains the data in the given array, preceded by an int16 specifying the length. The memory is copied, and an LDNS_RDF_TYPE_INT16DATA is returned size: the size of the data *data: pointer to the actual data Returns ldns_rd* the rdf with the data ldns_rdf2native_int8() returns the native uint8_t representation from the rdf. rd: the ldns_rdf to operate on Returns uint8_t the value extracted ldns_rdf2native_int16() returns the native uint16_t representation from the rdf. rd: the ldns_rdf to operate on Returns uint16_t the value extracted ldns_rdf2native_int32() returns the native uint32_t representation from the rdf. rd: the ldns_rdf to operate on Returns uint32_t the value extracted ldns_rdf2native_sockaddr_storage() returns the native sockaddr representation from the rdf. rd: the ldns_rdf to operate on port: what port to use. 0 means; use default (53) size: what is the size of the sockaddr_storage Returns struct sockaddr* the address in the format so other functions can use it (sendto) ldns_rdf2native_time_t() returns the native time_t representation from the rdf. rd: the ldns_rdf to operate on Returns time_t the value extracted (32 bits currently) AUTHOR
The ldns team at NLnet Labs. Which consists out of Jelte Jansen and Miek Gieben. REPORTING BUGS
Please report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at http://www.nlnetlabs.nl/bugs/index.html COPYRIGHT
Copyright (c) 2004 - 2006 NLnet Labs. Licensed under the BSD License. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. SEE ALSO
ldns_rdf. And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035. REMARKS
This manpage was automaticly generated from the ldns source code by use of Doxygen and some perl. 30 May 2006 ldns(3)
All times are GMT -4. The time now is 03:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy