Lst2X64Dbg - Extract labels from IDA .lst or Ghidra .csv file and export x64dbg database

This script extracts all the labels found in the LST file that is given as the script's single argument. An x64dbg database is created in the current directory based on the extracted labels.
The LST file can be generated in IDA from the File menu: Produce file -> Create LST file...

Example
$ python3 lst2x64dbg.py sample.lst

ghidra2x64dbg
This script extracts all the labels found in the CSV file that is given as the script's single argument. An x64dbg database is created in the current directory based on the extracted labels. The imagebase value must be supplied.
The CSV file can be generated in Ghidra from the Window menu by selecting Symbol Table
In the symbol table window that opens, sort the data by the Location column. Then select all symbols that are not external locations. With the desired symbols selected, right click and select: Export -> Export to CSV...


Name this file <module_name>.csv

Example
$ python3 ghidra2x64dbg.py -i 400000 sample.csv
The imagebase value can be found at the very top of the disassembly panel in the CodeBrowser window. It's part of the DOS header.


ToDo
  • Convert to package with console script


Lst2X64Dbg - Extract labels from IDA .lst or Ghidra .csv file and export x64dbg database Lst2X64Dbg - Extract labels from IDA .lst or Ghidra .csv file and export x64dbg database Reviewed by Zion3R on 6:08 PM Rating: 5