mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 02:09:44 +02:00
11 lines
409 B
Python
11 lines
409 B
Python
#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)
|