Join 34,000+ subscribers and receive articles from our
blog about software quality, testing, QA and security.

Obfuscated log file data


#1

Is there a method to de-obfuscate a log file automatically?

I’m viewing a binary log file format and it’s pretty useless when all the strings are obfuscated. It seems I can only export in html format and then I can de-obfuscate it so it makes sense. Would be good if this could be exported to a text file but I must admit the html with images looks good.

I can also configure a text logging option as well and then de-obfuscate that but the ability to have the text automatically de-obfuscate would be great.


#2

Hello Glen,

Thanks for your posting. The (binary) SmartInspect log file are not obfuscated in the traditional sense but only use a binary protocol (for space and performance reasons). You can use the SmartInspect SDK to parse and convert log files, or use the XML export in the Console and then post-process the files:

http://www.gurock.com/smartinspect/extras/

Regards,
Tobias


#3

OK, I’ve had a look at the SDK. As you know it’s undocumented and unfortunately I have no idea how I can use it to parse the si binary log file.
I now have the code to de-obfuscate a text file so was hoping to be able to parse the log file somehow and replace the obfuscated strings therein.
The desired end result is to still use the si log viewer but displaying the de-obfuscated strings as well as retaining appropriate indentations/icons etc.
What methods in the SDK do I need to use to achieve this?
Thanks.


#4

Hello Glen,

Thanks for your reply. You can take a look at the Resource Kit which demonstrates how to use the SDK:

http://www.gurock.com/smartinspect/extras/
http://www.gurock.com/downloads/smartinspect/siresourcekit.zip

It contains two example tools that demonstrate how to parse and iterate through a (binary) SmartInspect log file.

I hope this helps!

Regards,
Tobias


#5

I played around with the Split method and got it to work.

Thanks.


#6

You are welcome, Glen!

Regards,
Tobias