Reverse Engineering
Ghidra is a software reverse engineering (SRE) framework developed by NSA. It includes a suite of full-featured, high-end software analysis tools for analyzing compiled code.
sudo apt install ghidra
ghidraRun
Ghidra is a software reverse engineering framework developed by the NSA. It includes a suite of tools for analyzing compiled code, including disassembly and decompilation.
The tool supports multiple processor architectures and executable formats. It features a built-in decompiler that converts assembly to pseudo-C code.
Ghidra is widely used for malware analysis, vulnerability research, and software reverse engineering. Its headless mode enables automated batch analysis.
ghidraLaunch the Ghidra graphical reverse-engineering suite on KalighidraRunAlternative launcher script that starts the Ghidra GUIanalyzeHeadless /path/to/projects MyProject -import /path/to/binaryImport a binary into a project and auto-analyze it without the GUIanalyzeHeadless /path/to/projects MyProject -import /path/to/binary -overwriteRe-import a binary, overwriting any existing program of the same nameanalyzeHeadless /path/to/projects MyProject -import /path/to/dir -recursiveRecursively import every file in a directory treeanalyzeHeadless /path/to/projects MyProject -import /path/to/binary -noanalysisImport without running auto-analysis (analyze later)analyzeHeadless /path/to/projects MyProject -processRe-run analysis/scripts against programs already in the projectanalyzeHeadless /path/to/projects MyProject -process binary -postScript Decompile.javaRun a post-analysis script against an existing programanalyzeHeadless /path/to/projects MyProject -import /path/to/binary -postScript MyScript.pyImport, analyze, then run a Python (Jython) post-scriptanalyzeHeadless /path/to/projects MyProject -import /path/to/binary -preScript Setup.javaRun a script before analysis beginsanalyzeHeadless /path/to/projects MyProject -import bin -scriptPath /path/to/scriptsSpecify where Ghidra should look for headless scriptsanalyzeHeadless /path/to/projects MyProject -import bin -deleteProjectDelete the project after the headless run completesanalyzeHeadless /path/to/projects MyProject -import bin -processor x86:LE:64:defaultForce a specific processor language ID for analysisanalyzeHeadless /path/to/projects MyProject -import bin -cspec gccSet the compiler specification used during analysisanalyzeHeadless /path/to/projects MyProject -import bin -loader ElfLoaderChoose a specific loader for the imported fileAnalyze malware samples and understand behavior.
Find vulnerabilities in compiled software.
Understand compiled code without source.
Solve reverse engineering CTF problems.
The interface displays several panes including the raw hex, the assembly instructions, a graphical function flow, and a high-level decompiled representation of the code.
This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.