Author Topic: Decoding Audit contents in t_snapshot  (Read 1688 times)

JayBee

  • EA Novice
  • *
  • Posts: 14
  • Karma: +1/-0
    • View Profile
Decoding Audit contents in t_snapshot
« on: April 04, 2013, 02:46:25 am »
I would like to get a look at the contents of BinContent1 and BinContent2 in t_snapshot. Not sure how it is encoded and how to go about decoding it. Anyone have any tips?
Thanks
JB

qwerty

  • EA Guru
  • *****
  • Posts: 9668
  • Karma: +176/-150
  • I'm no guru at all
    • View Profile
Re: Decoding Audit contents in t_snapshot
« Reply #1 on: April 04, 2013, 04:34:45 am »
It's base64 encoded containing a zip with a str.dat file.

q.

Ian Mitchell

  • EA User
  • **
  • Posts: 255
  • Karma: +5/-1
    • View Profile
Re: Decoding Audit contents in t_snapshot
« Reply #2 on: August 31, 2017, 12:16:26 am »
does anyone have any code for this? To go from the BinContent1 to some XML i can use?
Ian Mitchell, Designer, eaDocX

www.eaDocX.com
www.theartfulmodeller.com

qwerty

  • EA Guru
  • *****
  • Posts: 9668
  • Karma: +176/-150
  • I'm no guru at all
    • View Profile
Re: Decoding Audit contents in t_snapshot
« Reply #3 on: August 31, 2017, 03:31:34 am »
Well, it depends on the language and the libs you have. Basically you use base64 decode which gives you a binary blob. This is pack into an unzipper that should happily detect a single file inside named str.dat. And that's finally what you need.

q.

Ian Mitchell

  • EA User
  • **
  • Posts: 255
  • Karma: +5/-1
    • View Profile
Re: Decoding Audit contents in t_snapshot
« Reply #4 on: August 31, 2017, 08:11:02 pm »
I get the basic idea. It's just that I need some C# or VB.net to get it done. Do you have anything ?
Ian Mitchell, Designer, eaDocX

www.eaDocX.com
www.theartfulmodeller.com

qwerty

  • EA Guru
  • *****
  • Posts: 9668
  • Karma: +176/-150
  • I'm no guru at all
    • View Profile
Re: Decoding Audit contents in t_snapshot
« Reply #5 on: August 31, 2017, 08:52:24 pm »
Unfortunately no. Geert could be of help (but I guess he's on summer vacation).  I only could give advice for Perl and Python.

q.

Ian Mitchell

  • EA User
  • **
  • Posts: 255
  • Karma: +5/-1
    • View Profile
Re: Decoding Audit contents in t_snapshot
« Reply #6 on: April 16, 2018, 11:12:03 pm »
OK - I now have code to extract this, if anyone ever needs it.
Ian Mitchell, Designer, eaDocX

www.eaDocX.com
www.theartfulmodeller.com

Phosis

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Decoding Audit contents in t_snapshot
« Reply #7 on: April 17, 2018, 02:17:30 am »
I'd be interested in that, if possible.  Haven't worked with base 64 decoding before.

qwerty

  • EA Guru
  • *****
  • Posts: 9668
  • Karma: +176/-150
  • I'm no guru at all
    • View Profile
Re: Decoding Audit contents in t_snapshot
« Reply #8 on: April 17, 2018, 07:01:27 am »
Base64 is simple. You can use notepad++'s MIME tools base64 en-/decode for a manual approach.

q.