Lst2x64dbg : Extract Labels From IDA .lst or Ghidra .csv File & Export x64dbg Database

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

Name this file <module_name>.csv

Also Read – Best Way to Learn Programming Online If You’re Tired of Books and Tutors

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.

R K

Recent Posts

Install Mono on Ubuntu 18.04: C# Compiler and Runtime Guide

Running programs built for Microsoft's framework on a Linux system is easier than you think. Mono is…

9 hours ago

Install OpenCV on Ubuntu 18.04: Step-by-Step Setup Guide

Computer vision technology powers many modern applications, from image editors to facial scanners. OpenCV (Open Source Computer…

9 hours ago

Install VNC on Ubuntu 18.04: Step-by-Step TigerVNC Setup

A remote desktop interface makes it easy to manage a remote computer. VNC (Virtual Network Computing) is…

9 hours ago

Install Gitea on Ubuntu 18.04: Self-Hosted Git Service Guide

Hosting your own code repositories is a great way to keep your projects private. Gitea is a…

10 hours ago

Install Java on Ubuntu 18.04: OpenJDK 11 and OpenJDK 8

Many modern programs require Java to run. From development tools like Eclipse to search systems…

10 hours ago

Configure a Static IP Address on Ubuntu 18.04: Netplan Guide

Setting a static IP address on your server is a smart move. It ensures your…

1 day ago