Reply to topic  [ 3 posts ] 
Reading binary files 
Author Message
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 6:36 pm
Posts: 5150
Location: /dev/tty0
Reply with quote
Hi all,

I have some files we've downloaded from one of the trains we run. We can do analysis on them manually by loading them back into the application that downloaded them, however, we want to automate this process.
The automation shouldn't be too difficult, however, the files are not simple XML/CSV type files, and some are clearly binary files.

Does anyone have any experience in looking through a binary file and weeding out the information? I have asked for file specifications, but the French engineers have not been forthcoming...

Thanks for any words of advice,
Ben


Wed Oct 27, 2010 11:53 am
Profile WWW
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 9:40 pm
Posts: 5288
Location: ln -s /London ~
Reply with quote
I'd open it in something like VBinDiff to see if there was any obvious ASCII encoded stuff as a starting point, I guess.

_________________
timark_uk wrote:
Gay sex is better than no sex

timark_uk wrote:
Edward Armitage is Awesome. Yes, that's right. Awesome with a A.


Wed Oct 27, 2010 12:36 pm
Profile
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 6:58 pm
Posts: 8767
Location: behind the sofa
Reply with quote
PSpad would be my first choice on Windows, because it's what I open everything with. Something like a WAV file for example, you can clearly see the RIFF header and any extra info that might be there.

I'm guessing you've already done something similar though; namely looking for embedded ascii in the file? And there's nothing obvious?

If it's a pure data file in a custom format, then your best bet is to reverse engineer the application. It might not be so hard; try opening the executable in a text editor and you'll probably find a good few clues.

_________________
jonbwfc's law: "In any forum thread someone will, no matter what the subject, mention Firefly."

When you're feeling too silly for x404, youRwired.net


Wed Oct 27, 2010 11:44 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.