Skip to content
Extract labels from IDA .lst or Ghidra .csv file and export x64dbg database.
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
images Change image resolution Jun 16, 2019
.gitignore Add local data and output files to gitignore Jun 16, 2019
LICENSE Update LICENSE Jun 15, 2019
README.md Update README Jun 17, 2019
ghidra2x64dbg.py Exclude unnamed thunk functions Jun 21, 2019
lst2x64dbg.py Add detection for x64 and a correct file extension for 64bit Jun 28, 2019

README.md

lst2x64dbg

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...

NOTE: If you happen to select external locations, they will be ignored.

Symbol Table

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.

Image Base

ToDo

  • Convert to package with console script
You can’t perform that action at this time.