Skip to content

ykankaya/ghidra_ExportToX64dbg

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

ExportToX64dbg

A Ghidra script to export information to a x64dbg database.

Screenshot x64dbg

Features

  • Exports functions, function names (as labels), and function prototypes (as comments)
  • Exports labels for global variables
  • Exports bookmarks
  • Exports some (see Limitations) decompiled C statements (as comments)

Installation

Copy ExportToX64dbg.py to your Ghidra scripts directory (the Script Manager has a button to show you all directories where Ghidra is looking for scripts).

If the script is not shown in the Script Manager, try the 'Refresh Script List` button.

Usage

  • Run the script
  • Select a filename for the database (matching suffix will be appended automatically)
  • In x64dbg: Import the database (File -> Import database)

Bugs/Limitations

  • Not the full decompiled source code gets exported as comments

At the moment the source code export is limited to elements that appear as ClangStatement in the ClangTokenGroup returned by getCCodeMarkup(). This works fine for most variable assignments and function calls, but excludes most control flow altering constructs (like if, for or while).

Similar projects

GhidraX64Dbg

ret-sync

lst2x64dbg

About

A Ghidra script to export data to a x64dbg database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%