mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
Candidate release of source code.
This commit is contained in:
parent
db81e6b3b0
commit
79d8f164f8
12449 changed files with 2800756 additions and 16 deletions
11
Ghidra/Features/Python/ghidra_scripts/ImportSymbolsScript.py
Normal file
11
Ghidra/Features/Python/ghidra_scripts/ImportSymbolsScript.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
#Imports a file with lines in the form "symbolName 0xADDRESS"
|
||||
#@category Data
|
||||
#@author
|
||||
|
||||
f = askFile("Give me a file to open", "Go baby go!")
|
||||
|
||||
for line in file(f.absolutePath): # note, cannot use open(), since that is in GhidraScript
|
||||
pieces = line.split()
|
||||
address = toAddr(long(pieces[1], 16))
|
||||
print "creating symbol", pieces[0], "at address", address
|
||||
createLabel(address, pieces[0], False)
|
Loading…
Add table
Add a link
Reference in a new issue