Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] module 'idaapi' has no attribute 'compiled_binpat_vec_t' #27

Open
neobenedict opened this issue Sep 4, 2022 · 14 comments
Open

[BUG] module 'idaapi' has no attribute 'compiled_binpat_vec_t' #27

neobenedict opened this issue Sep 4, 2022 · 14 comments
Assignees
Labels
bug Something isn't working

Comments

@neobenedict
Copy link

neobenedict commented Sep 4, 2022

Traceback (most recent call last):
  File "C:/Program Files/IDA 7.0/plugins/DriverBuddyReloaded.py", line 465, in run
    driver_type = utils.get_driver_id(driver_entry_addr, log_file)
  File "C:/Program Files/IDA 7.0/plugins\DriverBuddyReloaded\utils.py", line 209, in get_driver_id
    populate_wdf()
  File "C:/Program Files/IDA 7.0/plugins\DriverBuddyReloaded\wdf.py", line 102, in populate_wdf
    binpat = idaapi.compiled_binpat_vec_t()
AttributeError: module 'idaapi' has no attribute 'compiled_binpat_vec_t'

Version 7.5.201028 Windows x64 (64-bit address size)

7.6 minimum required?

@neobenedict neobenedict added the bug Something isn't working label Sep 4, 2022
@VoidSec
Copy link
Owner

VoidSec commented Sep 6, 2022

It was tested starting from IDA 7.6 but shouldn't be mandatory. Which version of python you're on?

@VoidSec VoidSec self-assigned this Sep 6, 2022
@neobenedict
Copy link
Author

3.8.3

I'll try a later version of IDA in a few days.

@zeze-zeze
Copy link
Contributor

Same issue in IDA 7.5 and Python 3.9.4

@VoidSec
Copy link
Owner

VoidSec commented Sep 29, 2022

would you mind sharing the driver causing the error?

@zeze-zeze
Copy link
Contributor

Sure, it is not rare to find such driver.
NVSWCFilter64.zip

@VoidSec
Copy link
Owner

VoidSec commented Oct 5, 2022

Tested on IDA 7.6 on Python 3.10.4, fixed in https://github.com/VoidSec/DriverBuddyReloaded/releases/tag/1.6

@VoidSec VoidSec closed this as completed Oct 5, 2022
@rjt-gupta
Copy link

Sorry to remention, but Im facing this on latest release. However, I'm on IDA v7.2. Any resolution for this?

@VoidSec
Copy link
Owner

VoidSec commented May 23, 2023

@rjt-gupta would you mind sharing the driver causing the error? You can send me an email at voidsec[at]voidsec.com if you'd like to keep it private.

@HongThatCong
Copy link

HongThatCong commented May 23, 2023

compiled_binpat_vec_t struct/class still did not existed in IDA SDK <= 7.5
image

@VoidSec
Copy link
Owner

VoidSec commented May 23, 2023

@HongThatCong thank you very much for pointing that out! I'll update the readme in order to reflect that requirement

@rjt-gupta
Copy link

@HongThatCong @VoidSec Thanks for the clarification. Unfortunately, I can't share the driver since its proprietary. But, please let me know if there is a workaround for this issue for IDA < v7.5

@HongThatCong
Copy link

HongThatCong commented May 24, 2023

Yes, @VoidSec can rewrite the binary search function with code in picture above and this picture:
If IDA <= 7.5 uses idaapi.find_binary function else uses idaapi_binsearch function.
image
Best regards,
TQN

@rjt-gupta
Copy link

@VoidSec Do you plan to fix this anytime soon?

@VoidSec
Copy link
Owner

VoidSec commented Jun 2, 2023

I'll probably take some time next week to patch some of these bugs.

@VoidSec VoidSec reopened this Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants