{"id":13754940,"url":"https://github.com/utkonos/lst2x64dbg","last_synced_at":"2025-10-10T06:22:40.853Z","repository":{"id":112706324,"uuid":"192132238","full_name":"utkonos/lst2x64dbg","owner":"utkonos","description":"Extract labels from IDA, Ghidra, Binary Ninja, and Relyze files and export x64dbg database. Including radare2 main address.","archived":false,"fork":false,"pushed_at":"2023-11-14T01:18:19.000Z","size":2209,"stargazers_count":112,"open_issues_count":0,"forks_count":15,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-05-10T00:35:09.112Z","etag":null,"topics":["binary-ninja","extract-labels","ghidra","ida","labels","radare2","relyze","symbol-table"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/utkonos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-06-15T23:27:35.000Z","updated_at":"2025-03-21T08:50:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"712b76c2-2094-4b6b-83c5-df9b622807e0","html_url":"https://github.com/utkonos/lst2x64dbg","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/utkonos/lst2x64dbg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utkonos%2Flst2x64dbg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utkonos%2Flst2x64dbg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utkonos%2Flst2x64dbg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utkonos%2Flst2x64dbg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/utkonos","download_url":"https://codeload.github.com/utkonos/lst2x64dbg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utkonos%2Flst2x64dbg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002973,"owners_count":26083489,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["binary-ninja","extract-labels","ghidra","ida","labels","radare2","relyze","symbol-table"],"created_at":"2024-08-03T10:00:37.263Z","updated_at":"2025-10-10T06:22:40.816Z","avatar_url":"https://github.com/utkonos.png","language":"Python","funding_links":[],"categories":["\u003ca id=\"6fb7e41786c49cc3811305c520dfe9a1\"\u003e\u003c/a\u003e导入导出\u0026与其他工具交互","Tools","Programming/Comp Sci/SE Things"],"sub_categories":["\u003ca id=\"c7066b0c388cd447e980bf0eb38f39ab\"\u003e\u003c/a\u003eGhidra","Conferences","x64dbg - Debugger"],"readme":"# lst2x64dbg\nThis command extracts all the labels found in the LST file that is given as\nthe single argument. An x64dbg database is created in the current directory\nbased on the extracted labels.\n\nThe LST file can be generated in IDA from the **File** menu: **Produce file -\u003e Create LST file...**\n\n## Example\n\n    $ lst2x64dbg sample.lst\n\n# ghidra2x64dbg\nThis command extracts all the labels found in the CSV file that is given as\nthe single argument. An x64dbg database is created in the current directory\nbased on the extracted labels. The imagebase value must be supplied.\n\nThe CSV file can be generated in Ghidra from the **Window** menu by selecting **Symbol Table**\n\nIn the symbol table window that opens, sort the data by the **Location** column. Then select all\nsymbols that are *not* external locations. With the desired symbols selected, right click and select:\n**Export -\u003e Export to CSV...**\n\n**NOTE: If you happen to select external locations, they will be ignored.**\n\n![Symbol Table](/images/symbol_table.png)\n\nName this file `\u003cmodule_name\u003e.csv`\n\n## Example\n\n    $ ghidra2x64dbg -i 400000 sample.csv\n\nThe imagebase value can be found at the very top of the disassembly panel in the CodeBrowser window.\nIt's part of the DOS header.\n\n![Image Base](/images/imagebase.png)\n\n## Configuration for More Labels\n\nGhidra has one analysis option that is off by default that can provide more labels for code in a sample in certain situations. This option, `WindowsPE x86 Propagate External Parameters` is found in the Analysis Options window when a sample is first opened in the CodeBrowser tool.\n\n![Analysis Options](/images/ghidra_more_labels.png)\n\n# binja2x64dbg\nThis command extracts all the labels found in a Binary Ninja bnida JSON file given as a single argument.\nAn x64dbg database is created in the current directory based on the extracted labels. The imagebase value\nmust be supplied.\n\nTo generate a bnida file from Binary Ninja, one must first install the plugin according to the instructions:\n\nhttps://zznop.github.io/bnida/\n\nOnce the executable is loaded in Binary Ninja, navigate to the **Tools** menu and select **bnida: Export analysis data**.\n\n![BinaryNinja](/images/binja.png)\n\nName this file `\u003cmodule_name\u003e.json`\n\n## Example\n\n    $ binja2x64dbg -i 400000 sample.json\n\n# relyze2x64dbg\nThis command extracts all the labels found in a x64dbg database generated by Relyze given as a single argument.\nAn x64dbg database is created in the current directory based on the extracted labels.\n\nTo generate a x64dbg database in Relyze, simply open the executable and in the **Code** view, right click, and export.\n\n![Relyze](/images/relyze.png)\n\nName this file `\u003cmodule_name\u003e_relyze.dd32` or `\u003cmodule_name\u003e_relyze.dd64`\n\n## Example\n\n    $ relyze2x64dbg sample_relyze.dd32\n\n# Support for radare2\nBoth commands now support inclusion of the location for main() as detected by\nradare2. Just add `-r` or `-main` to either command like this:\n\n    $ lst2x64dbg -r 0x0040a53a sample.lst\n\nJust cut and paste the virtual address for main from Cutter's UI or from radare2 command line.\n\n![Main](/images/radare2_main.png)\n\n# Workflow Notes\nEach of these tools will check the current directory for an x64dbg database that was created by a previous run of one of\nthe tools. Any offset from that database that already has a label will not be changed by a subsequent run of any of the\ntools. In other words, each tool expands the list of labels, but does not overwrite any labels that already exist.\n\nIf you have manually created labels, it is recommended to only create them in one disassembler. Also, make that disassembler's\noutput the very first to be processed by one of the above tools. This way all your custom labels are guaranteed to exist\nin the new x64dbg database.\n\nIn a future iteration of this software there will be a way to deconflict at the merge step of the processing.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futkonos%2Flst2x64dbg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Futkonos%2Flst2x64dbg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futkonos%2Flst2x64dbg/lists"}