105 Commits

Author SHA1 Message Date
vit9696
0b3dcf4f7e OcAppleKernelLib: Improve handling of KC DySymtab 2020-07-04 20:21:37 +03:00
Download-Fritz
07b697d28d OcMachoLib: Support KC Mach-Os 2020-07-04 15:28:22 +02:00
vit9696
0271bacc27 OcAppleKernelLib: More progress with 11.0, many thx to @Download-Fritz 2020-07-04 01:58:04 +03:00
Download-Fritz
275c78bbd7 OcMachoLib: Add API to externally retrieve symbols 2020-06-29 20:28:23 +02:00
Download-Fritz
5d0b9f4832 OcMachoLib: Remove redundant alignment checks 2020-06-29 19:31:36 +02:00
vit9696
83b77fff56 OcMachoLib: Fix MSVC warning 2020-06-28 19:18:47 +03:00
Download-Fritz
0ad48de5b4 OcMachoLib: Make the LC retrieval API public 2020-06-28 17:47:19 +02:00
vit9696
de272bf210 OcMachoLib: Fix KC init and segment merging 2020-06-28 12:01:54 +03:00
vit9696
ebdc3fa056 OcAppleKernelLib: Start building new Mach-O functions 2020-06-27 20:55:16 +03:00
vit9696
e6bec3ae80 Debug: Fix some log tags 2020-05-17 16:53:02 +03:00
vit9696
4421b5a758 OcBootManagementLib: Debug restyle 2019-11-04 18:51:48 +03:00
Download-Fritz
156cb7c586 Various type and cast fixes 2019-11-02 23:16:33 +01:00
Download-Fritz
6c882e1cbc OcMachoLib/OcAppleKernelLib: Support Kernel Resource KEXTs 2019-09-07 17:28:36 +02:00
Download-Fritz
4917e8d73e OcGuardLib: Introduce OC_ALIGNOF and deprecate OC_ALIGNED 2019-08-28 15:37:55 +02:00
vit9696
e011d9030f OcMachoLib: Implement MachoRuntimeGetEntryAddress 2019-04-30 22:08:08 +03:00
Download-Fritz
4203232842 OcMachoLib: Do not ASSERT on Section->SegmentName mismatch. 2019-04-05 13:30:25 +02:00
vit9696
dfe7f8f5d4 analysis: Fix warnings 2019-04-03 06:37:38 +03:00
Download-Fritz
e17d99deb4 OcMachoLib: Fail when image is to be dynamically linked and lacks DySymtab. 2019-03-29 12:43:45 +01:00
Download-Fritz
826d078efd OcMachoLib and OcAppleMachoLib: Silence type warnings. 2019-03-29 10:38:42 +01:00
vit9696
f0268b6ed3 OcMachoLib: Fix expansion of images with segment size mismatch before last 2019-03-28 22:56:51 +03:00
vit9696
737e17c847 OcMachoLib: Implement support for unpacking FAT images 2019-03-27 19:36:25 +03:00
vit9696
2c84d36d84 OcAppleKernelLib: Fix inaccurate bounds checking in Mach-O expansion 2019-03-25 01:38:14 +03:00
Download-Fritz
f760c0ca74 OcMachoLib and OcAppleKernelLib: Silence warnings. 2019-03-24 13:17:29 +01:00
vit9696
2a72e67ac0 Move command stripping to Mach-O lib 2019-03-24 11:52:10 +03:00
vit9696
e169a7aa7e Ensure 1:1 disk:vm mach-o matching requirement during kext inject 2019-03-24 01:50:57 +03:00
Download-Fritz
8454cdd574 OcAppleKernelLib: Retrieve Relocation target via GetPointerByAddress API. 2019-03-23 21:03:54 +01:00
Download-Fritz
25616b2e21 OcMachoLib: Check Section bounds against Segment. 2019-03-23 20:26:22 +01:00
vit9696
72b4e55786 Fix invalid Mach-O command handling during kext injection 2019-03-23 17:17:33 +03:00
vit9696
868c064fb1 Get symbol location work 2019-03-23 15:05:12 +03:00
vit9696
30fb879941 Add internal symbol table stubs 2019-03-20 16:07:18 +03:00
vit9696
59f86290b6 Add missing Mach-O dependencies 2019-03-19 23:16:17 +03:00
vit9696
27eb6080ba Start refactoring SMBIOS 2019-03-01 20:07:50 +03:00
vit9696
c1ef04e47c Fix OcMachoLib compilation 2019-01-17 12:34:26 +03:00
vit9696
caabf0b2ab Continue fixing and refactoring OcMachoLib 2019-01-16 17:46:10 +03:00
vit9696
aca4a620ac Fix sanity of symbol retrieval code 2019-01-16 13:15:22 +03:00
vit9696
69f441b5ec Restore OcMachoLib interfaces for convenience resons 2019-01-15 23:34:01 +03:00
Download-Fritz
28c65c9e9e OcMachoLib: Add forgotten initialization of Context->SymbolTable. 2019-01-15 19:14:10 +01:00
vit9696
a43cb1386e Start cleaning up OcMachoLib 2019-01-15 18:23:29 +03:00
Download-Fritz
793b78d103 OcMachoLib: Revise several function prorotypes and checks as part of security considerations. 2019-01-12 22:57:57 +01:00
Download-Fritz
fbac1c4258 OcMachoLib: Runtime-check whether the next LC is in bounds to allow "!= NULL" loops. 2019-01-05 16:29:48 +01:00
Download-Fritz
e92ab78bfc OcMachoLib: Add forgotten change. 2019-01-05 15:38:28 +01:00
Download-Fritz
dac925cd58 Runtime-check whether the next section is in bounds to allow "!= NULL" loops. 2019-01-05 15:37:46 +01:00
Download-Fritz
dde6882ba3 OcMachoLib: Drop inconvenient CONST qualifiers. 2019-01-05 15:37:14 +01:00
Download-Fritz
6b4d5120b6 OcMachoLib: Do not use CONST qualifier in casts for readability. 2018-11-10 10:52:33 +01:00
Download-Fritz
97718a7599 OcMachoLib: Safety improvements, including overflow checks.
* Check for offset and address overflows
* Properly sanity-check sections
* Fix an issue misusing Section->Alignment
2018-11-07 10:18:19 +01:00
Download-Fritz
97da06f663 OcMachoLib: use UINT32 for FileSize and all offsets. 2018-11-06 09:08:46 +01:00
Download-Fritz
0418143198 OcMachoLib: Revert 634f560 for Segments as it's not a completed type. 2018-11-04 11:09:58 +01:00
Download-Fritz
6388838c9a OcMachoLib: Fix LC boundary verification. 2018-11-04 10:56:43 +01:00
Download-Fritz
634f560be8 OcMachoLib: Verify exact LC size when the exact type is known. 2018-11-04 10:44:09 +01:00
Download-Fritz
524732e0ef OcMachoLib: Use UINT32 variables to refer to UINT32 Mach-O structure data. 2018-11-04 09:14:20 +01:00