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

added v1.18 pclntab check #3

Merged
merged 1 commit into from
Aug 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
added v1.18 pclntab check
  • Loading branch information
dannyquist committed Jul 27, 2022
commit c9b7e41de372de6035bbbfdb7e739c4b0b87f752
5 changes: 5 additions & 0 deletions 1.recreate_pclntab.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@

lookup = "FF FF FF FB 00 00" if is_be else "FB FF FF FF 00 00"
v116magic = "FF FF FF FA 00 00" if is_be else "FA FF FF FF 00 00" #0xFFFFFFFA #Needs testing
v118magic = "FF FF FF F0 00 00" if is_be else "F0 FF FF FF 00 00"


if info.is_32bit():
get_content = ida_bytes.get_dword
Expand All @@ -39,6 +41,9 @@
if ea == idaapi.BADADDR:
ea = idc.find_binary(0, idc.SEARCH_DOWN, v116magic)

if ea == idaapi.BADADDR:
ea = idc.find_binary(0, idc.SEARCH_DOWN, v118magic)

if ea != idaapi.BADADDR:
seg_start = ea
print("Segment start (magic header): ", hex(seg_start))
Expand Down