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] parse_binpat_str expected at least 4 arguments #18

Closed
loveraven42 opened this issue Apr 10, 2022 · 3 comments
Closed

[BUG] parse_binpat_str expected at least 4 arguments #18

loveraven42 opened this issue Apr 10, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@loveraven42
Copy link

Describe the bug
When I try to decode cdrom.sys, it will occur python warning.

To Reproduce
Steps to reproduce the behavior:

  1. use ida to reverse cdrom.sys
  2. Ctrl+Alt+A
Traceback (most recent call last):
  File "C:/Users/raven/Desktop/ida77sp1/x64_idapronw_hexarm64w_hexarmw_hexmipsw_hexppc64w_hexppcw_hexx64w_hexx86w_220118/plugins/DriverBuddyReloaded.py", line 466, in run
    driver_type = utils.get_driver_id(driver_entry_addr, log_file)
  File "C:/Users/raven/Desktop/ida77sp1/x64_idapronw_hexarm64w_hexarmw_hexmipsw_hexppc64w_hexppcw_hexx64w_hexx86w_220118/plugins\DriverBuddyReloaded\utils.py", line 205, in get_driver_id
    populate_wdf()
  File "C:/Users/raven/Desktop/ida77sp1/x64_idapronw_hexarm64w_hexarmw_hexmipsw_hexppc64w_hexppcw_hexx64w_hexx86w_220118/plugins\DriverBuddyReloaded\wdf.py", line 753, in populate_wdf
    idx = ida_bytes.bin_search(ea, idaapi.BADADDR, ida_bytes.parse_binpat_str("KmdfLibrary"),
  File "C:\Users\raven\Desktop\ida77sp1\x64_idapronw_hexarm64w_hexarmw_hexmipsw_hexppc64w_hexppcw_hexx64w_hexx86w_220118\python\3\ida_bytes.py", line 3903, in parse_binpat_str
    return _ida_bytes.parse_binpat_str(*args)
TypeError: parse_binpat_str expected at least 4 arguments, got 1

Expected behavior

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS and version: Windows 11
  • IDA version IDA 7.7
  • DriverBuddyReloaded Version: HEad
  • Python Version 3.9

Additional context
Add any other context about the problem here.

@loveraven42 loveraven42 added the bug Something isn't working label Apr 10, 2022
VoidSec referenced this issue Apr 11, 2022
implement WDF driver's structures
@VoidSec VoidSec self-assigned this Apr 11, 2022
@VoidSec
Copy link
Owner

VoidSec commented Apr 11, 2022

Hi, thank you for the issue. It has been caused by the following fix: 84598ca#r71017059

Could you please try the release v.1.3 https://github.com/VoidSec/DriverBuddyReloaded/releases/tag/1.3 and let me know the result?

Regards

@VoidSec VoidSec changed the title [BUG] [BUG] parse_binpat_str expected at least 4 arguments Apr 11, 2022
@loveraven42
Copy link
Author

you are right, it has been fixed in releases 1.3

@VoidSec
Copy link
Owner

VoidSec commented Apr 25, 2022

fixed in #20

@VoidSec VoidSec closed this as completed Apr 25, 2022
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

2 participants