147 Commits

Author SHA1 Message Date
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
Download-Fritz
bbea9dba45 OcMachoLib: Retrieve symbol section via Section instead of Value. 2019-03-26 23:16:56 +01:00
Download-Fritz
2ac0ee8085 OcMachoLib: Correctly detect symbol definition and section type. 2019-03-26 23:16:56 +01:00
Download-Fritz
f1ab3b85e9 OcAppleKernelLib: STAB symbols are not considered defined. 2019-03-26 22:23:25 +01:00
vit9696
b9988453e3 OcMachoLib: Fix symbol type comparison 2019-03-27 00:10:21 +03:00
Download-Fritz
61244b5fca OcMachoLib and OcAppleKernelLib: Properly error-check section indices. 2019-03-26 21:20:17 +01:00
Download-Fritz
7aa35ede0e OcMachoLib: Skip section-based relocs with ABS SymbolNumber. 2019-03-26 21:10:57 +01:00
Download-Fritz
c814d82ef1 OcMachoLib: Introduce GetSymbolbyExternReloc API. 2019-03-26 17:18:02 +01:00
Download-Fritz
ff3563866d OcMachoLib: Sanity-check symbols referenced by local relocs. 2019-03-26 17:02:02 +01:00
Download-Fritz
c934495c0f OcMachoLib: Skip when an insane symbol is hit. Don't re-sanity-check. 2019-03-26 17:01:38 +01:00
Download-Fritz
6e194294dd OcMachoLib: Assume relocation target is aligned. 2019-03-26 16:02:33 +01:00
Download-Fritz
b5ccf1f93b OcMachoLib: Support local relocations when getting a symbol by offset. 2019-03-26 15:34:33 +01:00
Download-Fritz
edbccbb105 OcMachoLib: Verify found symbol is a MCP before returning. 2019-03-26 07:10:34 +01:00
vit9696
af3aab4147 OcMachoLib: Fix compilation warning 2019-03-25 23:57:26 +03:00
Download-Fritz
01c867ad8e OcMachoLib: Remove unsafe VTable API. 2019-03-25 20:25:27 +01:00
Download-Fritz
6dddd23a9b OcMachoLib: Fail when ClassNames do not fit the output buffer. 2019-03-25 20:22:03 +01:00
vit9696
2c84d36d84 OcAppleKernelLib: Fix inaccurate bounds checking in Mach-O expansion 2019-03-25 01:38:14 +03:00
Download-Fritz
3b5b866144 OcMachoLib: Consider indirect Symbol Table might be separate from Symbol Table. 2019-03-24 18:32:40 +01: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
dce8966c9e OcMachoLib: Remove superfluous 32-bit limit check. 2019-03-23 20:27:27 +01:00
Download-Fritz
25616b2e21 OcMachoLib: Check Section bounds against Segment. 2019-03-23 20:26:22 +01:00
Download-Fritz
a9c1f22db3 OcMachoLib: Optionally return MaxSize parameter for GetFileOffset.
OcAppleKernelLib: Adapt calls for security.
2019-03-23 17:36:40 +01:00
Download-Fritz
70278f9ef8 OcMachoLib and OcAppleKernelLib: Remove superfluous symbol range checks. 2019-03-23 17:35:27 +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
Download-Fritz
0ce7e1ec99 OcMachoLib: Update GetSymbolByRelocOffset interface to report Relocation existance. 2019-03-23 11:51:15 +01:00
Download-Fritz
b18a2feeec OcMachoLib: Allow for relocation of external symbols. 2019-03-22 11:52:43 +01:00
Download-Fritz
67e445f97b OcMachoLib: Do not assume DySymtab is available 2019-03-21 21:19:31 +01: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
b05b5a66d1 Implement kext patcher with symbolic resolver in OcAppleKernelLib
1. Add support for parsing ID/IDREF in OcXmlLib.
2. Add support for parsing hex numbers in OcXmlLib.
3. Fix buggy MachoSymbolGetFileOffset64 mishandling section numbers.
2019-03-18 00:57:20 +03:00
Download-Fritz
5f5c379c2c Fix a couple of type mismatches 2019-03-09 15:02:18 +01: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
a471bd6c61 Late touches on OcMachoLib 2019-01-17 10:01: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