lief 0.15.1__cp313-cp313-win_amd64.whl → 0.16.1__cp313-cp313-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of lief might be problematic. Click here for more details.

Files changed (45) hide show
  1. lief/{ART.pyi → ART/__init__.pyi} +65 -45
  2. lief/Android/__init__.pyi +33 -0
  3. lief/DEX/__init__.pyi +512 -0
  4. lief/ELF/__init__.pyi +5342 -0
  5. lief/MachO/__init__.pyi +2678 -0
  6. lief/OAT/__init__.pyi +348 -0
  7. lief/PE/__init__.pyi +4098 -0
  8. lief/VDEX/__init__.pyi +54 -0
  9. lief/__init__.py +3 -0
  10. lief/__init__.pyi +457 -316
  11. lief/_lief.pyd +0 -0
  12. lief/assembly/__init__.pyi +104 -0
  13. lief/assembly/aarch64/__init__.pyi +20200 -0
  14. lief/assembly/aarch64/operands/__init__.pyi +48 -0
  15. lief/assembly/arm/__init__.pyi +9004 -0
  16. lief/assembly/ebpf/__init__.pyi +984 -0
  17. lief/assembly/mips/__init__.pyi +5798 -0
  18. lief/assembly/powerpc/__init__.pyi +5714 -0
  19. lief/assembly/riscv/__init__.pyi +27674 -0
  20. lief/assembly/x86/__init__.pyi +40433 -0
  21. lief/assembly/x86/operands/__init__.pyi +32 -0
  22. lief/dsc/__init__.pyi +220 -0
  23. lief/dwarf/__init__.pyi +224 -125
  24. lief/dwarf/parameters/__init__.pyi +14 -0
  25. lief/dwarf/types/__init__.pyi +167 -0
  26. lief/logging/__init__.pyi +44 -0
  27. lief/objc/__init__.pyi +89 -0
  28. lief/pdb/__init__.pyi +66 -50
  29. lief/pdb/types/__init__.pyi +69 -0
  30. lief-0.16.1.dist-info/METADATA +86 -0
  31. lief-0.16.1.dist-info/RECORD +33 -0
  32. lief/Android.pyi +0 -29
  33. lief/DEX.pyi +0 -382
  34. lief/ELF.pyi +0 -3179
  35. lief/MachO.pyi +0 -1717
  36. lief/OAT.pyi +0 -271
  37. lief/PE.pyi +0 -2951
  38. lief/VDEX.pyi +0 -49
  39. lief/dwarf/types.pyi +0 -72
  40. lief/logging.pyi +0 -27
  41. lief/objc.pyi +0 -68
  42. lief/pdb/types.pyi +0 -68
  43. lief-0.15.1.dist-info/METADATA +0 -157
  44. lief-0.15.1.dist-info/RECORD +0 -21
  45. {lief-0.15.1.dist-info → lief-0.16.1.dist-info}/WHEEL +0 -0
