How to Generate DarunGrim DGF files from Command Line

Using DarunGrim doesn’t mean that you always need to use DarunGrim GUI to generate and analyze files. Everything can be scriptable from generating DGF files and initiating diffing process to consuming diffing data. Most of the data is saved in SQLite format and the schema of the tables used are pretty simple to understand and use.

So, first of all, today I’ll go through basic process of generating DGF files from IDB files. The DarunGrim plugin (DarunGrimPlugin.plw) exposes some useful functions to IDC scripts and it will enable you to do some custom operations.

First, write a IDC script like following. You can replace log file name used in SetLogFile function and the output filename used in SaveAnalysisData function to whatever of your choice. The 2nd and 3rd argument for SaveAnalysisData function is start and end EA (effective address). Just passing 0s for them will generate DGF file for whole code sections in the file.






After saving this file, you can simply run following command from the console. In this case, I assume that you saved the file as “DarunGrim.idc” file.


“C:\Program Files (x86)\IDA 6.5\idaq.exe” -A -L”IDALog.txt” -S”DarunGrim.idc” sample.idb


The IDALog.txt file will have the same log messages displayed on the log pane of the IDA GUI program. The DarunGrimLog.txt file will contain DarunGrim specific logs in it.

Depending on the IDB file size, it will take some time to generate output.dgf file.


5 Responses to How to Generate DarunGrim DGF files from Command Line

    • Molly says:

      The euraka is the same design as the Murray Isle Musk Duck in Tasmania Ausalarit. I paddled one 700kms doen the river murray, fantastic in flat water not so good when it gets rough. Perhaps go a slightly larger keel for tracking


  1. Yuriy says:

    Sorry I`m new here. Is there detailed description how to get diff?
    How to configure DarunGrim 4 to work with IDA Pro
    I can`t find any description. Thanks!


  2. Belle says:

    Love it.I saw this girl at a baseball game once (no hat nor heels mind you) but I snapped her up too.I hope I&2l817;#l be as good to her as your Grandpa was to Nana Ginger.


  3. Misty says:

    What a great giveaway! I denefitily need a foam roller as I just started training for my very first half marathon. Right now I use a rolling pin (but it hurts quite a bit more than a foam roller haha). My favorite way to sweat is definitely DANCING (zumba, hip hop, etc). I already follow you on OpenSky!


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: