Coder Social home page Coder Social logo

strazzere / golang_loader_assist Goto Github PK

View Code? Open in Web Editor NEW
625.0 27.0 121.0 16.09 MB

Making GO reversing easier in IDA Pro

License: GNU General Public License v3.0

Python 98.74% Makefile 0.84% Go 0.42%
ida reverse-engineering golang python

golang_loader_assist's Issues

problems on IDA Pro Version 6.95.160808 (64-bit)

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'

Support non-x86 arch binaries.

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.

Python error: object of type 'NoneType' has no len()

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):

  • OS: Windows 11
  • IDA version 7.6

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.