lief/MachO.pyi DELETED
@@ -1,1717 +0,0 @@
1
- from typing import Any, ClassVar, Optional, Union
2
-
3
- from typing import overload
4
- import io
5
- import lief # type: ignore
6
- import lief.MachO # type: ignore
7
- import lief.MachO.Binary # type: ignore
8
- import lief.MachO.BuildToolVersion # type: ignore
9
- import lief.MachO.BuildVersion # type: ignore
10
- import lief.MachO.Builder # type: ignore
11
- import lief.MachO.DataCodeEntry # type: ignore
12
- import lief.MachO.DyldBindingInfo # type: ignore
13
- import lief.MachO.DyldChainedFixups # type: ignore
14
- import lief.MachO.DyldInfo # type: ignore
15
- import lief.MachO.ExportInfo # type: ignore
16
- import lief.MachO.FatBinary # type: ignore
17
- import lief.MachO.Header # type: ignore
18
- import lief.MachO.LoadCommand # type: ignore
19
- import lief.MachO.Relocation # type: ignore
20
- import lief.MachO.Section # type: ignore
21
- import lief.MachO.SegmentCommand # type: ignore
22
- import lief.MachO.Symbol # type: ignore
23
- import lief.MachO.TwoLevelHints # type: ignore
24
- import lief.objc # type: ignore
25
- import os
26
-
27
- class ARM64_RELOCATION:
28
- ADDEND: ClassVar[ARM64_RELOCATION] = ...
29
- BRANCH26: ClassVar[ARM64_RELOCATION] = ...
30
- GOT_LOAD_PAGE21: ClassVar[ARM64_RELOCATION] = ...
31
- GOT_LOAD_PAGEOFF12: ClassVar[ARM64_RELOCATION] = ...
32
- PAGE21: ClassVar[ARM64_RELOCATION] = ...
33
- PAGEOFF12: ClassVar[ARM64_RELOCATION] = ...
34
- POINTER_TO_GOT: ClassVar[ARM64_RELOCATION] = ...
35
- SUBTRACTOR: ClassVar[ARM64_RELOCATION] = ...
36
- TLVP_LOAD_PAGE21: ClassVar[ARM64_RELOCATION] = ...
37
- TLVP_LOAD_PAGEOFF12: ClassVar[ARM64_RELOCATION] = ...
38
- UNSIGNED: ClassVar[ARM64_RELOCATION] = ...
39
- __name__: str
40
- def __init__(self, *args, **kwargs) -> None: ...
41
- @staticmethod
42
- def from_value(arg: int, /) -> lief.MachO.ARM64_RELOCATION: ...
43
- def __ge__(self, other) -> bool: ...
44
- def __gt__(self, other) -> bool: ...
45
- def __hash__(self) -> int: ...
46
- def __index__(self) -> Any: ...
47
- def __int__(self) -> int: ...
48
- def __le__(self, other) -> bool: ...
49
- def __lt__(self, other) -> bool: ...
50
- @property
51
- def value(self) -> int: ...
52
-
53
- class ARM_RELOCATION:
54
- BR24: ClassVar[ARM_RELOCATION] = ...
55
- HALF: ClassVar[ARM_RELOCATION] = ...
56
- HALF_SECTDIFF: ClassVar[ARM_RELOCATION] = ...
57
- LOCAL_SECTDIFF: ClassVar[ARM_RELOCATION] = ...
58
- PAIR: ClassVar[ARM_RELOCATION] = ...
59
- PB_LA_PTR: ClassVar[ARM_RELOCATION] = ...
60
- SECTDIFF: ClassVar[ARM_RELOCATION] = ...
61
- THUMB_32BIT_BRANCH: ClassVar[ARM_RELOCATION] = ...
62
- THUMB_RELOC_BR22: ClassVar[ARM_RELOCATION] = ...
63
- VANILLA: ClassVar[ARM_RELOCATION] = ...
64
- __name__: str
65
- def __init__(self, *args, **kwargs) -> None: ...
66
- @staticmethod
67
- def from_value(arg: int, /) -> lief.MachO.ARM_RELOCATION: ...
68
- def __ge__(self, other) -> bool: ...
69
- def __gt__(self, other) -> bool: ...
70
- def __hash__(self) -> int: ...
71
- def __index__(self) -> Any: ...
72
- def __int__(self) -> int: ...
73
- def __le__(self, other) -> bool: ...
74
- def __lt__(self, other) -> bool: ...
75
- @property
76
- def value(self) -> int: ...
77
-
78
- class Binary(lief.Binary):
79
- class it_commands:
80
- def __init__(self, *args, **kwargs) -> None: ...
81
- def __getitem__(self, arg: int, /) -> lief.MachO.LoadCommand: ...
82
- def __iter__(self) -> lief.MachO.Binary.it_commands: ...
83
- def __len__(self) -> int: ...
84
- def __next__(self) -> lief.MachO.LoadCommand: ...
85
-
86
- class it_filter_symbols:
87
- def __init__(self, *args, **kwargs) -> None: ...
88
- def __getitem__(self, arg: int, /) -> lief.MachO.Symbol: ...
89
- def __iter__(self) -> lief.MachO.Binary.it_filter_symbols: ...
90
- def __len__(self) -> int: ...
91
- def __next__(self) -> lief.MachO.Symbol: ...
92
-
93
- class it_libraries:
94
- def __init__(self, *args, **kwargs) -> None: ...
95
- def __getitem__(self, arg: int, /) -> lief.MachO.DylibCommand: ...
96
- def __iter__(self) -> lief.MachO.Binary.it_libraries: ...
97
- def __len__(self) -> int: ...
98
- def __next__(self) -> lief.MachO.DylibCommand: ...
99
-
100
- class it_relocations:
101
- def __init__(self, *args, **kwargs) -> None: ...
102
- def __getitem__(self, arg: int, /) -> lief.MachO.Relocation: ...
103
- def __iter__(self) -> lief.MachO.Binary.it_relocations: ...
104
- def __len__(self) -> int: ...
105
- def __next__(self) -> lief.MachO.Relocation: ...
106
-
107
- class it_rpaths:
108
- def __init__(self, *args, **kwargs) -> None: ...
109
- def __getitem__(self, arg: int, /) -> lief.MachO.RPathCommand: ...
110
- def __iter__(self) -> lief.MachO.Binary.it_rpaths: ...
111
- def __len__(self) -> int: ...
112
- def __next__(self) -> lief.MachO.RPathCommand: ...
113
-
114
- class it_sections:
115
- def __init__(self, *args, **kwargs) -> None: ...
116
- def __getitem__(self, arg: int, /) -> lief.MachO.Section: ...
117
- def __iter__(self) -> lief.MachO.Binary.it_sections: ...
118
- def __len__(self) -> int: ...
119
- def __next__(self) -> lief.MachO.Section: ...
120
-
121
- class it_segments:
122
- def __init__(self, *args, **kwargs) -> None: ...
123
- def __getitem__(self, arg: int, /) -> lief.MachO.SegmentCommand: ...
124
- def __iter__(self) -> lief.MachO.Binary.it_segments: ...
125
- def __len__(self) -> int: ...
126
- def __next__(self) -> lief.MachO.SegmentCommand: ...
127
-
128
- class it_symbols:
129
- def __init__(self, *args, **kwargs) -> None: ...
130
- def __getitem__(self, arg: int, /) -> lief.MachO.Symbol: ...
131
- def __iter__(self) -> lief.MachO.Binary.it_symbols: ...
132
- def __len__(self) -> int: ...
133
- def __next__(self) -> lief.MachO.Symbol: ...
134
-
135
- class range_t:
136
- end: int
137
- start: int
138
- def __init__(self, *args, **kwargs) -> None: ...
139
- def __init__(self, *args, **kwargs) -> None: ...
140
- @overload
141
- def add(self, dylib_command: lief.MachO.DylibCommand) -> lief.MachO.LoadCommand: ...
142
- @overload
143
- def add(self, segment: lief.MachO.SegmentCommand) -> lief.MachO.LoadCommand: ...
144
- @overload
145
- def add(self, load_command: lief.MachO.LoadCommand) -> lief.MachO.LoadCommand: ...
146
- @overload
147
- def add(self, load_command: lief.MachO.LoadCommand, index: int) -> lief.MachO.LoadCommand: ...
148
- def add_exported_function(self, address: int, name: str) -> lief.MachO.ExportInfo: ...
149
- def add_library(self, library_name: str) -> lief.MachO.LoadCommand: ...
150
- def add_local_symbol(self, address: int, name: str) -> lief.MachO.Symbol: ...
151
- @overload
152
- def add_section(self, segment: lief.MachO.SegmentCommand, section: lief.MachO.Section) -> lief.MachO.Section: ...
153
- @overload
154
- def add_section(self, section: lief.MachO.Section) -> lief.MachO.Section: ...
155
- def can_remove(self, symbol: lief.MachO.Symbol) -> bool: ...
156
- def can_remove_symbol(self, symbol_name: str) -> bool: ...
157
- def extend(self, load_command: lief.MachO.LoadCommand, size: int) -> bool: ...
158
- def extend_segment(self, segment_command: lief.MachO.SegmentCommand, size: int) -> bool: ...
159
- def get(self, type: lief.MachO.LoadCommand.TYPE) -> lief.MachO.LoadCommand: ...
160
- @overload
161
- def get_section(self, name: str) -> lief.MachO.Section: ...
162
- @overload
163
- def get_section(self, segname: str, secname: str) -> lief.MachO.Section: ...
164
- def get_segment(self, name: str) -> lief.MachO.SegmentCommand: ...
165
- def get_symbol(self, name: str) -> lief.MachO.Symbol: ...
166
- def has(self, type: lief.MachO.LoadCommand.TYPE) -> bool: ...
167
- def has_section(self, name: str) -> bool: ...
168
- def has_segment(self, name: str) -> bool: ...
169
- def has_symbol(self, name: str) -> bool: ...
170
- def is_valid_addr(self, address: int) -> bool: ...
171
- @overload
172
- def remove(self, load_command: lief.MachO.LoadCommand) -> bool: ...
173
- @overload
174
- def remove(self, type: lief.MachO.LoadCommand.TYPE) -> bool: ...
175
- @overload
176
- def remove(self, symbol: lief.MachO.Symbol) -> bool: ...
177
- def remove_command(self, index: int) -> bool: ...
178
- @overload
179
- def remove_section(self, name: str, clear: bool = ...) -> None: ...
180
- @overload
181
- def remove_section(self, segname: str, secname: str, clear: bool = ...) -> None: ...
182
- def remove_signature(self) -> bool: ...
183
- def remove_symbol(self, name: str) -> bool: ...
184
- def section_from_offset(self, arg: int, /) -> lief.MachO.Section: ...
185
- def section_from_virtual_address(self, arg: int, /) -> lief.MachO.Section: ...
186
- def segment_from_offset(self, arg: int, /) -> lief.MachO.SegmentCommand: ...
187
- def segment_from_virtual_address(self, arg: int, /) -> lief.MachO.SegmentCommand: ...
188
- def shift(self, value: int) -> Union[lief.ok_t,lief.lief_errors]: ...
189
- def shift_linkedit(self, value: int) -> Union[lief.ok_t,lief.lief_errors]: ...
190
- @overload
191
- def unexport(self, name: str) -> bool: ...
192
- @overload
193
- def unexport(self, symbol: lief.MachO.Symbol) -> bool: ...
194
- def virtual_address_to_offset(self, virtual_address: int) -> Union[int,lief.lief_errors]: ...
195
- def write(self, output: str) -> None: ...
196
- def __contains__(self, arg: lief.MachO.LoadCommand.TYPE, /) -> bool: ...
197
- def __getitem__(self, arg: lief.MachO.LoadCommand.TYPE, /) -> lief.MachO.LoadCommand: ...
198
- @property
199
- def build_version(self) -> lief.MachO.BuildVersion: ...
200
- @property
201
- def code_signature(self) -> lief.MachO.CodeSignature: ...
202
- @property
203
- def code_signature_dir(self) -> lief.MachO.CodeSignatureDir: ...
204
- @property
205
- def commands(self) -> lief.MachO.Binary.it_commands: ...
206
- @property
207
- def data_in_code(self) -> lief.MachO.DataInCode: ...
208
- @property
209
- def dyld_chained_fixups(self) -> lief.MachO.DyldChainedFixups: ...
210
- @property
211
- def dyld_environment(self) -> lief.MachO.DyldEnvironment: ...
212
- @property
213
- def dyld_exports_trie(self) -> lief.MachO.DyldExportsTrie: ...
214
- @property
215
- def dyld_info(self) -> lief.MachO.DyldInfo: ...
216
- @property
217
- def dylinker(self) -> lief.MachO.DylinkerCommand: ...
218
- @property
219
- def dynamic_symbol_command(self) -> lief.MachO.DynamicSymbolCommand: ...
220
- @property
221
- def encryption_info(self) -> lief.MachO.EncryptionInfo: ...
222
- @property
223
- def exported_symbols(self) -> lief.MachO.Binary.it_filter_symbols: ...
224
- @property
225
- def fat_offset(self) -> int: ...
226
- @property
227
- def fileset_name(self) -> str: ...
228
- @property
229
- def filesets(self) -> lief.MachO.FatBinary.it_binaries: ...
230
- @property
231
- def function_starts(self) -> lief.MachO.FunctionStarts: ...
232
- @property
233
- def functions(self) -> list[lief.Function]: ...
234
- @property
235
- def has_build_version(self) -> bool: ...
236
- @property
237
- def has_code_signature(self) -> bool: ...
238
- @property
239
- def has_code_signature_dir(self) -> bool: ...
240
- @property
241
- def has_data_in_code(self) -> bool: ...
242
- @property
243
- def has_dyld_chained_fixups(self) -> bool: ...
244
- @property
245
- def has_dyld_environment(self) -> bool: ...
246
- @property
247
- def has_dyld_exports_trie(self) -> bool: ...
248
- @property
249
- def has_dyld_info(self) -> bool: ...
250
- @property
251
- def has_dylinker(self) -> bool: ...
252
- @property
253
- def has_dynamic_symbol_command(self) -> bool: ...
254
- @property
255
- def has_encryption_info(self) -> bool: ...
256
- @property
257
- def has_entrypoint(self) -> bool: ...
258
- @property
259
- def has_filesets(self) -> bool: ...
260
- @property
261
- def has_function_starts(self) -> bool: ...
262
- @property
263
- def has_linker_opt_hint(self) -> bool: ...
264
- @property
265
- def has_main_command(self) -> bool: ...
266
- @property
267
- def has_nx_heap(self) -> bool: ...
268
- @property
269
- def has_nx_stack(self) -> bool: ...
270
- @property
271
- def has_rpath(self) -> bool: ...
272
- @property
273
- def has_segment_split_info(self) -> bool: ...
274
- @property
275
- def has_source_version(self) -> bool: ...
276
- @property
277
- def has_sub_framework(self) -> bool: ...
278
- @property
279
- def has_symbol_command(self) -> bool: ...
280
- @property
281
- def has_thread_command(self) -> bool: ...
282
- @property
283
- def has_two_level_hints(self) -> bool: ...
284
- @property
285
- def has_uuid(self) -> bool: ...
286
- @property
287
- def has_version_min(self) -> bool: ...
288
- @property
289
- def header(self) -> lief.MachO.Header: ... # type: ignore
290
- @property
291
- def imagebase(self) -> int: ...
292
- @property
293
- def imported_symbols(self) -> lief.MachO.Binary.it_filter_symbols: ...
294
- @property
295
- def libraries(self) -> lief.MachO.Binary.it_libraries: ... # type: ignore
296
- @property
297
- def linker_opt_hint(self) -> lief.MachO.LinkerOptHint: ...
298
- @property
299
- def main_command(self) -> lief.MachO.MainCommand: ...
300
- @property
301
- def objc_metadata(self) -> Optional[lief.objc.Metadata]: ...
302
- @property
303
- def off_ranges(self) -> lief.MachO.Binary.range_t: ...
304
- @property
305
- def overlay(self) -> memoryview: ...
306
- @property
307
- def page_size(self) -> int: ...
308
- @property
309
- def relocations(self) -> lief.MachO.Binary.it_relocations: ... # type: ignore
310
- @property
311
- def rpath(self) -> lief.MachO.RPathCommand: ...
312
- @property
313
- def rpaths(self) -> lief.MachO.Binary.it_rpaths: ...
314
- @property
315
- def sections(self) -> lief.MachO.Binary.it_sections: ... # type: ignore
316
- @property
317
- def segment_split_info(self) -> lief.MachO.SegmentSplitInfo: ...
318
- @property
319
- def segments(self) -> lief.MachO.Binary.it_segments: ...
320
- @property
321
- def source_version(self) -> lief.MachO.SourceVersion: ...
322
- @property
323
- def sub_framework(self) -> lief.MachO.SubFramework: ...
324
- @property
325
- def support_arm64_ptr_auth(self) -> bool: ...
326
- @property
327
- def symbol_command(self) -> lief.MachO.SymbolCommand: ...
328
- @property
329
- def symbols(self) -> lief.MachO.Binary.it_symbols: ... # type: ignore
330
- @property
331
- def thread_command(self) -> lief.MachO.ThreadCommand: ...
332
- @property
333
- def two_level_hints(self) -> lief.MachO.TwoLevelHints: ...
334
- @property
335
- def unwind_functions(self) -> list[lief.Function]: ...
336
- @property
337
- def uuid(self) -> lief.MachO.UUIDCommand: ...
338
- @property
339
- def va_ranges(self) -> lief.MachO.Binary.range_t: ...
340
- @property
341
- def version_min(self) -> lief.MachO.VersionMin: ...
342
- @property
343
- def virtual_size(self) -> int: ...
344
-
345
- class BindingInfo(lief.Object):
346
- addend: int
347
- address: int
348
- library_ordinal: int
349
- weak_import: bool
350
- def __init__(self, *args, **kwargs) -> None: ...
351
- @property
352
- def has_library(self) -> bool: ...
353
- @property
354
- def has_segment(self) -> bool: ...
355
- @property
356
- def has_symbol(self) -> bool: ...
357
- @property
358
- def library(self) -> lief.MachO.DylibCommand: ...
359
- @property
360
- def segment(self) -> lief.MachO.SegmentCommand: ...
361
- @property
362
- def symbol(self) -> lief.MachO.Symbol: ...
363
-
364
- class BuildToolVersion(lief.Object):
365
- class TOOLS:
366
- CLANG: ClassVar[BuildToolVersion.TOOLS] = ...
367
- LD: ClassVar[BuildToolVersion.TOOLS] = ...
368
- SWIFT: ClassVar[BuildToolVersion.TOOLS] = ...
369
- UNKNOWN: ClassVar[BuildToolVersion.TOOLS] = ...
370
- __name__: str
371
- def __init__(self, *args, **kwargs) -> None: ...
372
- @staticmethod
373
- def from_value(arg: int, /) -> lief.MachO.BuildToolVersion.TOOLS: ...
374
- def __ge__(self, other) -> bool: ...
375
- def __gt__(self, other) -> bool: ...
376
- def __hash__(self) -> int: ...
377
- def __index__(self) -> Any: ...
378
- def __int__(self) -> int: ...
379
- def __le__(self, other) -> bool: ...
380
- def __lt__(self, other) -> bool: ...
381
- @property
382
- def value(self) -> int: ...
383
- def __init__(self, *args, **kwargs) -> None: ...
384
- @property
385
- def tool(self) -> lief.MachO.BuildToolVersion.TOOLS: ...
386
- @property
387
- def version(self) -> list[int]: ...
388
-
389
- class BuildVersion(LoadCommand):
390
- class PLATFORMS:
391
- IOS: ClassVar[BuildVersion.PLATFORMS] = ...
392
- MACOS: ClassVar[BuildVersion.PLATFORMS] = ...
393
- TVOS: ClassVar[BuildVersion.PLATFORMS] = ...
394
- UNKNOWN: ClassVar[BuildVersion.PLATFORMS] = ...
395
- WATCHOS: ClassVar[BuildVersion.PLATFORMS] = ...
396
- __name__: str
397
- def __init__(self, *args, **kwargs) -> None: ...
398
- @staticmethod
399
- def from_value(arg: int, /) -> lief.MachO.BuildVersion.PLATFORMS: ...
400
- def __ge__(self, other) -> bool: ...
401
- def __gt__(self, other) -> bool: ...
402
- def __hash__(self) -> int: ...
403
- def __index__(self) -> Any: ...
404
- def __int__(self) -> int: ...
405
- def __le__(self, other) -> bool: ...
406
- def __lt__(self, other) -> bool: ...
407
- @property
408
- def value(self) -> int: ...
409
- minos: list[int]
410
- platform: lief.MachO.BuildVersion.PLATFORMS
411
- sdk: list[int]
412
- def __init__(self, *args, **kwargs) -> None: ...
413
- @property
414
- def tools(self) -> list[lief.MachO.BuildToolVersion]: ...
415
-
416
- class Builder:
417
- class config_t:
418
- linkedit: bool
419
- def __init__(self) -> None: ...
420
- def __init__(self, *args, **kwargs) -> None: ...
421
- @overload
422
- @staticmethod
423
- def write(binary: lief.MachO.Binary, output: str) -> Union[lief.ok_t,lief.lief_errors]: ...
424
- @overload
425
- @staticmethod
426
- def write(binary: lief.MachO.Binary, output: str, config: lief.MachO.Builder.config_t) -> Union[lief.ok_t,lief.lief_errors]: ...
427
- @overload
428
- @staticmethod
429
- def write(fat_binary: lief.MachO.FatBinary, output: str) -> Union[lief.ok_t,lief.lief_errors]: ...
430
- @overload
431
- @staticmethod
432
- def write(fat_binary: lief.MachO.FatBinary, output: str, config: lief.MachO.Builder.config_t) -> Union[lief.ok_t,lief.lief_errors]: ...
433
-
434
- class ChainedBindingInfo(BindingInfo):
435
- offset: int
436
- def __init__(self, *args, **kwargs) -> None: ...
437
- @property
438
- def format(self) -> lief.MachO.DYLD_CHAINED_FORMAT: ...
439
- @property
440
- def ptr_format(self) -> lief.MachO.DYLD_CHAINED_PTR_FORMAT: ...
441
- @property
442
- def sign_extended_addend(self) -> int: ...
443
-
444
- class CodeSignature(LoadCommand):
445
- data_offset: int
446
- data_size: int
447
- def __init__(self, *args, **kwargs) -> None: ...
448
- @property
449
- def content(self) -> memoryview: ...
450
-
451
- class CodeSignatureDir(LoadCommand):
452
- data_offset: int
453
- data_size: int
454
- def __init__(self, *args, **kwargs) -> None: ...
455
- @property
456
- def content(self) -> memoryview: ...
457
-
458
- class DYLD_CHAINED_FORMAT:
459
- IMPORT: ClassVar[DYLD_CHAINED_FORMAT] = ...
460
- IMPORT_ADDEND: ClassVar[DYLD_CHAINED_FORMAT] = ...
461
- IMPORT_ADDEND64: ClassVar[DYLD_CHAINED_FORMAT] = ...
462
- __name__: str
463
- def __init__(self, *args, **kwargs) -> None: ...
464
- @staticmethod
465
- def from_value(arg: int, /) -> lief.MachO.DYLD_CHAINED_FORMAT: ...
466
- def __ge__(self, other) -> bool: ...
467
- def __gt__(self, other) -> bool: ...
468
- def __hash__(self) -> int: ...
469
- def __index__(self) -> Any: ...
470
- def __int__(self) -> int: ...
471
- def __le__(self, other) -> bool: ...
472
- def __lt__(self, other) -> bool: ...
473
- @property
474
- def value(self) -> int: ...
475
-
476
- class DYLD_CHAINED_PTR_FORMAT:
477
- PTR_32: ClassVar[DYLD_CHAINED_PTR_FORMAT] = ...
478
- PTR_32_CACHE: ClassVar[DYLD_CHAINED_PTR_FORMAT] = ...
479
- PTR_32_FIRMWARE: ClassVar[DYLD_CHAINED_PTR_FORMAT] = ...
480
- PTR_64: ClassVar[DYLD_CHAINED_PTR_FORMAT] = ...
481
- PTR_64_KERNEL_CACHE: ClassVar[DYLD_CHAINED_PTR_FORMAT] = ...
482
- PTR_64_OFFSET: ClassVar[DYLD_CHAINED_PTR_FORMAT] = ...
483
- PTR_ARM64E: ClassVar[DYLD_CHAINED_PTR_FORMAT] = ...
484
- PTR_ARM64E_FIRMWARE: ClassVar[DYLD_CHAINED_PTR_FORMAT] = ...
485
- PTR_ARM64E_KERNEL: ClassVar[DYLD_CHAINED_PTR_FORMAT] = ...
486
- PTR_ARM64E_USERLAND: ClassVar[DYLD_CHAINED_PTR_FORMAT] = ...
487
- PTR_ARM64E_USERLAND24: ClassVar[DYLD_CHAINED_PTR_FORMAT] = ...
488
- PTR_X86_64_KERNEL_CACHE: ClassVar[DYLD_CHAINED_PTR_FORMAT] = ...
489
- __name__: str
490
- def __init__(self, *args, **kwargs) -> None: ...
491
- @staticmethod
492
- def from_value(arg: int, /) -> lief.MachO.DYLD_CHAINED_PTR_FORMAT: ...
493
- def __ge__(self, other) -> bool: ...
494
- def __gt__(self, other) -> bool: ...
495
- def __hash__(self) -> int: ...
496
- def __index__(self) -> Any: ...
497
- def __int__(self) -> int: ...
498
- def __le__(self, other) -> bool: ...
499
- def __lt__(self, other) -> bool: ...
500
- @property
501
- def value(self) -> int: ...
502
-
503
- class DataCodeEntry(lief.Object):
504
- class TYPES:
505
- ABS_JUMP_TABLE_32: ClassVar[DataCodeEntry.TYPES] = ...
506
- DATA: ClassVar[DataCodeEntry.TYPES] = ...
507
- JUMP_TABLE_16: ClassVar[DataCodeEntry.TYPES] = ...
508
- JUMP_TABLE_32: ClassVar[DataCodeEntry.TYPES] = ...
509
- JUMP_TABLE_8: ClassVar[DataCodeEntry.TYPES] = ...
510
- UNKNOWN: ClassVar[DataCodeEntry.TYPES] = ...
511
- __name__: str
512
- def __init__(self, *args, **kwargs) -> None: ...
513
- @staticmethod
514
- def from_value(arg: int, /) -> lief.MachO.DataCodeEntry.TYPES: ...
515
- def __ge__(self, other) -> bool: ...
516
- def __gt__(self, other) -> bool: ...
517
- def __hash__(self) -> int: ...
518
- def __index__(self) -> Any: ...
519
- def __int__(self) -> int: ...
520
- def __le__(self, other) -> bool: ...
521
- def __lt__(self, other) -> bool: ...
522
- @property
523
- def value(self) -> int: ...
524
- length: int
525
- offset: int
526
- type: lief.MachO.DataCodeEntry.TYPES
527
- def __init__(self, *args, **kwargs) -> None: ...
528
-
529
- class DataInCode(LoadCommand):
530
- data_offset: int
531
- data_size: int
532
- def __init__(self, *args, **kwargs) -> None: ...
533
- def add(self, entry: lief.MachO.DataCodeEntry) -> lief.MachO.DataInCode: ...
534
- @property
535
- def content(self) -> memoryview: ...
536
- @property
537
- def entries(self) -> lief.MachO.it_data_in_code_entries: ...
538
-
539
- class DyldBindingInfo(BindingInfo):
540
- class CLASS:
541
- LAZY: ClassVar[DyldBindingInfo.CLASS] = ...
542
- STANDARD: ClassVar[DyldBindingInfo.CLASS] = ...
543
- THREADED: ClassVar[DyldBindingInfo.CLASS] = ...
544
- WEAK: ClassVar[DyldBindingInfo.CLASS] = ...
545
- __name__: str
546
- def __init__(self, *args, **kwargs) -> None: ...
547
- @staticmethod
548
- def from_value(arg: int, /) -> lief.MachO.DyldBindingInfo.CLASS: ...
549
- def __ge__(self, other) -> bool: ...
550
- def __gt__(self, other) -> bool: ...
551
- def __hash__(self) -> int: ...
552
- def __index__(self) -> Any: ...
553
- def __int__(self) -> int: ...
554
- def __le__(self, other) -> bool: ...
555
- def __lt__(self, other) -> bool: ...
556
- @property
557
- def value(self) -> int: ...
558
-
559
- class TYPE:
560
- POINTER: ClassVar[DyldBindingInfo.TYPE] = ...
561
- TEXT_ABSOLUTE32: ClassVar[DyldBindingInfo.TYPE] = ...
562
- TEXT_PCREL32: ClassVar[DyldBindingInfo.TYPE] = ...
563
- __name__: str
564
- def __init__(self, *args, **kwargs) -> None: ...
565
- @staticmethod
566
- def from_value(arg: int, /) -> lief.MachO.DyldBindingInfo.TYPE: ...
567
- def __ge__(self, other) -> bool: ...
568
- def __gt__(self, other) -> bool: ...
569
- def __hash__(self) -> int: ...
570
- def __index__(self) -> Any: ...
571
- def __int__(self) -> int: ...
572
- def __le__(self, other) -> bool: ...
573
- def __lt__(self, other) -> bool: ...
574
- @property
575
- def value(self) -> int: ...
576
- binding_class: lief.MachO.DyldBindingInfo.CLASS
577
- binding_type: lief.MachO.DyldBindingInfo.TYPE
578
- def __init__(self, *args, **kwargs) -> None: ...
579
- @property
580
- def original_offset(self) -> int: ...
581
-
582
- class DyldChainedFixups(LoadCommand):
583
- class chained_starts_in_segment:
584
- def __init__(self, *args, **kwargs) -> None: ...
585
- @property
586
- def max_valid_pointer(self) -> int: ...
587
- @property
588
- def offset(self) -> int: ...
589
- @property
590
- def page_count(self) -> int: ...
591
- @property
592
- def page_size(self) -> int: ...
593
- @property
594
- def page_start(self) -> list[int]: ...
595
- @property
596
- def pointer_format(self) -> lief.MachO.DYLD_CHAINED_PTR_FORMAT: ...
597
- @property
598
- def segment(self) -> lief.MachO.SegmentCommand: ...
599
- @property
600
- def segment_offset(self) -> int: ...
601
- @property
602
- def size(self) -> int: ...
603
-
604
- class it_binding_info:
605
- def __init__(self, *args, **kwargs) -> None: ...
606
- def __getitem__(self, arg: int, /) -> lief.MachO.ChainedBindingInfo: ...
607
- def __iter__(self) -> lief.MachO.DyldChainedFixups.it_binding_info: ...
608
- def __len__(self) -> int: ...
609
- def __next__(self) -> lief.MachO.ChainedBindingInfo: ...
610
-
611
- class it_chained_starts_in_segments_t:
612
- def __init__(self, *args, **kwargs) -> None: ...
613
- def __getitem__(self, arg: int, /) -> lief.MachO.DyldChainedFixups.chained_starts_in_segment: ...
614
- def __iter__(self) -> lief.MachO.DyldChainedFixups.it_chained_starts_in_segments_t: ...
615
- def __len__(self) -> int: ...
616
- def __next__(self) -> lief.MachO.DyldChainedFixups.chained_starts_in_segment: ...
617
- data_offset: int
618
- data_size: int
619
- fixups_version: int
620
- imports_count: int
621
- imports_format: lief.MachO.DYLD_CHAINED_FORMAT
622
- imports_offset: int
623
- starts_offset: int
624
- symbols_format: int
625
- symbols_offset: int
626
- def __init__(self, *args, **kwargs) -> None: ...
627
- @property
628
- def bindings(self) -> lief.MachO.DyldChainedFixups.it_binding_info: ...
629
- @property
630
- def chained_starts_in_segments(self) -> lief.MachO.DyldChainedFixups.it_chained_starts_in_segments_t: ...
631
-
632
- class DyldEnvironment(LoadCommand):
633
- value: str
634
- def __init__(self, *args, **kwargs) -> None: ...
635
-
636
- class DyldExportsTrie(LoadCommand):
637
- class it_export_info:
638
- def __init__(self, *args, **kwargs) -> None: ...
639
- def __getitem__(self, arg: int, /) -> lief.MachO.ExportInfo: ...
640
- def __iter__(self) -> lief.MachO.DyldInfo.it_export_info: ...
641
- def __len__(self) -> int: ...
642
- def __next__(self) -> lief.MachO.ExportInfo: ...
643
- data_offset: int
644
- data_size: int
645
- def __init__(self, *args, **kwargs) -> None: ...
646
- def show_export_trie(self) -> str: ...
647
- @property
648
- def content(self) -> memoryview: ...
649
- @property
650
- def exports(self) -> lief.MachO.DyldInfo.it_export_info: ...
651
-
652
- class DyldInfo(LoadCommand):
653
- class BIND_OPCODES:
654
- ADD_ADDR_ULEB: ClassVar[DyldInfo.BIND_OPCODES] = ...
655
- DONE: ClassVar[DyldInfo.BIND_OPCODES] = ...
656
- DO_BIND: ClassVar[DyldInfo.BIND_OPCODES] = ...
657
- DO_BIND_ADD_ADDR_IMM_SCALED: ClassVar[DyldInfo.BIND_OPCODES] = ...
658
- DO_BIND_ADD_ADDR_ULEB: ClassVar[DyldInfo.BIND_OPCODES] = ...
659
- DO_BIND_ULEB_TIMES_SKIPPING_ULEB: ClassVar[DyldInfo.BIND_OPCODES] = ...
660
- SET_ADDEND_SLEB: ClassVar[DyldInfo.BIND_OPCODES] = ...
661
- SET_DYLIB_ORDINAL_IMM: ClassVar[DyldInfo.BIND_OPCODES] = ...
662
- SET_DYLIB_ORDINAL_ULEB: ClassVar[DyldInfo.BIND_OPCODES] = ...
663
- SET_DYLIB_SPECIAL_IMM: ClassVar[DyldInfo.BIND_OPCODES] = ...
664
- SET_SEGMENT_AND_OFFSET_ULEB: ClassVar[DyldInfo.BIND_OPCODES] = ...
665
- SET_SYMBOL_TRAILING_FLAGS_IMM: ClassVar[DyldInfo.BIND_OPCODES] = ...
666
- SET_TYPE_IMM: ClassVar[DyldInfo.BIND_OPCODES] = ...
667
- THREADED: ClassVar[DyldInfo.BIND_OPCODES] = ...
668
- THREADED_APPLY: ClassVar[DyldInfo.BIND_OPCODES] = ...
669
- __name__: str
670
- def __init__(self, *args, **kwargs) -> None: ...
671
- @staticmethod
672
- def from_value(arg: int, /) -> lief.MachO.DyldInfo.BIND_OPCODES: ...
673
- def __ge__(self, other) -> bool: ...
674
- def __gt__(self, other) -> bool: ...
675
- def __hash__(self) -> int: ...
676
- def __index__(self) -> Any: ...
677
- def __int__(self) -> int: ...
678
- def __le__(self, other) -> bool: ...
679
- def __lt__(self, other) -> bool: ...
680
- @property
681
- def value(self) -> int: ...
682
-
683
- class REBASE_OPCODES:
684
- ADD_ADDR_IMM_SCALED: ClassVar[DyldInfo.REBASE_OPCODES] = ...
685
- ADD_ADDR_ULEB: ClassVar[DyldInfo.REBASE_OPCODES] = ...
686
- DONE: ClassVar[DyldInfo.REBASE_OPCODES] = ...
687
- DO_REBASE_ADD_ADDR_ULEB: ClassVar[DyldInfo.REBASE_OPCODES] = ...
688
- DO_REBASE_IMM_TIMES: ClassVar[DyldInfo.REBASE_OPCODES] = ...
689
- DO_REBASE_ULEB_TIMES: ClassVar[DyldInfo.REBASE_OPCODES] = ...
690
- DO_REBASE_ULEB_TIMES_SKIPPING_ULEB: ClassVar[DyldInfo.REBASE_OPCODES] = ...
691
- SET_SEGMENT_AND_OFFSET_ULEB: ClassVar[DyldInfo.REBASE_OPCODES] = ...
692
- SET_TYPE_IMM: ClassVar[DyldInfo.REBASE_OPCODES] = ...
693
- __name__: str
694
- def __init__(self, *args, **kwargs) -> None: ...
695
- @staticmethod
696
- def from_value(arg: int, /) -> lief.MachO.DyldInfo.REBASE_OPCODES: ...
697
- def __ge__(self, other) -> bool: ...
698
- def __gt__(self, other) -> bool: ...
699
- def __hash__(self) -> int: ...
700
- def __index__(self) -> Any: ...
701
- def __int__(self) -> int: ...
702
- def __le__(self, other) -> bool: ...
703
- def __lt__(self, other) -> bool: ...
704
- @property
705
- def value(self) -> int: ...
706
-
707
- class REBASE_TYPE:
708
- POINTER: ClassVar[DyldInfo.REBASE_TYPE] = ...
709
- TEXT_ABSOLUTE32: ClassVar[DyldInfo.REBASE_TYPE] = ...
710
- TEXT_PCREL32: ClassVar[DyldInfo.REBASE_TYPE] = ...
711
- THREADED: ClassVar[DyldInfo.REBASE_TYPE] = ...
712
- __name__: str
713
- def __init__(self, *args, **kwargs) -> None: ...
714
- @staticmethod
715
- def from_value(arg: int, /) -> lief.MachO.DyldInfo.REBASE_TYPE: ...
716
- def __ge__(self, other) -> bool: ...
717
- def __gt__(self, other) -> bool: ...
718
- def __hash__(self) -> int: ...
719
- def __index__(self) -> Any: ...
720
- def __int__(self) -> int: ...
721
- def __le__(self, other) -> bool: ...
722
- def __lt__(self, other) -> bool: ...
723
- @property
724
- def value(self) -> int: ...
725
-
726
- class it_binding_info:
727
- def __init__(self, *args, **kwargs) -> None: ...
728
- def __getitem__(self, arg: int, /) -> lief.MachO.DyldBindingInfo: ...
729
- def __iter__(self) -> lief.MachO.DyldInfo.it_binding_info: ...
730
- def __len__(self) -> int: ...
731
- def __next__(self) -> lief.MachO.DyldBindingInfo: ...
732
-
733
- class it_export_info:
734
- def __init__(self, *args, **kwargs) -> None: ...
735
- def __getitem__(self, arg: int, /) -> lief.MachO.ExportInfo: ...
736
- def __iter__(self) -> lief.MachO.DyldInfo.it_export_info: ...
737
- def __len__(self) -> int: ...
738
- def __next__(self) -> lief.MachO.ExportInfo: ...
739
- bind: tuple[int,int]
740
- bind_opcodes: memoryview
741
- export_info: tuple[int,int]
742
- export_trie: memoryview
743
- lazy_bind: tuple[int,int]
744
- lazy_bind_opcodes: memoryview
745
- rebase: tuple[int,int]
746
- rebase_opcodes: memoryview
747
- weak_bind: tuple[int,int]
748
- weak_bind_opcodes: memoryview
749
- def __init__(self, *args, **kwargs) -> None: ...
750
- def set_bind_offset(self, offset: int) -> None: ...
751
- def set_bind_size(self, size: int) -> None: ...
752
- def set_export_offset(self, offset: int) -> None: ...
753
- def set_export_size(self, size: int) -> None: ...
754
- def set_lazy_bind_offset(self, offset: int) -> None: ...
755
- def set_lazy_bind_size(self, size: int) -> None: ...
756
- def set_rebase_offset(self, offset: int) -> None: ...
757
- def set_rebase_size(self, size: int) -> None: ...
758
- def set_weak_bind_offset(self, offset: int) -> None: ...
759
- def set_weak_bind_size(self, size: int) -> None: ...
760
- @property
761
- def bindings(self) -> lief.MachO.DyldInfo.it_binding_info: ...
762
- @property
763
- def exports(self) -> lief.MachO.DyldInfo.it_export_info: ...
764
- @property
765
- def show_bind_opcodes(self) -> str: ...
766
- @property
767
- def show_export_trie(self) -> str: ...
768
- @property
769
- def show_lazy_bind_opcodes(self) -> str: ...
770
- @property
771
- def show_rebases_opcodes(self) -> str: ...
772
- @property
773
- def show_weak_bind_opcodes(self) -> str: ...
774
-
775
- class DylibCommand(LoadCommand):
776
- compatibility_version: list[int]
777
- current_version: list[int]
778
- name: str
779
- timestamp: int
780
- def __init__(self, *args, **kwargs) -> None: ...
781
- @staticmethod
782
- def id_dylib(name: str, timestamp: int = ..., current_version: int = ..., compat_version: int = ...) -> lief.MachO.DylibCommand: ...
783
- @staticmethod
784
- def lazy_load_dylib(name: str, timestamp: int = ..., current_version: int = ..., compat_version: int = ...) -> lief.MachO.DylibCommand: ...
785
- @staticmethod
786
- def load_dylib(name: str, timestamp: int = ..., current_version: int = ..., compat_version: int = ...) -> lief.MachO.DylibCommand: ...
787
- @staticmethod
788
- def load_upward_dylib(name: str, timestamp: int = ..., current_version: int = ..., compat_version: int = ...) -> lief.MachO.DylibCommand: ...
789
- @staticmethod
790
- def reexport_dylib(name: str, timestamp: int = ..., current_version: int = ..., compat_version: int = ...) -> lief.MachO.DylibCommand: ...
791
- @staticmethod
792
- def weak_lib(name: str, timestamp: int = ..., current_version: int = ..., compat_version: int = ...) -> lief.MachO.DylibCommand: ...
793
-
794
- class DylinkerCommand(LoadCommand):
795
- name: str
796
- def __init__(self, arg: str, /) -> None: ...
797
-
798
- class DynamicSymbolCommand(LoadCommand):
799
- external_reference_symbol_offset: int
800
- external_relocation_offset: int
801
- idx_external_define_symbol: int
802
- idx_local_symbol: int
803
- idx_undefined_symbol: int
804
- indirect_symbol_offset: int
805
- local_relocation_offset: int
806
- module_table_offset: int
807
- nb_external_define_symbols: int
808
- nb_external_reference_symbols: int
809
- nb_external_relocations: int
810
- nb_indirect_symbols: int
811
- nb_local_relocations: int
812
- nb_local_symbols: int
813
- nb_module_table: int
814
- nb_toc: int
815
- nb_undefined_symbols: int
816
- toc_offset: int
817
- def __init__(self, *args, **kwargs) -> None: ...
818
-
819
- class EncryptionInfo(LoadCommand):
820
- crypt_id: int
821
- crypt_offset: int
822
- crypt_size: int
823
- def __init__(self, *args, **kwargs) -> None: ...
824
-
825
- class ExportInfo(lief.Object):
826
- class FLAGS:
827
- REEXPORT: ClassVar[ExportInfo.FLAGS] = ...
828
- STUB_AND_RESOLVER: ClassVar[ExportInfo.FLAGS] = ...
829
- WEAK_DEFINITION: ClassVar[ExportInfo.FLAGS] = ...
830
- __name__: str
831
- def __init__(self, *args, **kwargs) -> None: ...
832
- @staticmethod
833
- def from_value(arg: int, /) -> lief.MachO.ExportInfo.FLAGS: ...
834
- def __abs__(self) -> Any: ...
835
- def __add__(self, other) -> Any: ...
836
- @overload
837
- def __and__(self, arg: int, /) -> int: ...
838
- @overload
839
- def __and__(self, arg: lief.MachO.ExportInfo.FLAGS, /) -> int: ...
840
- def __floordiv__(self, other) -> Any: ...
841
- def __ge__(self, arg: int, /) -> bool: ...
842
- def __gt__(self, arg: int, /) -> bool: ...
843
- def __hash__(self) -> int: ...
844
- def __index__(self) -> Any: ...
845
- def __int__(self) -> int: ...
846
- def __invert__(self) -> int: ...
847
- def __le__(self, arg: int, /) -> bool: ...
848
- def __lshift__(self, other) -> Any: ...
849
- def __lt__(self, arg: int, /) -> bool: ...
850
- def __mul__(self, other) -> Any: ...
851
- def __neg__(self) -> Any: ...
852
- @overload
853
- def __or__(self, arg: int, /) -> int: ...
854
- @overload
855
- def __or__(self, arg: lief.MachO.ExportInfo.FLAGS, /) -> lief.MachO.ExportInfo.FLAGS: ...
856
- def __radd__(self, other) -> Any: ...
857
- def __rand__(self, arg: int, /) -> int: ...
858
- def __rfloordiv__(self, other) -> Any: ...
859
- def __rlshift__(self, other) -> Any: ...
860
- def __rmul__(self, other) -> Any: ...
861
- def __ror__(self, arg: int, /) -> int: ...
862
- def __rrshift__(self, other) -> Any: ...
863
- def __rshift__(self, other) -> Any: ...
864
- def __rsub__(self, other) -> Any: ...
865
- def __rxor__(self, arg: int, /) -> int: ...
866
- def __sub__(self, other) -> Any: ...
867
- @overload
868
- def __xor__(self, arg: int, /) -> int: ...
869
- @overload
870
- def __xor__(self, arg: lief.MachO.ExportInfo.FLAGS, /) -> int: ...
871
- @property
872
- def value(self) -> int: ...
873
-
874
- class KIND:
875
- ABSOLUTE_KIND: ClassVar[ExportInfo.KIND] = ...
876
- REGULAR: ClassVar[ExportInfo.KIND] = ...
877
- THREAD_LOCAL_KIND: ClassVar[ExportInfo.KIND] = ...
878
- __name__: str
879
- def __init__(self, *args, **kwargs) -> None: ...
880
- @staticmethod
881
- def from_value(arg: int, /) -> lief.MachO.ExportInfo.KIND: ...
882
- def __ge__(self, other) -> bool: ...
883
- def __gt__(self, other) -> bool: ...
884
- def __hash__(self) -> int: ...
885
- def __index__(self) -> Any: ...
886
- def __int__(self) -> int: ...
887
- def __le__(self, other) -> bool: ...
888
- def __lt__(self, other) -> bool: ...
889
- @property
890
- def value(self) -> int: ...
891
- address: int
892
- flags: int
893
- def __init__(self, *args, **kwargs) -> None: ...
894
- def has(self, flag: lief.MachO.ExportInfo.FLAGS) -> bool: ...
895
- @property
896
- def alias(self) -> lief.MachO.Symbol: ...
897
- @property
898
- def alias_library(self) -> lief.MachO.DylibCommand: ...
899
- @property
900
- def flags_list(self) -> list[lief.MachO.ExportInfo.FLAGS]: ...
901
- @property
902
- def has_symbol(self) -> bool: ...
903
- @property
904
- def kind(self) -> lief.MachO.ExportInfo.KIND: ...
905
- @property
906
- def node_offset(self) -> int: ...
907
- @property
908
- def symbol(self) -> lief.MachO.Symbol: ...
909
-
910
- class FatBinary:
911
- class it_binaries:
912
- def __init__(self, *args, **kwargs) -> None: ...
913
- def __getitem__(self, arg: int, /) -> lief.MachO.Binary: ...
914
- def __iter__(self) -> lief.MachO.FatBinary.it_binaries: ...
915
- def __len__(self) -> int: ...
916
- def __next__(self) -> lief.MachO.Binary: ...
917
- def __init__(self, *args, **kwargs) -> None: ...
918
- def at(self, index: int) -> lief.MachO.Binary: ...
919
- def raw(self) -> list[int]: ...
920
- def take(self, cpu: lief.MachO.Header.CPU_TYPE) -> Optional[lief.MachO.Binary]: ...
921
- def write(self, filename: str) -> None: ...
922
- def __getitem__(self, arg: int, /) -> lief.MachO.Binary: ...
923
- def __iter__(self) -> lief.MachO.FatBinary.it_binaries: ...
924
- def __len__(self) -> int: ...
925
- @property
926
- def size(self) -> int: ...
927
-
928
- class FilesetCommand(LoadCommand):
929
- file_offset: int
930
- name: str
931
- virtual_address: int
932
- def __init__(self, *args, **kwargs) -> None: ...
933
- @property
934
- def binary(self) -> lief.MachO.Binary: ...
935
-
936
- class FunctionStarts(LoadCommand):
937
- data_offset: int
938
- data_size: int
939
- functions: list[int]
940
- def __init__(self, *args, **kwargs) -> None: ...
941
- def add_function(self, address: int) -> None: ...
942
- @property
943
- def content(self) -> memoryview: ...
944
-
945
- class Header(lief.Object):
946
- class CPU_TYPE:
947
- ANY: ClassVar[Header.CPU_TYPE] = ...
948
- ARM: ClassVar[Header.CPU_TYPE] = ...
949
- ARM64: ClassVar[Header.CPU_TYPE] = ...
950
- MC98000: ClassVar[Header.CPU_TYPE] = ...
951
- MIPS: ClassVar[Header.CPU_TYPE] = ...
952
- POWERPC: ClassVar[Header.CPU_TYPE] = ...
953
- POWERPC64: ClassVar[Header.CPU_TYPE] = ...
954
- SPARC: ClassVar[Header.CPU_TYPE] = ...
955
- X86: ClassVar[Header.CPU_TYPE] = ...
956
- X86_64: ClassVar[Header.CPU_TYPE] = ...
957
- __name__: str
958
- def __init__(self, *args, **kwargs) -> None: ...
959
- @staticmethod
960
- def from_value(arg: int, /) -> lief.MachO.Header.CPU_TYPE: ...
961
- def __ge__(self, other) -> bool: ...
962
- def __gt__(self, other) -> bool: ...
963
- def __hash__(self) -> int: ...
964
- def __index__(self) -> Any: ...
965
- def __int__(self) -> int: ...
966
- def __le__(self, other) -> bool: ...
967
- def __lt__(self, other) -> bool: ...
968
- @property
969
- def value(self) -> int: ...
970
-
971
- class FILE_TYPE:
972
- BUNDLE: ClassVar[Header.FILE_TYPE] = ...
973
- CORE: ClassVar[Header.FILE_TYPE] = ...
974
- DSYM: ClassVar[Header.FILE_TYPE] = ...
975
- DYLIB: ClassVar[Header.FILE_TYPE] = ...
976
- DYLIB_STUB: ClassVar[Header.FILE_TYPE] = ...
977
- DYLINKER: ClassVar[Header.FILE_TYPE] = ...
978
- EXECUTE: ClassVar[Header.FILE_TYPE] = ...
979
- FVMLIB: ClassVar[Header.FILE_TYPE] = ...
980
- KEXT_BUNDLE: ClassVar[Header.FILE_TYPE] = ...
981
- OBJECT: ClassVar[Header.FILE_TYPE] = ...
982
- PRELOAD: ClassVar[Header.FILE_TYPE] = ...
983
- UNKNOWN: ClassVar[Header.FILE_TYPE] = ...
984
- __name__: str
985
- def __init__(self, *args, **kwargs) -> None: ...
986
- @staticmethod
987
- def from_value(arg: int, /) -> lief.MachO.Header.FILE_TYPE: ...
988
- def __ge__(self, other) -> bool: ...
989
- def __gt__(self, other) -> bool: ...
990
- def __hash__(self) -> int: ...
991
- def __index__(self) -> Any: ...
992
- def __int__(self) -> int: ...
993
- def __le__(self, other) -> bool: ...
994
- def __lt__(self, other) -> bool: ...
995
- @property
996
- def value(self) -> int: ...
997
-
998
- class FLAGS:
999
- ALLMODSBOUND: ClassVar[Header.FLAGS] = ...
1000
- ALLOW_STACK_EXECUTION: ClassVar[Header.FLAGS] = ...
1001
- APP_EXTENSION_SAFE: ClassVar[Header.FLAGS] = ...
1002
- BINDATLOAD: ClassVar[Header.FLAGS] = ...
1003
- BINDS_TO_WEAK: ClassVar[Header.FLAGS] = ...
1004
- CANONICAL: ClassVar[Header.FLAGS] = ...
1005
- DEAD_STRIPPABLE_DYLIB: ClassVar[Header.FLAGS] = ...
1006
- DYLDLINK: ClassVar[Header.FLAGS] = ...
1007
- FORCE_FLAT: ClassVar[Header.FLAGS] = ...
1008
- HAS_TLV_DESCRIPTORS: ClassVar[Header.FLAGS] = ...
1009
- INCRLINK: ClassVar[Header.FLAGS] = ...
1010
- LAZY_INIT: ClassVar[Header.FLAGS] = ...
1011
- NOFIXPREBINDING: ClassVar[Header.FLAGS] = ...
1012
- NOMULTIDEFS: ClassVar[Header.FLAGS] = ...
1013
- NOUNDEFS: ClassVar[Header.FLAGS] = ...
1014
- NO_HEAP_EXECUTION: ClassVar[Header.FLAGS] = ...
1015
- NO_REEXPORTED_DYLIBS: ClassVar[Header.FLAGS] = ...
1016
- PIE: ClassVar[Header.FLAGS] = ...
1017
- PREBINDABLE: ClassVar[Header.FLAGS] = ...
1018
- PREBOUND: ClassVar[Header.FLAGS] = ...
1019
- ROOT_SAFE: ClassVar[Header.FLAGS] = ...
1020
- SETUID_SAFE: ClassVar[Header.FLAGS] = ...
1021
- SPLIT_SEGS: ClassVar[Header.FLAGS] = ...
1022
- SUBSECTIONS_VIA_SYMBOLS: ClassVar[Header.FLAGS] = ...
1023
- TWOLEVEL: ClassVar[Header.FLAGS] = ...
1024
- WEAK_DEFINES: ClassVar[Header.FLAGS] = ...
1025
- __name__: str
1026
- def __init__(self, *args, **kwargs) -> None: ...
1027
- @staticmethod
1028
- def from_value(arg: int, /) -> lief.MachO.Header.FLAGS: ...
1029
- def __abs__(self) -> Any: ...
1030
- def __add__(self, other) -> Any: ...
1031
- @overload
1032
- def __and__(self, arg: int, /) -> int: ...
1033
- @overload
1034
- def __and__(self, arg: lief.MachO.Header.FLAGS, /) -> int: ...
1035
- def __floordiv__(self, other) -> Any: ...
1036
- def __ge__(self, arg: int, /) -> bool: ...
1037
- def __gt__(self, arg: int, /) -> bool: ...
1038
- def __hash__(self) -> int: ...
1039
- def __index__(self) -> Any: ...
1040
- def __int__(self) -> int: ...
1041
- def __invert__(self) -> int: ...
1042
- def __le__(self, arg: int, /) -> bool: ...
1043
- def __lshift__(self, other) -> Any: ...
1044
- def __lt__(self, arg: int, /) -> bool: ...
1045
- def __mul__(self, other) -> Any: ...
1046
- def __neg__(self) -> Any: ...
1047
- @overload
1048
- def __or__(self, arg: int, /) -> int: ...
1049
- @overload
1050
- def __or__(self, arg: lief.MachO.Header.FLAGS, /) -> lief.MachO.Header.FLAGS: ...
1051
- def __radd__(self, other) -> Any: ...
1052
- def __rand__(self, arg: int, /) -> int: ...
1053
- def __rfloordiv__(self, other) -> Any: ...
1054
- def __rlshift__(self, other) -> Any: ...
1055
- def __rmul__(self, other) -> Any: ...
1056
- def __ror__(self, arg: int, /) -> int: ...
1057
- def __rrshift__(self, other) -> Any: ...
1058
- def __rshift__(self, other) -> Any: ...
1059
- def __rsub__(self, other) -> Any: ...
1060
- def __rxor__(self, arg: int, /) -> int: ...
1061
- def __sub__(self, other) -> Any: ...
1062
- @overload
1063
- def __xor__(self, arg: int, /) -> int: ...
1064
- @overload
1065
- def __xor__(self, arg: lief.MachO.Header.FLAGS, /) -> int: ...
1066
- @property
1067
- def value(self) -> int: ...
1068
- cpu_subtype: int
1069
- cpu_type: lief.MachO.Header.CPU_TYPE
1070
- file_type: lief.MachO.Header.FILE_TYPE
1071
- flags: int
1072
- magic: lief.MachO.MACHO_TYPES
1073
- nb_cmds: int
1074
- reserved: int
1075
- sizeof_cmds: int
1076
- def __init__(self) -> None: ...
1077
- def add(self, flag: lief.MachO.Header.FLAGS) -> None: ...
1078
- def has(self, flag: lief.MachO.Header.FLAGS) -> bool: ...
1079
- def remove(self, flag: lief.MachO.Header.FLAGS) -> None: ...
1080
- def __contains__(self, arg: lief.MachO.Header.FLAGS, /) -> bool: ...
1081
- def __iadd__(self, arg: lief.MachO.Header.FLAGS, /) -> lief.MachO.Header: ...
1082
- def __isub__(self, arg: lief.MachO.Header.FLAGS, /) -> lief.MachO.Header: ...
1083
- @property
1084
- def flags_list(self) -> list[lief.MachO.Header.FLAGS]: ...
1085
-
1086
- class LinkEdit(SegmentCommand):
1087
- def __init__(self, *args, **kwargs) -> None: ...
1088
-
1089
- class LinkerOptHint(LoadCommand):
1090
- data_offset: int
1091
- data_size: int
1092
- def __init__(self, *args, **kwargs) -> None: ...
1093
- @property
1094
- def content(self) -> memoryview: ...
1095
-
1096
- class LoadCommand(lief.Object):
1097
- class TYPE:
1098
- BUILD_VERSION: ClassVar[LoadCommand.TYPE] = ...
1099
- CODE_SIGNATURE: ClassVar[LoadCommand.TYPE] = ...
1100
- DATA_IN_CODE: ClassVar[LoadCommand.TYPE] = ...
1101
- DYLD_CHAINED_FIXUPS: ClassVar[LoadCommand.TYPE] = ...
1102
- DYLD_ENVIRONMENT: ClassVar[LoadCommand.TYPE] = ...
1103
- DYLD_EXPORTS_TRIE: ClassVar[LoadCommand.TYPE] = ...
1104
- DYLD_INFO: ClassVar[LoadCommand.TYPE] = ...
1105
- DYLD_INFO_ONLY: ClassVar[LoadCommand.TYPE] = ...
1106
- DYLIB_CODE_SIGN_DRS: ClassVar[LoadCommand.TYPE] = ...
1107
- DYSYMTAB: ClassVar[LoadCommand.TYPE] = ...
1108
- ENCRYPTION_INFO: ClassVar[LoadCommand.TYPE] = ...
1109
- ENCRYPTION_INFO_64: ClassVar[LoadCommand.TYPE] = ...
1110
- FILESET_ENTRY: ClassVar[LoadCommand.TYPE] = ...
1111
- FUNCTION_STARTS: ClassVar[LoadCommand.TYPE] = ...
1112
- FVMFILE: ClassVar[LoadCommand.TYPE] = ...
1113
- IDENT: ClassVar[LoadCommand.TYPE] = ...
1114
- IDFVMLIB: ClassVar[LoadCommand.TYPE] = ...
1115
- ID_DYLIB: ClassVar[LoadCommand.TYPE] = ...
1116
- ID_DYLINKER: ClassVar[LoadCommand.TYPE] = ...
1117
- LAZY_LOAD_DYLIB: ClassVar[LoadCommand.TYPE] = ...
1118
- LIEF_UNKNOWN: ClassVar[LoadCommand.TYPE] = ...
1119
- LINKER_OPTIMIZATION_HINT: ClassVar[LoadCommand.TYPE] = ...
1120
- LINKER_OPTION: ClassVar[LoadCommand.TYPE] = ...
1121
- LOADFVMLIB: ClassVar[LoadCommand.TYPE] = ...
1122
- LOAD_DYLIB: ClassVar[LoadCommand.TYPE] = ...
1123
- LOAD_DYLINKER: ClassVar[LoadCommand.TYPE] = ...
1124
- LOAD_UPWARD_DYLIB: ClassVar[LoadCommand.TYPE] = ...
1125
- LOAD_WEAK_DYLIB: ClassVar[LoadCommand.TYPE] = ...
1126
- MAIN: ClassVar[LoadCommand.TYPE] = ...
1127
- NOTE: ClassVar[LoadCommand.TYPE] = ...
1128
- PREBIND_CKSUM: ClassVar[LoadCommand.TYPE] = ...
1129
- PREBOUND_DYLIB: ClassVar[LoadCommand.TYPE] = ...
1130
- PREPAGE: ClassVar[LoadCommand.TYPE] = ...
1131
- REEXPORT_DYLIB: ClassVar[LoadCommand.TYPE] = ...
1132
- ROUTINES: ClassVar[LoadCommand.TYPE] = ...
1133
- ROUTINES_64: ClassVar[LoadCommand.TYPE] = ...
1134
- RPATH: ClassVar[LoadCommand.TYPE] = ...
1135
- SEGMENT: ClassVar[LoadCommand.TYPE] = ...
1136
- SEGMENT_64: ClassVar[LoadCommand.TYPE] = ...
1137
- SEGMENT_SPLIT_INFO: ClassVar[LoadCommand.TYPE] = ...
1138
- SOURCE_VERSION: ClassVar[LoadCommand.TYPE] = ...
1139
- SUB_CLIENT: ClassVar[LoadCommand.TYPE] = ...
1140
- SUB_FRAMEWORK: ClassVar[LoadCommand.TYPE] = ...
1141
- SUB_LIBRARY: ClassVar[LoadCommand.TYPE] = ...
1142
- SUB_UMBRELLA: ClassVar[LoadCommand.TYPE] = ...
1143
- SYMSEG: ClassVar[LoadCommand.TYPE] = ...
1144
- SYMTAB: ClassVar[LoadCommand.TYPE] = ...
1145
- THREAD: ClassVar[LoadCommand.TYPE] = ...
1146
- TWOLEVEL_HINTS: ClassVar[LoadCommand.TYPE] = ...
1147
- UNIXTHREAD: ClassVar[LoadCommand.TYPE] = ...
1148
- UNKNOWN: ClassVar[LoadCommand.TYPE] = ...
1149
- UUID: ClassVar[LoadCommand.TYPE] = ...
1150
- VERSION_MIN_IPHONEOS: ClassVar[LoadCommand.TYPE] = ...
1151
- VERSION_MIN_MACOSX: ClassVar[LoadCommand.TYPE] = ...
1152
- VERSION_MIN_TVOS: ClassVar[LoadCommand.TYPE] = ...
1153
- VERSION_MIN_WATCHOS: ClassVar[LoadCommand.TYPE] = ...
1154
- __name__: str
1155
- def __init__(self, *args, **kwargs) -> None: ...
1156
- @staticmethod
1157
- def from_value(arg: int, /) -> lief.MachO.LoadCommand.TYPE: ...
1158
- def __ge__(self, other) -> bool: ...
1159
- def __gt__(self, other) -> bool: ...
1160
- def __hash__(self) -> int: ...
1161
- def __index__(self) -> Any: ...
1162
- def __int__(self) -> int: ...
1163
- def __le__(self, other) -> bool: ...
1164
- def __lt__(self, other) -> bool: ...
1165
- @property
1166
- def value(self) -> int: ...
1167
- command: lief.MachO.LoadCommand.TYPE
1168
- command_offset: int
1169
- data: memoryview
1170
- size: int
1171
- def __init__(self) -> None: ...
1172
-
1173
- class MACHO_TYPES:
1174
- CIGAM: ClassVar[MACHO_TYPES] = ...
1175
- CIGAM_64: ClassVar[MACHO_TYPES] = ...
1176
- FAT_CIGAM: ClassVar[MACHO_TYPES] = ...
1177
- FAT_MAGIC: ClassVar[MACHO_TYPES] = ...
1178
- MAGIC: ClassVar[MACHO_TYPES] = ...
1179
- MAGIC_64: ClassVar[MACHO_TYPES] = ...
1180
- NEURAL_MODEL: ClassVar[MACHO_TYPES] = ...
1181
- __name__: str
1182
- def __init__(self, *args, **kwargs) -> None: ...
1183
- @staticmethod
1184
- def from_value(arg: int, /) -> lief.MachO.MACHO_TYPES: ...
1185
- def __ge__(self, other) -> bool: ...
1186
- def __gt__(self, other) -> bool: ...
1187
- def __hash__(self) -> int: ...
1188
- def __index__(self) -> Any: ...
1189
- def __int__(self) -> int: ...
1190
- def __le__(self, other) -> bool: ...
1191
- def __lt__(self, other) -> bool: ...
1192
- @property
1193
- def value(self) -> int: ...
1194
-
1195
- class MainCommand(LoadCommand):
1196
- entrypoint: int
1197
- stack_size: int
1198
- def __init__(self, arg0: int, arg1: int, /) -> None: ...
1199
-
1200
- class PPC_RELOCATION:
1201
- BR14: ClassVar[PPC_RELOCATION] = ...
1202
- BR24: ClassVar[PPC_RELOCATION] = ...
1203
- HA16: ClassVar[PPC_RELOCATION] = ...
1204
- HA16_SECTDIFF: ClassVar[PPC_RELOCATION] = ...
1205
- HI16: ClassVar[PPC_RELOCATION] = ...
1206
- HI16_SECTDIFF: ClassVar[PPC_RELOCATION] = ...
1207
- JBSR: ClassVar[PPC_RELOCATION] = ...
1208
- LO14: ClassVar[PPC_RELOCATION] = ...
1209
- LO14_SECTDIFF: ClassVar[PPC_RELOCATION] = ...
1210
- LO16: ClassVar[PPC_RELOCATION] = ...
1211
- LO16_SECTDIFF: ClassVar[PPC_RELOCATION] = ...
1212
- LOCAL_SECTDIFF: ClassVar[PPC_RELOCATION] = ...
1213
- PAIR: ClassVar[PPC_RELOCATION] = ...
1214
- PB_LA_PTR: ClassVar[PPC_RELOCATION] = ...
1215
- SECTDIFF: ClassVar[PPC_RELOCATION] = ...
1216
- VANILLA: ClassVar[PPC_RELOCATION] = ...
1217
- __name__: str
1218
- def __init__(self, *args, **kwargs) -> None: ...
1219
- @staticmethod
1220
- def from_value(arg: int, /) -> lief.MachO.PPC_RELOCATION: ...
1221
- def __ge__(self, other) -> bool: ...
1222
- def __gt__(self, other) -> bool: ...
1223
- def __hash__(self) -> int: ...
1224
- def __index__(self) -> Any: ...
1225
- def __int__(self) -> int: ...
1226
- def __le__(self, other) -> bool: ...
1227
- def __lt__(self, other) -> bool: ...
1228
- @property
1229
- def value(self) -> int: ...
1230
-
1231
- class ParserConfig:
1232
- fix_from_memory: bool
1233
- parse_dyld_bindings: bool
1234
- parse_dyld_exports: bool
1235
- parse_dyld_rebases: bool
1236
- def __init__(self) -> None: ...
1237
- def full_dyldinfo(self, flag: bool) -> lief.MachO.ParserConfig: ...
1238
- @property
1239
- def deep(self) -> lief.MachO.ParserConfig: ...
1240
- @property
1241
- def quick(self) -> lief.MachO.ParserConfig: ...
1242
-
1243
- class RPathCommand(LoadCommand):
1244
- path: str
1245
- def __init__(self, *args, **kwargs) -> None: ...
1246
-
1247
- class Relocation(lief.Relocation):
1248
- class ORIGIN:
1249
- CHAINED_FIXUPS: ClassVar[Relocation.ORIGIN] = ...
1250
- DYLDINFO: ClassVar[Relocation.ORIGIN] = ...
1251
- RELOC_TABLE: ClassVar[Relocation.ORIGIN] = ...
1252
- UNKNOWN: ClassVar[Relocation.ORIGIN] = ...
1253
- __name__: str
1254
- def __init__(self, *args, **kwargs) -> None: ...
1255
- @staticmethod
1256
- def from_value(arg: int, /) -> lief.MachO.Relocation.ORIGIN: ...
1257
- def __ge__(self, other) -> bool: ...
1258
- def __gt__(self, other) -> bool: ...
1259
- def __hash__(self) -> int: ...
1260
- def __index__(self) -> Any: ...
1261
- def __int__(self) -> int: ...
1262
- def __le__(self, other) -> bool: ...
1263
- def __lt__(self, other) -> bool: ...
1264
- @property
1265
- def value(self) -> int: ...
1266
- address: int
1267
- pc_relative: bool
1268
- type: Union[lief.MachO.X86_RELOCATION,lief.MachO.X86_64_RELOCATION,lief.MachO.PPC_RELOCATION,lief.MachO.ARM_RELOCATION,lief.MachO.ARM64_RELOCATION,lief.MachO.DyldInfo.REBASE_TYPE,]
1269
- def __init__(self, *args, **kwargs) -> None: ...
1270
- @property
1271
- def architecture(self) -> lief.MachO.Header.CPU_TYPE: ...
1272
- @property
1273
- def has_section(self) -> bool: ...
1274
- @property
1275
- def has_segment(self) -> bool: ...
1276
- @property
1277
- def has_symbol(self) -> bool: ...
1278
- @property
1279
- def origin(self) -> lief.MachO.Relocation.ORIGIN: ...
1280
- @property
1281
- def section(self) -> lief.MachO.Section: ...
1282
- @property
1283
- def segment(self) -> lief.MachO.SegmentCommand: ...
1284
- @property
1285
- def symbol(self) -> lief.MachO.Symbol: ...
1286
-
1287
- class RelocationDyld(Relocation):
1288
- def __init__(self, *args, **kwargs) -> None: ...
1289
- def __ge__(self, arg: lief.MachO.RelocationDyld, /) -> bool: ...
1290
- def __gt__(self, arg: lief.MachO.RelocationDyld, /) -> bool: ...
1291
- def __le__(self, arg: lief.MachO.RelocationDyld, /) -> bool: ...
1292
- def __lt__(self, arg: lief.MachO.RelocationDyld, /) -> bool: ...
1293
-
1294
- class RelocationFixup(Relocation):
1295
- target: int
1296
- def __init__(self, *args, **kwargs) -> None: ...
1297
-
1298
- class RelocationObject(Relocation):
1299
- value: int
1300
- def __init__(self, *args, **kwargs) -> None: ...
1301
- @property
1302
- def is_scattered(self) -> bool: ...
1303
-
1304
- class Section(lief.Section):
1305
- class FLAGS:
1306
- DEBUG_INFO: ClassVar[Section.FLAGS] = ...
1307
- EXT_RELOC: ClassVar[Section.FLAGS] = ...
1308
- LIVE_SUPPORT: ClassVar[Section.FLAGS] = ...
1309
- LOC_RELOC: ClassVar[Section.FLAGS] = ...
1310
- NO_DEAD_STRIP: ClassVar[Section.FLAGS] = ...
1311
- NO_TOC: ClassVar[Section.FLAGS] = ...
1312
- PURE_INSTRUCTIONS: ClassVar[Section.FLAGS] = ...
1313
- SELF_MODIFYING_CODE: ClassVar[Section.FLAGS] = ...
1314
- SOME_INSTRUCTIONS: ClassVar[Section.FLAGS] = ...
1315
- STRIP_STATIC_SYMS: ClassVar[Section.FLAGS] = ...
1316
- __name__: str
1317
- def __init__(self, *args, **kwargs) -> None: ...
1318
- @staticmethod
1319
- def from_value(arg: int, /) -> lief.MachO.Section.FLAGS: ...
1320
- def __abs__(self) -> Any: ...
1321
- def __add__(self, other) -> Any: ...
1322
- @overload
1323
- def __and__(self, arg: int, /) -> int: ...
1324
- @overload
1325
- def __and__(self, arg: lief.MachO.Section.FLAGS, /) -> int: ...
1326
- def __floordiv__(self, other) -> Any: ...
1327
- def __ge__(self, arg: int, /) -> bool: ...
1328
- def __gt__(self, arg: int, /) -> bool: ...
1329
- def __hash__(self) -> int: ...
1330
- def __index__(self) -> Any: ...
1331
- def __int__(self) -> int: ...
1332
- def __invert__(self) -> int: ...
1333
- def __le__(self, arg: int, /) -> bool: ...
1334
- def __lshift__(self, other) -> Any: ...
1335
- def __lt__(self, arg: int, /) -> bool: ...
1336
- def __mul__(self, other) -> Any: ...
1337
- def __neg__(self) -> Any: ...
1338
- @overload
1339
- def __or__(self, arg: int, /) -> int: ...
1340
- @overload
1341
- def __or__(self, arg: lief.MachO.Section.FLAGS, /) -> lief.MachO.Section.FLAGS: ...
1342
- def __radd__(self, other) -> Any: ...
1343
- def __rand__(self, arg: int, /) -> int: ...
1344
- def __rfloordiv__(self, other) -> Any: ...
1345
- def __rlshift__(self, other) -> Any: ...
1346
- def __rmul__(self, other) -> Any: ...
1347
- def __ror__(self, arg: int, /) -> int: ...
1348
- def __rrshift__(self, other) -> Any: ...
1349
- def __rshift__(self, other) -> Any: ...
1350
- def __rsub__(self, other) -> Any: ...
1351
- def __rxor__(self, arg: int, /) -> int: ...
1352
- def __sub__(self, other) -> Any: ...
1353
- @overload
1354
- def __xor__(self, arg: int, /) -> int: ...
1355
- @overload
1356
- def __xor__(self, arg: lief.MachO.Section.FLAGS, /) -> int: ...
1357
- @property
1358
- def value(self) -> int: ...
1359
-
1360
- class TYPE:
1361
- COALESCED: ClassVar[Section.TYPE] = ...
1362
- CSTRING_LITERALS: ClassVar[Section.TYPE] = ...
1363
- DTRACE_DOF: ClassVar[Section.TYPE] = ...
1364
- GB_ZEROFILL: ClassVar[Section.TYPE] = ...
1365
- INIT_FUNC_OFFSETS: ClassVar[Section.TYPE] = ...
1366
- INTERPOSING: ClassVar[Section.TYPE] = ...
1367
- LAZY_DYLIB_SYMBOL_POINTERS: ClassVar[Section.TYPE] = ...
1368
- LAZY_SYMBOL_POINTERS: ClassVar[Section.TYPE] = ...
1369
- LITERAL_POINTERS: ClassVar[Section.TYPE] = ...
1370
- MOD_INIT_FUNC_POINTERS: ClassVar[Section.TYPE] = ...
1371
- MOD_TERM_FUNC_POINTERS: ClassVar[Section.TYPE] = ...
1372
- NON_LAZY_SYMBOL_POINTERS: ClassVar[Section.TYPE] = ...
1373
- REGULAR: ClassVar[Section.TYPE] = ...
1374
- SYMBOL_STUBS: ClassVar[Section.TYPE] = ...
1375
- S_16BYTE_LITERALS: ClassVar[Section.TYPE] = ...
1376
- S_4BYTE_LITERALS: ClassVar[Section.TYPE] = ...
1377
- S_8BYTE_LITERALS: ClassVar[Section.TYPE] = ...
1378
- THREAD_LOCAL_INIT_FUNCTION_POINTERS: ClassVar[Section.TYPE] = ...
1379
- THREAD_LOCAL_REGULAR: ClassVar[Section.TYPE] = ...
1380
- THREAD_LOCAL_VARIABLES: ClassVar[Section.TYPE] = ...
1381
- THREAD_LOCAL_VARIABLE_POINTERS: ClassVar[Section.TYPE] = ...
1382
- THREAD_LOCAL_ZEROFILL: ClassVar[Section.TYPE] = ...
1383
- ZEROFILL: ClassVar[Section.TYPE] = ...
1384
- __name__: str
1385
- def __init__(self, *args, **kwargs) -> None: ...
1386
- @staticmethod
1387
- def from_value(arg: int, /) -> lief.MachO.Section.TYPE: ...
1388
- def __ge__(self, other) -> bool: ...
1389
- def __gt__(self, other) -> bool: ...
1390
- def __hash__(self) -> int: ...
1391
- def __index__(self) -> Any: ...
1392
- def __int__(self) -> int: ...
1393
- def __le__(self, other) -> bool: ...
1394
- def __lt__(self, other) -> bool: ...
1395
- @property
1396
- def value(self) -> int: ...
1397
-
1398
- class it_relocations:
1399
- def __init__(self, *args, **kwargs) -> None: ...
1400
- def __getitem__(self, arg: int, /) -> lief.MachO.Relocation: ...
1401
- def __iter__(self) -> lief.MachO.SegmentCommand.it_relocations: ...
1402
- def __len__(self) -> int: ...
1403
- def __next__(self) -> lief.MachO.Relocation: ...
1404
- alignment: int
1405
- flags: lief.MachO.Section.FLAGS
1406
- numberof_relocations: int
1407
- relocation_offset: int
1408
- reserved1: int
1409
- reserved2: int
1410
- reserved3: int
1411
- segment_name: str
1412
- type: lief.MachO.Section.TYPE
1413
- @overload
1414
- def __init__(self) -> None: ...
1415
- @overload
1416
- def __init__(self, section_name: str) -> None: ...
1417
- @overload
1418
- def __init__(self, section_name: str, content: list[int]) -> None: ...
1419
- def add(self, flag: lief.MachO.Section.FLAGS) -> None: ...
1420
- def has(self, flag: lief.MachO.Section.FLAGS) -> bool: ...
1421
- def remove(self, flag: lief.MachO.Section.FLAGS) -> None: ...
1422
- def __contains__(self, arg: lief.MachO.Section.FLAGS, /) -> bool: ...
1423
- def __iadd__(self, arg: lief.MachO.Section.FLAGS, /) -> lief.MachO.Section: ...
1424
- def __isub__(self, arg: lief.MachO.Section.FLAGS, /) -> lief.MachO.Section: ...
1425
- @property
1426
- def flags_list(self) -> list[lief.MachO.Section.FLAGS]: ...
1427
- @property
1428
- def has_segment(self) -> bool: ...
1429
- @property
1430
- def relocations(self) -> lief.MachO.SegmentCommand.it_relocations: ...
1431
- @property
1432
- def segment(self) -> lief.MachO.SegmentCommand: ...
1433
-
1434
- class SegmentCommand(LoadCommand):
1435
- class FLAGS:
1436
- FVMLIB: ClassVar[SegmentCommand.FLAGS] = ...
1437
- HIGHVM: ClassVar[SegmentCommand.FLAGS] = ...
1438
- NORELOC: ClassVar[SegmentCommand.FLAGS] = ...
1439
- PROTECTED_VERSION_1: ClassVar[SegmentCommand.FLAGS] = ...
1440
- READ_ONLY: ClassVar[SegmentCommand.FLAGS] = ...
1441
- __name__: str
1442
- def __init__(self, *args, **kwargs) -> None: ...
1443
- @staticmethod
1444
- def from_value(arg: int, /) -> lief.MachO.SegmentCommand.FLAGS: ...
1445
- def __ge__(self, other) -> bool: ...
1446
- def __gt__(self, other) -> bool: ...
1447
- def __hash__(self) -> int: ...
1448
- def __index__(self) -> Any: ...
1449
- def __int__(self) -> int: ...
1450
- def __le__(self, other) -> bool: ...
1451
- def __lt__(self, other) -> bool: ...
1452
- @property
1453
- def value(self) -> int: ...
1454
-
1455
- class VM_PROTECTIONS:
1456
- R: ClassVar[SegmentCommand.VM_PROTECTIONS] = ...
1457
- W: ClassVar[SegmentCommand.VM_PROTECTIONS] = ...
1458
- X: ClassVar[SegmentCommand.VM_PROTECTIONS] = ...
1459
- __name__: str
1460
- def __init__(self, *args, **kwargs) -> None: ...
1461
- @staticmethod
1462
- def from_value(arg: int, /) -> lief.MachO.SegmentCommand.VM_PROTECTIONS: ...
1463
- def __ge__(self, other) -> bool: ...
1464
- def __gt__(self, other) -> bool: ...
1465
- def __hash__(self) -> int: ...
1466
- def __index__(self) -> Any: ...
1467
- def __int__(self) -> int: ...
1468
- def __le__(self, other) -> bool: ...
1469
- def __lt__(self, other) -> bool: ...
1470
- @property
1471
- def value(self) -> int: ...
1472
-
1473
- class it_relocations:
1474
- def __init__(self, *args, **kwargs) -> None: ...
1475
- def __getitem__(self, arg: int, /) -> lief.MachO.Relocation: ...
1476
- def __iter__(self) -> lief.MachO.SegmentCommand.it_relocations: ...
1477
- def __len__(self) -> int: ...
1478
- def __next__(self) -> lief.MachO.Relocation: ...
1479
-
1480
- class it_sections:
1481
- def __init__(self, *args, **kwargs) -> None: ...
1482
- def __getitem__(self, arg: int, /) -> lief.MachO.Section: ...
1483
- def __iter__(self) -> lief.MachO.SegmentCommand.it_sections: ...
1484
- def __len__(self) -> int: ...
1485
- def __next__(self) -> lief.MachO.Section: ...
1486
- content: memoryview
1487
- file_offset: int
1488
- file_size: int
1489
- flags: int
1490
- init_protection: int
1491
- max_protection: int
1492
- name: Union[str,bytes]
1493
- numberof_sections: int
1494
- virtual_address: int
1495
- virtual_size: int
1496
- @overload
1497
- def __init__(self) -> None: ...
1498
- @overload
1499
- def __init__(self, arg: str, /) -> None: ...
1500
- @overload
1501
- def __init__(self, arg0: str, arg1: list[int], /) -> None: ...
1502
- def add_section(self, section: lief.MachO.Section) -> lief.MachO.Section: ...
1503
- def get_section(self, name: str) -> lief.MachO.Section: ...
1504
- def has(self, section: lief.MachO.Section) -> bool: ...
1505
- def has_section(self, section_name: str) -> bool: ...
1506
- @property
1507
- def index(self) -> int: ...
1508
- @property
1509
- def relocations(self) -> lief.MachO.SegmentCommand.it_relocations: ...
1510
- @property
1511
- def sections(self) -> lief.MachO.SegmentCommand.it_sections: ...
1512
-
1513
- class SegmentSplitInfo(LoadCommand):
1514
- data_offset: int
1515
- data_size: int
1516
- def __init__(self, *args, **kwargs) -> None: ...
1517
- @property
1518
- def content(self) -> memoryview: ...
1519
-
1520
- class SourceVersion(LoadCommand):
1521
- version: list[int]
1522
- def __init__(self, *args, **kwargs) -> None: ...
1523
-
1524
- class SubFramework(LoadCommand):
1525
- umbrella: str
1526
- def __init__(self, *args, **kwargs) -> None: ...
1527
-
1528
- class Symbol(lief.Symbol):
1529
- class CATEGORY:
1530
- EXTERNAL: ClassVar[Symbol.CATEGORY] = ...
1531
- INDIRECT_ABS: ClassVar[Symbol.CATEGORY] = ...
1532
- INDIRECT_LOCAL: ClassVar[Symbol.CATEGORY] = ...
1533
- LOCAL: ClassVar[Symbol.CATEGORY] = ...
1534
- NONE: ClassVar[Symbol.CATEGORY] = ...
1535
- UNDEFINED: ClassVar[Symbol.CATEGORY] = ...
1536
- __name__: str
1537
- def __init__(self, *args, **kwargs) -> None: ...
1538
- @staticmethod
1539
- def from_value(arg: int, /) -> lief.MachO.Symbol.CATEGORY: ...
1540
- def __ge__(self, other) -> bool: ...
1541
- def __gt__(self, other) -> bool: ...
1542
- def __hash__(self) -> int: ...
1543
- def __index__(self) -> Any: ...
1544
- def __int__(self) -> int: ...
1545
- def __le__(self, other) -> bool: ...
1546
- def __lt__(self, other) -> bool: ...
1547
- @property
1548
- def value(self) -> int: ...
1549
-
1550
- class ORIGIN:
1551
- DYLD_BIND: ClassVar[Symbol.ORIGIN] = ...
1552
- DYLD_EXPORT: ClassVar[Symbol.ORIGIN] = ...
1553
- LC_SYMTAB: ClassVar[Symbol.ORIGIN] = ...
1554
- UNKNOWN: ClassVar[Symbol.ORIGIN] = ...
1555
- __name__: str
1556
- def __init__(self, *args, **kwargs) -> None: ...
1557
- @staticmethod
1558
- def from_value(arg: int, /) -> lief.MachO.Symbol.ORIGIN: ...
1559
- def __ge__(self, other) -> bool: ...
1560
- def __gt__(self, other) -> bool: ...
1561
- def __hash__(self) -> int: ...
1562
- def __index__(self) -> Any: ...
1563
- def __int__(self) -> int: ...
1564
- def __le__(self, other) -> bool: ...
1565
- def __lt__(self, other) -> bool: ...
1566
- @property
1567
- def value(self) -> int: ...
1568
-
1569
- class TYPE:
1570
- ABSOLUTE_SYM: ClassVar[Symbol.TYPE] = ...
1571
- INDIRECT: ClassVar[Symbol.TYPE] = ...
1572
- PREBOUND: ClassVar[Symbol.TYPE] = ...
1573
- SECTION: ClassVar[Symbol.TYPE] = ...
1574
- UNDEFINED: ClassVar[Symbol.TYPE] = ...
1575
- __name__: str
1576
- def __init__(self, *args, **kwargs) -> None: ...
1577
- @staticmethod
1578
- def from_value(arg: int, /) -> lief.MachO.Symbol.TYPE: ...
1579
- def __ge__(self, other) -> bool: ...
1580
- def __gt__(self, other) -> bool: ...
1581
- def __hash__(self) -> int: ...
1582
- def __index__(self) -> Any: ...
1583
- def __int__(self) -> int: ...
1584
- def __le__(self, other) -> bool: ...
1585
- def __lt__(self, other) -> bool: ...
1586
- @property
1587
- def value(self) -> int: ...
1588
- description: int
1589
- numberof_sections: int
1590
- raw_type: int
1591
- def __init__(self) -> None: ...
1592
- @property
1593
- def binding_info(self) -> lief.MachO.BindingInfo: ...
1594
- @property
1595
- def category(self) -> lief.MachO.Symbol.CATEGORY: ...
1596
- @property
1597
- def demangled_name(self) -> str: ...
1598
- @property
1599
- def export_info(self) -> lief.MachO.ExportInfo: ...
1600
- @property
1601
- def has_binding_info(self) -> bool: ...
1602
- @property
1603
- def has_export_info(self) -> bool: ...
1604
- @property
1605
- def origin(self) -> lief.MachO.Symbol.ORIGIN: ...
1606
- @property
1607
- def type(self) -> lief.MachO.Symbol.TYPE: ...
1608
-
1609
- class SymbolCommand(LoadCommand):
1610
- numberof_symbols: int
1611
- strings_offset: int
1612
- strings_size: int
1613
- symbol_offset: int
1614
- def __init__(self) -> None: ...
1615
-
1616
- class ThreadCommand(LoadCommand):
1617
- architecture: lief.MachO.Header.CPU_TYPE
1618
- count: int
1619
- flavor: int
1620
- state: memoryview
1621
- def __init__(self, arg0: int, arg1: int, arg2: lief.MachO.Header.CPU_TYPE, /) -> None: ...
1622
- @property
1623
- def pc(self) -> int: ...
1624
-
1625
- class TwoLevelHints(LoadCommand):
1626
- class it_hints_t:
1627
- def __init__(self, *args, **kwargs) -> None: ...
1628
- def __getitem__(self, arg: int, /) -> int: ...
1629
- def __iter__(self) -> lief.MachO.TwoLevelHints.it_hints_t: ...
1630
- def __len__(self) -> int: ...
1631
- def __next__(self) -> int: ...
1632
- def __init__(self, *args, **kwargs) -> None: ...
1633
- @property
1634
- def content(self) -> memoryview: ...
1635
- @property
1636
- def hints(self) -> lief.MachO.TwoLevelHints.it_hints_t: ...
1637
-
1638
- class UUIDCommand(LoadCommand):
1639
- uuid: list[int]
1640
- def __init__(self, *args, **kwargs) -> None: ...
1641
-
1642
- class UnknownCommand(LoadCommand):
1643
- def __init__(self, *args, **kwargs) -> None: ...
1644
- @property
1645
- def original_command(self) -> int: ...
1646
-
1647
- class VersionMin(LoadCommand):
1648
- sdk: list[int]
1649
- version: list[int]
1650
- def __init__(self, *args, **kwargs) -> None: ...
1651
-
1652
- class X86_64_RELOCATION:
1653
- BRANCH: ClassVar[X86_64_RELOCATION] = ...
1654
- GOT: ClassVar[X86_64_RELOCATION] = ...
1655
- GOT_LOAD: ClassVar[X86_64_RELOCATION] = ...
1656
- SIGNED: ClassVar[X86_64_RELOCATION] = ...
1657
- SIGNED_1: ClassVar[X86_64_RELOCATION] = ...
1658
- SIGNED_2: ClassVar[X86_64_RELOCATION] = ...
1659
- SIGNED_4: ClassVar[X86_64_RELOCATION] = ...
1660
- SUBTRACTOR: ClassVar[X86_64_RELOCATION] = ...
1661
- TLV: ClassVar[X86_64_RELOCATION] = ...
1662
- UNSIGNED: ClassVar[X86_64_RELOCATION] = ...
1663
- __name__: str
1664
- def __init__(self, *args, **kwargs) -> None: ...
1665
- @staticmethod
1666
- def from_value(arg: int, /) -> lief.MachO.X86_64_RELOCATION: ...
1667
- def __ge__(self, other) -> bool: ...
1668
- def __gt__(self, other) -> bool: ...
1669
- def __hash__(self) -> int: ...
1670
- def __index__(self) -> Any: ...
1671
- def __int__(self) -> int: ...
1672
- def __le__(self, other) -> bool: ...
1673
- def __lt__(self, other) -> bool: ...
1674
- @property
1675
- def value(self) -> int: ...
1676
-
1677
- class X86_RELOCATION:
1678
- LOCAL_SECTDIFF: ClassVar[X86_RELOCATION] = ...
1679
- PAIR: ClassVar[X86_RELOCATION] = ...
1680
- PB_LA_PTR: ClassVar[X86_RELOCATION] = ...
1681
- SECTDIFF: ClassVar[X86_RELOCATION] = ...
1682
- TLV: ClassVar[X86_RELOCATION] = ...
1683
- VANILLA: ClassVar[X86_RELOCATION] = ...
1684
- __name__: str
1685
- def __init__(self, *args, **kwargs) -> None: ...
1686
- @staticmethod
1687
- def from_value(arg: int, /) -> lief.MachO.X86_RELOCATION: ...
1688
- def __ge__(self, other) -> bool: ...
1689
- def __gt__(self, other) -> bool: ...
1690
- def __hash__(self) -> int: ...
1691
- def __index__(self) -> Any: ...
1692
- def __int__(self) -> int: ...
1693
- def __le__(self, other) -> bool: ...
1694
- def __lt__(self, other) -> bool: ...
1695
- @property
1696
- def value(self) -> int: ...
1697
-
1698
- class it_data_in_code_entries:
1699
- def __init__(self, *args, **kwargs) -> None: ...
1700
- def __getitem__(self, arg: int, /) -> lief.MachO.DataCodeEntry: ...
1701
- def __iter__(self) -> lief.MachO.it_data_in_code_entries: ...
1702
- def __len__(self) -> int: ...
1703
- def __next__(self) -> lief.MachO.DataCodeEntry: ...
1704
-
1705
- @overload
1706
- def check_layout(file: lief.MachO.Binary) -> tuple[bool,str]: ...
1707
- @overload
1708
- def check_layout(file: lief.MachO.FatBinary) -> tuple[bool,str]: ...
1709
- def is_64(file: str) -> bool: ...
1710
- def is_fat(file: str) -> bool: ...
1711
- @overload
1712
- def parse(filename: str, config: lief.MachO.ParserConfig = ...) -> Optional[lief.MachO.FatBinary]: ...
1713
- @overload
1714
- def parse(raw: list[int], config: lief.MachO.ParserConfig = ...) -> Optional[lief.MachO.FatBinary]: ...
1715
- @overload
1716
- def parse(obj: Union[io.IOBase|os.PathLike], config: lief.MachO.ParserConfig = ...) -> Optional[lief.MachO.FatBinary]: ...
1717
- def parse_from_memory(address: int, config: lief.MachO.ParserConfig = ...) -> Optional[lief.MachO.FatBinary]: ...