lief 0.16.5__cp312-cp312-win_arm64.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.

@@ -0,0 +1,44 @@
1
+ import enum
2
+ from typing import Iterator, Optional, Union
3
+
4
+
5
+ class LEVEL(enum.Enum):
6
+ OFF = 0
7
+
8
+ TRACE = 1
9
+
10
+ DEBUG = 2
11
+
12
+ CRITICAL = 6
13
+
14
+ ERROR = 5
15
+
16
+ WARN = 4
17
+
18
+ INFO = 3
19
+
20
+ def critical(msg: str) -> None: ...
21
+
22
+ def debug(msg: str) -> None: ...
23
+
24
+ def disable() -> None: ...
25
+
26
+ def enable() -> None: ...
27
+
28
+ def enable_debug() -> None: ...
29
+
30
+ def err(msg: str) -> None: ...
31
+
32
+ def get_level() -> LEVEL: ...
33
+
34
+ def info(msg: str) -> None: ...
35
+
36
+ def log(level: LEVEL, msg: str) -> None: ...
37
+
38
+ def reset() -> None: ...
39
+
40
+ def set_level(level: LEVEL) -> None: ...
41
+
42
+ def set_path(path: str) -> None: ...
43
+
44
+ def warn(msg: str) -> None: ...
lief/objc/__init__.pyi ADDED
@@ -0,0 +1,89 @@
1
+ from typing import Iterator, Optional, Union
2
+
3
+
4
+ class Class:
5
+ @property
6
+ def name(self) -> str: ...
7
+
8
+ @property
9
+ def demangled_name(self) -> str: ...
10
+
11
+ @property
12
+ def super_class(self) -> Optional[Class]: ...
13
+
14
+ @property
15
+ def is_meta(self) -> bool: ...
16
+
17
+ @property
18
+ def methods(self) -> Iterator[Optional[Method]]: ...
19
+
20
+ @property
21
+ def protocols(self) -> Iterator[Optional[Protocol]]: ...
22
+
23
+ @property
24
+ def properties(self) -> Iterator[Optional[Property]]: ...
25
+
26
+ @property
27
+ def ivars(self) -> Iterator[Optional[IVar]]: ...
28
+
29
+ def to_decl(self, opt: DeclOpt = ...) -> str: ...
30
+
31
+ class DeclOpt:
32
+ def __init__(self) -> None: ...
33
+
34
+ show_annotations: bool
35
+
36
+ class IVar:
37
+ @property
38
+ def name(self) -> str: ...
39
+
40
+ @property
41
+ def mangled_type(self) -> str: ...
42
+
43
+ class Metadata:
44
+ def to_decl(self, opt: DeclOpt = ...) -> str: ...
45
+
46
+ @property
47
+ def classes(self) -> Iterator[Optional[Class]]: ...
48
+
49
+ @property
50
+ def protocols(self) -> Iterator[Optional[Protocol]]: ...
51
+
52
+ def get_class(self, name: str) -> Optional[Class]: ...
53
+
54
+ def get_protocol(self, name: str) -> Optional[Protocol]: ...
55
+
56
+ class Method:
57
+ @property
58
+ def name(self) -> str: ...
59
+
60
+ @property
61
+ def mangled_type(self) -> str: ...
62
+
63
+ @property
64
+ def address(self) -> int: ...
65
+
66
+ @property
67
+ def is_instance(self) -> bool: ...
68
+
69
+ class Property:
70
+ @property
71
+ def name(self) -> str: ...
72
+
73
+ @property
74
+ def attribute(self) -> str: ...
75
+
76
+ class Protocol:
77
+ @property
78
+ def mangled_name(self) -> str: ...
79
+
80
+ @property
81
+ def optional_methods(self) -> Iterator[Optional[Method]]: ...
82
+
83
+ @property
84
+ def required_methods(self) -> Iterator[Optional[Method]]: ...
85
+
86
+ @property
87
+ def properties(self) -> Iterator[Optional[Property]]: ...
88
+
89
+ def to_decl(self, opt: DeclOpt = ...) -> str: ...
lief/pdb/__init__.pyi ADDED
@@ -0,0 +1,102 @@
1
+ import enum
2
+ from typing import Iterator, Optional, Union
3
+
4
+ from . import types as types
5
+ import lief
6
+
7
+
8
+ class CompilationUnit:
9
+ @property
10
+ def module_name(self) -> str: ...
11
+
12
+ @property
13
+ def object_filename(self) -> str: ...
14
+
15
+ @property
16
+ def sources(self) -> Iterator[str]: ...
17
+
18
+ @property
19
+ def functions(self) -> Iterator[Optional[Function]]: ...
20
+
21
+ class DebugInfo(lief.DebugInfo):
22
+ @property
23
+ def age(self) -> int: ...
24
+
25
+ @property
26
+ def guid(self) -> str: ...
27
+
28
+ @staticmethod
29
+ def from_file(filepath: str) -> Optional[DebugInfo]: ...
30
+
31
+ def find_type(self, name: str) -> Optional[Type]: ...
32
+
33
+ def find_public_symbol(self, name: str) -> Optional[PublicSymbol]: ...
34
+
35
+ @property
36
+ def public_symbols(self) -> Iterator[Optional[PublicSymbol]]: ...
37
+
38
+ @property
39
+ def compilation_units(self) -> Iterator[Optional[CompilationUnit]]: ...
40
+
41
+ @property
42
+ def types(self) -> Iterator[Optional[Type]]: ...
43
+
44
+ class Function:
45
+ @property
46
+ def name(self) -> str: ...
47
+
48
+ @property
49
+ def RVA(self) -> int: ...
50
+
51
+ @property
52
+ def code_size(self) -> int: ...
53
+
54
+ @property
55
+ def section_name(self) -> str: ...
56
+
57
+ @property
58
+ def debug_location(self) -> lief.debug_location_t: ...
59
+
60
+ class PublicSymbol:
61
+ @property
62
+ def name(self) -> str: ...
63
+
64
+ @property
65
+ def section_name(self) -> str: ...
66
+
67
+ @property
68
+ def RVA(self) -> int: ...
69
+
70
+ @property
71
+ def demangled_name(self) -> str: ...
72
+
73
+ class Type:
74
+ class KIND(enum.Enum):
75
+ UNKNOWN = 0
76
+
77
+ CLASS = 1
78
+
79
+ POINTER = 2
80
+
81
+ SIMPLE = 3
82
+
83
+ ENUM = 4
84
+
85
+ FUNCTION = 5
86
+
87
+ MODIFIER = 6
88
+
89
+ BITFIELD = 7
90
+
91
+ ARRAY = 8
92
+
93
+ UNION = 9
94
+
95
+ STRUCTURE = 10
96
+
97
+ INTERFACE = 11
98
+
99
+ @property
100
+ def kind(self) -> Type.KIND: ...
101
+
102
+ def load(path: str) -> Optional[DebugInfo]: ...
@@ -0,0 +1,69 @@
1
+ from typing import Iterator, Optional, Union as _Union
2
+
3
+ import lief
4
+
5
+
6
+ class Array(lief.pdb.Type):
7
+ pass
8
+
9
+ class Attribute:
10
+ @property
11
+ def name(self) -> str: ...
12
+
13
+ @property
14
+ def type(self) -> Optional[lief.pdb.Type]: ...
15
+
16
+ @property
17
+ def field_offset(self) -> int: ...
18
+
19
+ class BitField(lief.pdb.Type):
20
+ pass
21
+
22
+ class Class(ClassLike):
23
+ pass
24
+
25
+ class ClassLike(lief.pdb.Type):
26
+ @property
27
+ def attributes(self) -> Iterator[Optional[Attribute]]: ...
28
+
29
+ @property
30
+ def methods(self) -> Iterator[Optional[Method]]: ...
31
+
32
+ @property
33
+ def unique_name(self) -> str: ...
34
+
35
+ @property
36
+ def name(self) -> str: ...
37
+
38
+ @property
39
+ def size(self) -> int: ...
40
+
41
+ class Enum(lief.pdb.Type):
42
+ pass
43
+
44
+ class Function(lief.pdb.Type):
45
+ pass
46
+
47
+ class Interface(ClassLike):
48
+ pass
49
+
50
+ class Method:
51
+ @property
52
+ def name(self) -> str: ...
53
+
54
+ class Modifier(lief.pdb.Type):
55
+ @property
56
+ def underlying_type(self) -> Optional[lief.pdb.Type]: ...
57
+
58
+ class Pointer(lief.pdb.Type):
59
+ @property
60
+ def underlying_type(self) -> Optional[lief.pdb.Type]: ...
61
+
62
+ class Simple(lief.pdb.Type):
63
+ pass
64
+
65
+ class Structure(ClassLike):
66
+ pass
67
+
68
+ class Union(ClassLike):
69
+ pass
lief/py.typed ADDED
File without changes
@@ -0,0 +1,85 @@
1
+ Metadata-Version: 2.2
2
+ Name: lief
3
+ Version: 0.16.5
4
+ Summary: Library to instrument executable formats
5
+ Keywords: parser,elf,pe,macho,reverse-engineering
6
+ Author-Email: Romain Thomas <contact@lief.re>
7
+ License: Apache License 2.0
8
+ Classifier: Development Status :: 4 - Beta
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: Programming Language :: C++
11
+ Classifier: Topic :: Software Development :: Libraries
12
+ Project-URL: homepage, https://lief-project.github.io/
13
+ Project-URL: documentation, https://lief-project.github.io/doc/latest/
14
+ Project-URL: repository, https://github.com/lief-project/LIEF
15
+ Project-URL: changelog, https://lief-project.github.io/doc/latest/changelog.html
16
+ Project-URL: Funding, https://github.com/sponsors/lief-project
17
+ Project-URL: Tracker, https://github.com/lief-project/LIEF/issues
18
+ Requires-Python: >=3.8
19
+ Description-Content-Type: text/x-rst
20
+
21
+ About
22
+ =====
23
+
24
+ The purpose of this project is to provide a cross platform library that can parse, modify and
25
+ abstract ELF, PE and MachO formats.
26
+
27
+ Main features:
28
+
29
+ * **Parsing**: LIEF can parse ELF, PE, MachO, OAT, DEX, VDEX, ART and provides an user-friendly API to access to format internals.
30
+ * **Modify**: LIEF enables to modify some parts of these formats
31
+ * **Abstract**: Three formats have common features like sections, symbols, entry point... LIEF factors them.
32
+ * **API**: LIEF can be used in C, C++, Python and Rust
33
+
34
+ LIEF Extended:
35
+
36
+ * DWARF/PDB Support
37
+ * Objective-C Metadata
38
+ * dyld shared cache
39
+
40
+ Checkout: https://lief.re/doc/latest/extended/intro.html for the details
41
+
42
+ Getting Started
43
+ ================
44
+
45
+ .. code-block:: console
46
+
47
+ $ pip install lief
48
+
49
+ .. code-block:: python
50
+
51
+ import lief
52
+
53
+ elf = lief.ELF.parse("/bin/ls")
54
+ for section in elf.sections:
55
+ print(section.name, len(section.content))
56
+
57
+ pe = lief.PE.parse("cmd.exe")
58
+ for imp in pe.imports:
59
+ print(imp.name)
60
+
61
+ fat = lief.MachO.parse("/bin/dyld")
62
+ for macho in fat:
63
+ for sym in macho.symbols:
64
+ print(sym)
65
+
66
+ Documentation
67
+ =============
68
+
69
+ * `Main documentation <https://lief.re/doc/latest/index.html>`_
70
+ * `API <https://lief.re/doc/latest/api/python/index.html>`_
71
+
72
+ Contact
73
+ =======
74
+
75
+ * **Mail**: contact at lief.re
76
+ * **Discord**: `LIEF <https://discord.gg/jGQtyAYChJ>`_
77
+
78
+ Authors
79
+ =======
80
+
81
+ Romain Thomas `@rh0main <https://x.com/rh0main>`_
82
+
83
+ ----
84
+
85
+ LIEF is provided under the `Apache 2.0 license <https://github.com/lief-project/LIEF/blob/0.15.1/LICENSE>`_
@@ -0,0 +1,33 @@
1
+ lief/ART/__init__.pyi,sha256=1j1sBIH6yL_Yt57jfU5NjKApThpi3yIuZ55GVJw1cXA,1892
2
+ lief/Android/__init__.pyi,sha256=H01bnBakndPhjeV76KbniMaqCfOg6h06oMP3T-AcUrg,567
3
+ lief/DEX/__init__.pyi,sha256=NVtyApo4dTyj32PBAnhkO9X9x4dfFBeKdmVlrtKEI6c,9783
4
+ lief/ELF/__init__.pyi,sha256=wBbX0oVTKDvB1oHt9tKsDiqHBdFEUsbP8i6ey8a427U,98611
5
+ lief/MachO/__init__.pyi,sha256=4zVeZjSOngDh2Yhl6qN02N1bvRH19TjxDMX4hVTuWXc,55020
6
+ lief/OAT/__init__.pyi,sha256=_mR9e3n29myQFK4WSTwqXOnVmhXt53ASTQGz0mmB6E4,6802
7
+ lief/PE/__init__.pyi,sha256=JvOJY6HPj2-ZrUVPj4nN-JERFrb0Tz93Kn6bYacJmGE,70421
8
+ lief/VDEX/__init__.pyi,sha256=9YUZKojOWhtb15Vbn3JPuUu7HWkLnXH4eP1PQpp1-D4,1097
9
+ lief/__init__.py,sha256=sOMCNwqJ22NGeTiw6U8ZGdU974xKMcPJeVrqw_IuAFo,643
10
+ lief/__init__.pyi,sha256=Pw-RQM-xjzfEVX3K465XOBW5P0tqVsHW5kEjonWR6ok,11053
11
+ lief/_lief.pyd,sha256=fcmXykf1EqaiR3CLUppURc2dH96GVwyYLbtpFmrFjsk,8464896
12
+ lief/assembly/__init__.pyi,sha256=9lEo2ZtNqce4cdVzkV1_mQ3P2PFGbMwBchjFFIe3gl0,1914
13
+ lief/assembly/aarch64/__init__.pyi,sha256=9YkVkhh5w72vtHpZNAGqyhRoa80puk5W1ix3rGo6bGs,250900
14
+ lief/assembly/aarch64/operands/__init__.pyi,sha256=otjElFFmQmWz2qctYMB0ALmIRp4fUbRX36f_CQ1HuPo,1002
15
+ lief/assembly/arm/__init__.pyi,sha256=ru8DCl_u6HaILmV6GS86-01jx_6zH1vaE0DNWNQj2pI,108139
16
+ lief/assembly/ebpf/__init__.pyi,sha256=bfdbPUbzRZ4MBCTyNKms89eQJ5PEc_lKC30PKtUczGo,10772
17
+ lief/assembly/mips/__init__.pyi,sha256=N_CvN0GWAwSPjQwZfeXrQ7sw_3Hi3J-aHN0qXmeq35A,63710
18
+ lief/assembly/powerpc/__init__.pyi,sha256=Nt76r-HG7up81X95-UWN6TtASft0NnC0enl8G-mgBlg,59818
19
+ lief/assembly/riscv/__init__.pyi,sha256=SGG87C93DuLK0BQPmoBPDwf7_Be4PCcWkY1KIB4rkiw,491250
20
+ lief/assembly/x86/__init__.pyi,sha256=5QstuvVdFad9OBgRqfbfnC_pWy1zrGL9ztxKDnqaKQk,537260
21
+ lief/assembly/x86/operands/__init__.pyi,sha256=kGeLtyxU5xM5JT9RENtBd3clc0OtVDcxrRTzVf5aIz8,707
22
+ lief/dsc/__init__.pyi,sha256=nvPvXFCj_qWPS3VLCseIpLm-poaPBGbbqydevZMQ6Ms,4123
23
+ lief/dwarf/__init__.pyi,sha256=EH9xs19CjBp0Sun9y2jI-WN4q2jD4ugiN9N11YLz5Es,5332
24
+ lief/dwarf/parameters/__init__.pyi,sha256=8CKvucoHGmj2NkmgHgbNUZrHRZuyV1BFEzLAzW_Ipwg,268
25
+ lief/dwarf/types/__init__.pyi,sha256=VSIY3NHUsIQNE59_oxLdVh_SxbbsusfWmGo7UPMpeJM,3519
26
+ lief/logging/__init__.pyi,sha256=Wxhe9RqLOmZ74-GfgrY-Yjq9PnCQktUYIncHkSIoYrc,626
27
+ lief/objc/__init__.pyi,sha256=jYeFLOHsdI76IZk0q3LdqI5Q4D-Om4oc7WzfjvHMapc,1854
28
+ lief/pdb/__init__.pyi,sha256=kouZpAbkGg6QzeZLpMfGL7uKdoVur6AT3f901AVPdW0,1849
29
+ lief/pdb/types/__init__.pyi,sha256=KDf2dzaUWprt_yJgmcVeFF8q2k1w7C-zDcX-6PEzd6o,1194
30
+ lief/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
31
+ lief-0.16.5.dist-info/METADATA,sha256=XW7qW6SdwFJIqUw_YD7UWioxfutLDn17mfrUwTmM-0A,2423
32
+ lief-0.16.5.dist-info/WHEEL,sha256=4UJSqlR2JTv7m5nGPsBtqSWmHRzsK6CB7vOKGLLXhGo,106
33
+ lief-0.16.5.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: scikit-build-core 0.11.1
3
+ Root-Is-Purelib: false
4
+ Tag: cp312-cp312-win_arm64
5
+