Extracts string references to Rust crates in compiled Rust programs.
Download the RustDependencyStrings.py file and place it into the ~/ghidra_scripts directory.
mkdir ~/ghidra_scripts
curl -L "https://raw.githubusercontent.com/BinaryDefense/GhidraRustDependenciesExtractor/main/RustDependencyStrings.py" -o ~/ghidra_scripts/RustDependencyStrings.pyRun Ghidra and click on the green dragon CodeBrowser icon in the Tool Chest.
Open the Script Manager window by selecting Window -> Script Manager in the application menu.
Select the Manage Script Directories button in the top right corner of the script manager window.
Add the ~/ghidra_scripts directory as a bundle.
Click Ok and the ~/ghidra_scripts directory should be added as a script search directory for Ghidra indicated by a green path location and check mark.
Exit out of the bundle manager and refresh the script list.
Ensure the script RustDependencyStrings.py is available in the list.
The script is now loaded and can be ran by opening a Rust binary, navigating to the Script Manager window, and double-clicking on the RustDependencyStrings.py script.








