strazzere / golang_loader_assist Goto Github PK
View Code? Open in Web Editor NEWMaking GO reversing easier in IDA Pro
License: GNU General Public License v3.0
Making GO reversing easier in IDA Pro
License: GNU General Public License v3.0
golang_loader_assist.py: 'NoneType' object has no attribute 'startEA'
Traceback (most recent call last):
File "C:\Program Files (x86)\IDA 6.95\python\ida_idaapi.py", line 509, in IDAPython_ExecScript
execfile(script, g)
File "C:/Program Files (x86)/IDA 6.95/plugins/golang_loader_assist.py", line 330, in
main()
File "C:/Program Files (x86)/IDA 6.95/plugins/golang_loader_assist.py", line 315, in main
func_added = runtime_init()
File "C:/Program Files (x86)/IDA 6.95/plugins/golang_loader_assist.py", line 248, in runtime_init
runtime_ms = create_runtime_ms()
File "C:/Program Files (x86)/IDA 6.95/plugins/golang_loader_assist.py", line 186, in create_runtime_ms
if idc.MakeNameEx(runtime_ms.startEA, "runtime_morestack", SN_PUBLIC):
AttributeError: 'NoneType' object has no attribute 'startEA'
The structure is similar, if not the same, for PE files - allow parsing of these.
Is your feature request related to a problem? Please describe.
Per this;
https://reverseengineering.stackexchange.com/questions/24999/extracting-strings-from-go-binaries
I guess I didn't try this on non-x86 binaries? I thought I had, but I guess not?
Describe the solution you'd like
Gather and test arm binaries agains tthis.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Describe the bug
I got this error with IDA Pro 7.6, Python 3.7.8, Python 3.8.10, Python 3.9.2, Python 3.11
golang_loader_assist.py: object of type 'NoneType' has no len()
Traceback (most recent call last):
File "C:\Users\admin\Downloads\IDA Pro 7.6.210427 (x86,x64,ARM,ARM64,PPC,PPC64,MIPS)\x64_idapronw_hexarm64w_hexarmw_hexmipsw_hexppc64w_hexppcw_hexx64w_hexx86w_210427\python\3\ida_idaapi.py", line 616, in IDAPython_ExecScript
exec(code, g)
File "E:/www/golang_loader_assist.py", line 452, in <module>
main()
File "E:/www/golang_loader_assist.py", line 440, in main
renamed = renamer_init()
File "E:/www/golang_loader_assist.py", line 386, in renamer_init
ida_bytes.create_strlit(func_name_addr, len(func_name), STRTYPE_C)
TypeError: object of type 'NoneType' has no len()
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Binary or Golang code to reproduce against
If you're able to write a snippet of golang code and/or provide an actual targeted binary, this would help immensely to reproduce the problems.
Additional context
Add any other context about the problem here.
The structure is similar, if not the same, for MachO files - allow parsing of these.
Looks like there's already a fork that has it, maybe this would be a good idea to integrate in a pull request or separate branch.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.