Skip to content
Open
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion utils/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from ghidra.program.model.pcode import PcodeOp,HighFunctionDBUtil
#from ghidra.program.database.function import FunctionManager
from ghidra.app.cmd.function import CreateFunctionCmd
from generic.continues import RethrowContinuesFactory
from ghidra.app.script import GhidraScript
from ghidra.app.util.bin import ByteProvider
from ghidra.app.util.bin import RandomAccessByteProvider
Expand Down
2 changes: 1 addition & 1 deletion utils/kext.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__(self,objects,isKernel=False,shared_p = "macOS11.2.3"):
self.read32 = lambda off: struct.unpack("<I",self.br.readByteArray(off,4))[0]
self.image_base = currentProgram.getImageBase()
self.provider = RandomAccessByteProvider(f)
self.header = MachHeader.createMachHeader( RethrowContinuesFactory.INSTANCE, self.provider )
self.header = MachHeader(self.provider)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a second occurrence of createMachHeader in custom_kc.py, probably worth fixing too

self.header.parse()
self.br = BinaryReader(self.provider,True)

Expand Down