lief 0.16.7__cp314-cp314-manylinux2014_aarch64.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.
- lief/ART/__init__.pyi +102 -0
- lief/Android/__init__.pyi +33 -0
- lief/DEX/__init__.pyi +512 -0
- lief/ELF/__init__.pyi +5342 -0
- lief/MachO/__init__.pyi +2680 -0
- lief/OAT/__init__.pyi +351 -0
- lief/PE/__init__.pyi +4098 -0
- lief/VDEX/__init__.pyi +56 -0
- lief/__init__.py +16 -0
- lief/__init__.pyi +574 -0
- lief/_lief.so +0 -0
- lief/assembly/__init__.pyi +104 -0
- lief/assembly/aarch64/__init__.pyi +20200 -0
- lief/assembly/aarch64/operands/__init__.pyi +48 -0
- lief/assembly/arm/__init__.pyi +9004 -0
- lief/assembly/ebpf/__init__.pyi +984 -0
- lief/assembly/mips/__init__.pyi +5798 -0
- lief/assembly/powerpc/__init__.pyi +5714 -0
- lief/assembly/riscv/__init__.pyi +27674 -0
- lief/assembly/x86/__init__.pyi +40433 -0
- lief/assembly/x86/operands/__init__.pyi +32 -0
- lief/dsc/__init__.pyi +222 -0
- lief/dwarf/__init__.pyi +293 -0
- lief/dwarf/parameters/__init__.pyi +14 -0
- lief/dwarf/types/__init__.pyi +167 -0
- lief/logging/__init__.pyi +44 -0
- lief/objc/__init__.pyi +89 -0
- lief/pdb/__init__.pyi +102 -0
- lief/pdb/types/__init__.pyi +69 -0
- lief/py.typed +0 -0
- lief-0.16.7.dist-info/METADATA +85 -0
- lief-0.16.7.dist-info/RECORD +33 -0
- lief-0.16.7.dist-info/WHEEL +5 -0
lief/PE/__init__.pyi
ADDED
|
@@ -0,0 +1,4098 @@
|
|
|
1
|
+
from collections.abc import Sequence
|
|
2
|
+
import enum
|
|
3
|
+
import io
|
|
4
|
+
import lief.PE
|
|
5
|
+
import os
|
|
6
|
+
from typing import Iterator, Optional, Union, overload
|
|
7
|
+
|
|
8
|
+
import lief
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class PE_TYPE(enum.Enum):
|
|
12
|
+
@staticmethod
|
|
13
|
+
def from_value(arg: int, /) -> PE_TYPE: ...
|
|
14
|
+
|
|
15
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
16
|
+
|
|
17
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
18
|
+
|
|
19
|
+
def __int__(self) -> int: ...
|
|
20
|
+
|
|
21
|
+
PE32 = 267
|
|
22
|
+
|
|
23
|
+
PE32_PLUS = 523
|
|
24
|
+
|
|
25
|
+
class SECTION_TYPES(enum.Enum):
|
|
26
|
+
@staticmethod
|
|
27
|
+
def from_value(arg: int, /) -> SECTION_TYPES: ...
|
|
28
|
+
|
|
29
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
30
|
+
|
|
31
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
32
|
+
|
|
33
|
+
def __int__(self) -> int: ...
|
|
34
|
+
|
|
35
|
+
TEXT = 0
|
|
36
|
+
|
|
37
|
+
IDATA = 2
|
|
38
|
+
|
|
39
|
+
DATA = 3
|
|
40
|
+
|
|
41
|
+
BSS = 4
|
|
42
|
+
|
|
43
|
+
RESOURCE = 5
|
|
44
|
+
|
|
45
|
+
RELOCATION = 6
|
|
46
|
+
|
|
47
|
+
EXPORT = 7
|
|
48
|
+
|
|
49
|
+
UNKNOWN = 10
|
|
50
|
+
|
|
51
|
+
class SYMBOL_BASE_TYPES(enum.Enum):
|
|
52
|
+
@staticmethod
|
|
53
|
+
def from_value(arg: int, /) -> SYMBOL_BASE_TYPES: ...
|
|
54
|
+
|
|
55
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
56
|
+
|
|
57
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
58
|
+
|
|
59
|
+
def __int__(self) -> int: ...
|
|
60
|
+
|
|
61
|
+
NULL = 0
|
|
62
|
+
|
|
63
|
+
VOID = 1
|
|
64
|
+
|
|
65
|
+
CHAR = 2
|
|
66
|
+
|
|
67
|
+
SHORT = 3
|
|
68
|
+
|
|
69
|
+
INT = 4
|
|
70
|
+
|
|
71
|
+
LONG = 5
|
|
72
|
+
|
|
73
|
+
FLOAT = 6
|
|
74
|
+
|
|
75
|
+
DOUBLE = 7
|
|
76
|
+
|
|
77
|
+
STRUCT = 8
|
|
78
|
+
|
|
79
|
+
UNION = 9
|
|
80
|
+
|
|
81
|
+
ENUM = 10
|
|
82
|
+
|
|
83
|
+
MOE = 11
|
|
84
|
+
|
|
85
|
+
BYTE = 12
|
|
86
|
+
|
|
87
|
+
WORD = 13
|
|
88
|
+
|
|
89
|
+
UINT = 14
|
|
90
|
+
|
|
91
|
+
DWORD = 15
|
|
92
|
+
|
|
93
|
+
class SYMBOL_COMPLEX_TYPES(enum.Enum):
|
|
94
|
+
@staticmethod
|
|
95
|
+
def from_value(arg: int, /) -> SYMBOL_COMPLEX_TYPES: ...
|
|
96
|
+
|
|
97
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
98
|
+
|
|
99
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
100
|
+
|
|
101
|
+
def __int__(self) -> int: ...
|
|
102
|
+
|
|
103
|
+
NULL = 0
|
|
104
|
+
|
|
105
|
+
POINTER = 1
|
|
106
|
+
|
|
107
|
+
FUNCTION = 2
|
|
108
|
+
|
|
109
|
+
ARRAY = 3
|
|
110
|
+
|
|
111
|
+
COMPLEX_TYPE_SHIFT = 4
|
|
112
|
+
|
|
113
|
+
class SYMBOL_SECTION_NUMBER(enum.Enum):
|
|
114
|
+
@staticmethod
|
|
115
|
+
def from_value(arg: int, /) -> SYMBOL_SECTION_NUMBER: ...
|
|
116
|
+
|
|
117
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
118
|
+
|
|
119
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
120
|
+
|
|
121
|
+
def __int__(self) -> int: ...
|
|
122
|
+
|
|
123
|
+
DEBUG = -2
|
|
124
|
+
|
|
125
|
+
ABSOLUTE = -1
|
|
126
|
+
|
|
127
|
+
UNDEFINED = 0
|
|
128
|
+
|
|
129
|
+
class SYMBOL_STORAGE_CLASS(enum.Enum):
|
|
130
|
+
@staticmethod
|
|
131
|
+
def from_value(arg: int, /) -> SYMBOL_STORAGE_CLASS: ...
|
|
132
|
+
|
|
133
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
134
|
+
|
|
135
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
136
|
+
|
|
137
|
+
def __int__(self) -> int: ...
|
|
138
|
+
|
|
139
|
+
END_OF_FUNCTION = -1
|
|
140
|
+
|
|
141
|
+
NULL = 0
|
|
142
|
+
|
|
143
|
+
AUTOMATIC = 1
|
|
144
|
+
|
|
145
|
+
EXTERNAL = 2
|
|
146
|
+
|
|
147
|
+
STATIC = 3
|
|
148
|
+
|
|
149
|
+
REGISTER = 4
|
|
150
|
+
|
|
151
|
+
EXTERNAL_DEF = 5
|
|
152
|
+
|
|
153
|
+
LABEL = 6
|
|
154
|
+
|
|
155
|
+
UNDEFINED_LABEL = 7
|
|
156
|
+
|
|
157
|
+
MEMBER_OF_STRUCT = 8
|
|
158
|
+
|
|
159
|
+
UNION_TAG = 12
|
|
160
|
+
|
|
161
|
+
TYPE_DEFINITION = 13
|
|
162
|
+
|
|
163
|
+
UDEFINED_STATIC = 14
|
|
164
|
+
|
|
165
|
+
ENUM_TAG = 15
|
|
166
|
+
|
|
167
|
+
MEMBER_OF_ENUM = 16
|
|
168
|
+
|
|
169
|
+
REGISTER_PARAM = 17
|
|
170
|
+
|
|
171
|
+
BIT_FIELD = 18
|
|
172
|
+
|
|
173
|
+
BLOCK = 100
|
|
174
|
+
|
|
175
|
+
FUNCTION = 101
|
|
176
|
+
|
|
177
|
+
END_OF_STRUCT = 102
|
|
178
|
+
|
|
179
|
+
FILE = 103
|
|
180
|
+
|
|
181
|
+
SECTION = 104
|
|
182
|
+
|
|
183
|
+
WEAK_EXTERNAL = 105
|
|
184
|
+
|
|
185
|
+
CLR_TOKEN = 107
|
|
186
|
+
|
|
187
|
+
class EXTENDED_WINDOW_STYLES(enum.Enum):
|
|
188
|
+
@staticmethod
|
|
189
|
+
def from_value(arg: int, /) -> EXTENDED_WINDOW_STYLES: ...
|
|
190
|
+
|
|
191
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
192
|
+
|
|
193
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
194
|
+
|
|
195
|
+
def __int__(self) -> int: ...
|
|
196
|
+
|
|
197
|
+
DLGMODALFRAME = 1
|
|
198
|
+
|
|
199
|
+
NOPARENTNOTIFY = 4
|
|
200
|
+
|
|
201
|
+
TOPMOST = 8
|
|
202
|
+
|
|
203
|
+
ACCEPTFILES = 16
|
|
204
|
+
|
|
205
|
+
TRANSPARENT = 32
|
|
206
|
+
|
|
207
|
+
MDICHILD = 64
|
|
208
|
+
|
|
209
|
+
TOOLWINDOW = 128
|
|
210
|
+
|
|
211
|
+
WINDOWEDGE = 256
|
|
212
|
+
|
|
213
|
+
CLIENTEDGE = 512
|
|
214
|
+
|
|
215
|
+
CONTEXTHELP = 1024
|
|
216
|
+
|
|
217
|
+
RIGHT = 4096
|
|
218
|
+
|
|
219
|
+
LEFT = 0
|
|
220
|
+
|
|
221
|
+
RTLREADING = 8192
|
|
222
|
+
|
|
223
|
+
LTRREADING = 0
|
|
224
|
+
|
|
225
|
+
LEFTSCROLLBAR = 16384
|
|
226
|
+
|
|
227
|
+
RIGHTSCROLLBAR = 0
|
|
228
|
+
|
|
229
|
+
CONTROLPARENT = 65536
|
|
230
|
+
|
|
231
|
+
STATICEDGE = 131072
|
|
232
|
+
|
|
233
|
+
APPWINDOW = 262144
|
|
234
|
+
|
|
235
|
+
class WINDOW_STYLES(enum.Enum):
|
|
236
|
+
@staticmethod
|
|
237
|
+
def from_value(arg: int, /) -> WINDOW_STYLES: ...
|
|
238
|
+
|
|
239
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
240
|
+
|
|
241
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
242
|
+
|
|
243
|
+
def __int__(self) -> int: ...
|
|
244
|
+
|
|
245
|
+
OVERLAPPED = 0
|
|
246
|
+
|
|
247
|
+
POPUP = 2147483648
|
|
248
|
+
|
|
249
|
+
CHILD = 1073741824
|
|
250
|
+
|
|
251
|
+
MINIMIZE = 536870912
|
|
252
|
+
|
|
253
|
+
VISIBLE = 268435456
|
|
254
|
+
|
|
255
|
+
DISABLED = 134217728
|
|
256
|
+
|
|
257
|
+
CLIPSIBLINGS = 67108864
|
|
258
|
+
|
|
259
|
+
CLIPCHILDREN = 33554432
|
|
260
|
+
|
|
261
|
+
MAXIMIZE = 16777216
|
|
262
|
+
|
|
263
|
+
CAPTION = 12582912
|
|
264
|
+
|
|
265
|
+
BORDER = 8388608
|
|
266
|
+
|
|
267
|
+
DLGFRAME = 4194304
|
|
268
|
+
|
|
269
|
+
VSCROLL = 2097152
|
|
270
|
+
|
|
271
|
+
HSCROLL = 1048576
|
|
272
|
+
|
|
273
|
+
SYSMENU = 524288
|
|
274
|
+
|
|
275
|
+
THICKFRAME = 262144
|
|
276
|
+
|
|
277
|
+
GROUP = 131072
|
|
278
|
+
|
|
279
|
+
TABSTOP = 65536
|
|
280
|
+
|
|
281
|
+
MINIMIZEBOX = 131072
|
|
282
|
+
|
|
283
|
+
MAXIMIZEBOX = 65536
|
|
284
|
+
|
|
285
|
+
class DIALOG_BOX_STYLES(enum.Enum):
|
|
286
|
+
@staticmethod
|
|
287
|
+
def from_value(arg: int, /) -> DIALOG_BOX_STYLES: ...
|
|
288
|
+
|
|
289
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
290
|
+
|
|
291
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
292
|
+
|
|
293
|
+
def __int__(self) -> int: ...
|
|
294
|
+
|
|
295
|
+
ABSALIGN = 1
|
|
296
|
+
|
|
297
|
+
SYSMODAL = 2
|
|
298
|
+
|
|
299
|
+
LOCALEDIT = 32
|
|
300
|
+
|
|
301
|
+
SETFONT = 64
|
|
302
|
+
|
|
303
|
+
MODALFRAME = 128
|
|
304
|
+
|
|
305
|
+
NOIDLEMSG = 256
|
|
306
|
+
|
|
307
|
+
SETFOREGROUND = 512
|
|
308
|
+
|
|
309
|
+
D3DLOOK = 4
|
|
310
|
+
|
|
311
|
+
FIXEDSYS = 8
|
|
312
|
+
|
|
313
|
+
NOFAILCREATE = 16
|
|
314
|
+
|
|
315
|
+
CONTROL = 1024
|
|
316
|
+
|
|
317
|
+
CENTER = 2048
|
|
318
|
+
|
|
319
|
+
CENTERMOUSE = 4096
|
|
320
|
+
|
|
321
|
+
CONTEXTHELP = 8192
|
|
322
|
+
|
|
323
|
+
SHELLFONT = 72
|
|
324
|
+
|
|
325
|
+
class FIXED_VERSION_OS(enum.Enum):
|
|
326
|
+
@staticmethod
|
|
327
|
+
def from_value(arg: int, /) -> FIXED_VERSION_OS: ...
|
|
328
|
+
|
|
329
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
330
|
+
|
|
331
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
332
|
+
|
|
333
|
+
def __int__(self) -> int: ...
|
|
334
|
+
|
|
335
|
+
UNKNOWN = 0
|
|
336
|
+
|
|
337
|
+
DOS = 65536
|
|
338
|
+
|
|
339
|
+
NT = 262144
|
|
340
|
+
|
|
341
|
+
WINDOWS16 = 1
|
|
342
|
+
|
|
343
|
+
WINDOWS32 = 4
|
|
344
|
+
|
|
345
|
+
OS216 = 131072
|
|
346
|
+
|
|
347
|
+
OS232 = 196608
|
|
348
|
+
|
|
349
|
+
PM16 = 2
|
|
350
|
+
|
|
351
|
+
PM32 = 3
|
|
352
|
+
|
|
353
|
+
DOS_WINDOWS16 = 65537
|
|
354
|
+
|
|
355
|
+
DOS_WINDOWS32 = 65540
|
|
356
|
+
|
|
357
|
+
NT_WINDOWS32 = 262148
|
|
358
|
+
|
|
359
|
+
OS216_PM16 = 131074
|
|
360
|
+
|
|
361
|
+
OS232_PM32 = 196611
|
|
362
|
+
|
|
363
|
+
class FIXED_VERSION_FILE_FLAGS(enum.Enum):
|
|
364
|
+
@staticmethod
|
|
365
|
+
def from_value(arg: int, /) -> FIXED_VERSION_FILE_FLAGS: ...
|
|
366
|
+
|
|
367
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
368
|
+
|
|
369
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
370
|
+
|
|
371
|
+
def __int__(self) -> int: ...
|
|
372
|
+
|
|
373
|
+
DEBUG = 1
|
|
374
|
+
|
|
375
|
+
INFOINFERRED = 16
|
|
376
|
+
|
|
377
|
+
PATCHED = 4
|
|
378
|
+
|
|
379
|
+
PRERELEASE = 2
|
|
380
|
+
|
|
381
|
+
PRIVATEBUILD = 8
|
|
382
|
+
|
|
383
|
+
SPECIALBUILD = 32
|
|
384
|
+
|
|
385
|
+
class FIXED_VERSION_FILE_TYPES(enum.Enum):
|
|
386
|
+
@staticmethod
|
|
387
|
+
def from_value(arg: int, /) -> FIXED_VERSION_FILE_TYPES: ...
|
|
388
|
+
|
|
389
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
390
|
+
|
|
391
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
392
|
+
|
|
393
|
+
def __int__(self) -> int: ...
|
|
394
|
+
|
|
395
|
+
APP = 1
|
|
396
|
+
|
|
397
|
+
DLL = 2
|
|
398
|
+
|
|
399
|
+
DRV = 3
|
|
400
|
+
|
|
401
|
+
FONT = 4
|
|
402
|
+
|
|
403
|
+
STATIC_LIB = 7
|
|
404
|
+
|
|
405
|
+
UNKNOWN = 0
|
|
406
|
+
|
|
407
|
+
VXD = 5
|
|
408
|
+
|
|
409
|
+
class FIXED_VERSION_FILE_SUB_TYPES(enum.Enum):
|
|
410
|
+
@staticmethod
|
|
411
|
+
def from_value(arg: int, /) -> FIXED_VERSION_FILE_SUB_TYPES: ...
|
|
412
|
+
|
|
413
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
414
|
+
|
|
415
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
416
|
+
|
|
417
|
+
def __int__(self) -> int: ...
|
|
418
|
+
|
|
419
|
+
DRV_COMM = 10
|
|
420
|
+
|
|
421
|
+
DRV_DISPLAY = 4
|
|
422
|
+
|
|
423
|
+
DRV_INSTALLABLE = 8
|
|
424
|
+
|
|
425
|
+
DRV_KEYBOARD = 2
|
|
426
|
+
|
|
427
|
+
DRV_LANGUAGE = 3
|
|
428
|
+
|
|
429
|
+
DRV_MOUSE = 5
|
|
430
|
+
|
|
431
|
+
DRV_NETWORK = 6
|
|
432
|
+
|
|
433
|
+
DRV_PRINTER = 1
|
|
434
|
+
|
|
435
|
+
DRV_SOUND = 9
|
|
436
|
+
|
|
437
|
+
DRV_SYSTEM = 7
|
|
438
|
+
|
|
439
|
+
DRV_VERSIONED_PRINTER = 12
|
|
440
|
+
|
|
441
|
+
FONT_RASTER = 1
|
|
442
|
+
|
|
443
|
+
FONT_TRUETYPE = 3
|
|
444
|
+
|
|
445
|
+
FONT_VECTOR = 2
|
|
446
|
+
|
|
447
|
+
UNKNOWN = 0
|
|
448
|
+
|
|
449
|
+
class CODE_PAGES(enum.Enum):
|
|
450
|
+
@staticmethod
|
|
451
|
+
def from_value(arg: int, /) -> CODE_PAGES: ...
|
|
452
|
+
|
|
453
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
454
|
+
|
|
455
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
456
|
+
|
|
457
|
+
def __int__(self) -> int: ...
|
|
458
|
+
|
|
459
|
+
IBM037 = 37
|
|
460
|
+
|
|
461
|
+
IBM437 = 437
|
|
462
|
+
|
|
463
|
+
IBM500 = 500
|
|
464
|
+
|
|
465
|
+
ASMO_708 = 708
|
|
466
|
+
|
|
467
|
+
DOS_720 = 720
|
|
468
|
+
|
|
469
|
+
IBM737 = 737
|
|
470
|
+
|
|
471
|
+
IBM775 = 775
|
|
472
|
+
|
|
473
|
+
IBM850 = 850
|
|
474
|
+
|
|
475
|
+
IBM852 = 852
|
|
476
|
+
|
|
477
|
+
IBM855 = 855
|
|
478
|
+
|
|
479
|
+
IBM857 = 857
|
|
480
|
+
|
|
481
|
+
IBM00858 = 858
|
|
482
|
+
|
|
483
|
+
IBM860 = 860
|
|
484
|
+
|
|
485
|
+
IBM861 = 861
|
|
486
|
+
|
|
487
|
+
DOS_862 = 862
|
|
488
|
+
|
|
489
|
+
IBM863 = 863
|
|
490
|
+
|
|
491
|
+
IBM864 = 864
|
|
492
|
+
|
|
493
|
+
IBM865 = 865
|
|
494
|
+
|
|
495
|
+
CP866 = 866
|
|
496
|
+
|
|
497
|
+
IBM869 = 869
|
|
498
|
+
|
|
499
|
+
IBM870 = 870
|
|
500
|
+
|
|
501
|
+
WINDOWS_874 = 874
|
|
502
|
+
|
|
503
|
+
CP875 = 875
|
|
504
|
+
|
|
505
|
+
SHIFT_JIS = 932
|
|
506
|
+
|
|
507
|
+
GB2312 = 936
|
|
508
|
+
|
|
509
|
+
KS_C_5601_1987 = 949
|
|
510
|
+
|
|
511
|
+
BIG5 = 950
|
|
512
|
+
|
|
513
|
+
IBM1026 = 1026
|
|
514
|
+
|
|
515
|
+
IBM01047 = 1047
|
|
516
|
+
|
|
517
|
+
IBM01140 = 1140
|
|
518
|
+
|
|
519
|
+
IBM01141 = 1141
|
|
520
|
+
|
|
521
|
+
IBM01142 = 1142
|
|
522
|
+
|
|
523
|
+
IBM01143 = 1143
|
|
524
|
+
|
|
525
|
+
IBM01144 = 1144
|
|
526
|
+
|
|
527
|
+
IBM01145 = 1145
|
|
528
|
+
|
|
529
|
+
IBM01146 = 1146
|
|
530
|
+
|
|
531
|
+
IBM01147 = 1147
|
|
532
|
+
|
|
533
|
+
IBM01148 = 1148
|
|
534
|
+
|
|
535
|
+
IBM01149 = 1149
|
|
536
|
+
|
|
537
|
+
UTF_16 = 1200
|
|
538
|
+
|
|
539
|
+
UNICODEFFFE = 1201
|
|
540
|
+
|
|
541
|
+
WINDOWS_1250 = 1250
|
|
542
|
+
|
|
543
|
+
WINDOWS_1251 = 1251
|
|
544
|
+
|
|
545
|
+
WINDOWS_1252 = 1252
|
|
546
|
+
|
|
547
|
+
WINDOWS_1253 = 1253
|
|
548
|
+
|
|
549
|
+
WINDOWS_1254 = 1254
|
|
550
|
+
|
|
551
|
+
WINDOWS_1255 = 1255
|
|
552
|
+
|
|
553
|
+
WINDOWS_1256 = 1256
|
|
554
|
+
|
|
555
|
+
WINDOWS_1257 = 1257
|
|
556
|
+
|
|
557
|
+
WINDOWS_1258 = 1258
|
|
558
|
+
|
|
559
|
+
JOHAB = 1361
|
|
560
|
+
|
|
561
|
+
MACINTOSH = 10000
|
|
562
|
+
|
|
563
|
+
X_MAC_JAPANESE = 10001
|
|
564
|
+
|
|
565
|
+
X_MAC_CHINESETRAD = 10002
|
|
566
|
+
|
|
567
|
+
X_MAC_KOREAN = 10003
|
|
568
|
+
|
|
569
|
+
X_MAC_ARABIC = 10004
|
|
570
|
+
|
|
571
|
+
X_MAC_HEBREW = 10005
|
|
572
|
+
|
|
573
|
+
X_MAC_GREEK = 10006
|
|
574
|
+
|
|
575
|
+
X_MAC_CYRILLIC = 10007
|
|
576
|
+
|
|
577
|
+
X_MAC_CHINESESIMP = 10008
|
|
578
|
+
|
|
579
|
+
X_MAC_ROMANIAN = 10010
|
|
580
|
+
|
|
581
|
+
X_MAC_UKRAINIAN = 10017
|
|
582
|
+
|
|
583
|
+
X_MAC_THAI = 10021
|
|
584
|
+
|
|
585
|
+
X_MAC_CE = 10029
|
|
586
|
+
|
|
587
|
+
X_MAC_ICELANDIC = 10079
|
|
588
|
+
|
|
589
|
+
X_MAC_TURKISH = 10081
|
|
590
|
+
|
|
591
|
+
X_MAC_CROATIAN = 10082
|
|
592
|
+
|
|
593
|
+
UTF_32 = 12000
|
|
594
|
+
|
|
595
|
+
UTF_32BE = 12001
|
|
596
|
+
|
|
597
|
+
X_CHINESE_CNS = 20000
|
|
598
|
+
|
|
599
|
+
X_CP20001 = 20001
|
|
600
|
+
|
|
601
|
+
X_CHINESE_ETEN = 20002
|
|
602
|
+
|
|
603
|
+
X_CP20003 = 20003
|
|
604
|
+
|
|
605
|
+
X_CP20004 = 20004
|
|
606
|
+
|
|
607
|
+
X_CP20005 = 20005
|
|
608
|
+
|
|
609
|
+
X_IA5 = 20105
|
|
610
|
+
|
|
611
|
+
X_IA5_GERMAN = 20106
|
|
612
|
+
|
|
613
|
+
X_IA5_SWEDISH = 20107
|
|
614
|
+
|
|
615
|
+
X_IA5_NORWEGIAN = 20108
|
|
616
|
+
|
|
617
|
+
US_ASCII = 20127
|
|
618
|
+
|
|
619
|
+
X_CP20261 = 20261
|
|
620
|
+
|
|
621
|
+
X_CP20269 = 20269
|
|
622
|
+
|
|
623
|
+
IBM273 = 20273
|
|
624
|
+
|
|
625
|
+
IBM277 = 20277
|
|
626
|
+
|
|
627
|
+
IBM278 = 20278
|
|
628
|
+
|
|
629
|
+
IBM280 = 20280
|
|
630
|
+
|
|
631
|
+
IBM284 = 20284
|
|
632
|
+
|
|
633
|
+
IBM285 = 20285
|
|
634
|
+
|
|
635
|
+
IBM290 = 20290
|
|
636
|
+
|
|
637
|
+
IBM297 = 20297
|
|
638
|
+
|
|
639
|
+
IBM420 = 20420
|
|
640
|
+
|
|
641
|
+
IBM423 = 20423
|
|
642
|
+
|
|
643
|
+
IBM424 = 20424
|
|
644
|
+
|
|
645
|
+
X_EBCDIC_KOREANEXTENDED = 20833
|
|
646
|
+
|
|
647
|
+
IBM_THAI = 20838
|
|
648
|
+
|
|
649
|
+
KOI8_R = 20866
|
|
650
|
+
|
|
651
|
+
IBM871 = 20871
|
|
652
|
+
|
|
653
|
+
IBM880 = 20880
|
|
654
|
+
|
|
655
|
+
IBM905 = 20905
|
|
656
|
+
|
|
657
|
+
IBM00924 = 20924
|
|
658
|
+
|
|
659
|
+
EUC_JP_JIS = 20932
|
|
660
|
+
|
|
661
|
+
X_CP20936 = 20936
|
|
662
|
+
|
|
663
|
+
X_CP20949 = 20949
|
|
664
|
+
|
|
665
|
+
CP1025 = 21025
|
|
666
|
+
|
|
667
|
+
KOI8_U = 21866
|
|
668
|
+
|
|
669
|
+
ISO_8859_1 = 28591
|
|
670
|
+
|
|
671
|
+
ISO_8859_2 = 28592
|
|
672
|
+
|
|
673
|
+
ISO_8859_3 = 28593
|
|
674
|
+
|
|
675
|
+
ISO_8859_4 = 28594
|
|
676
|
+
|
|
677
|
+
ISO_8859_5 = 28595
|
|
678
|
+
|
|
679
|
+
ISO_8859_6 = 28596
|
|
680
|
+
|
|
681
|
+
ISO_8859_7 = 28597
|
|
682
|
+
|
|
683
|
+
ISO_8859_8 = 28598
|
|
684
|
+
|
|
685
|
+
ISO_8859_9 = 28599
|
|
686
|
+
|
|
687
|
+
ISO_8859_13 = 28603
|
|
688
|
+
|
|
689
|
+
ISO_8859_15 = 28605
|
|
690
|
+
|
|
691
|
+
X_EUROPA = 29001
|
|
692
|
+
|
|
693
|
+
ISO_8859_8_I = 38598
|
|
694
|
+
|
|
695
|
+
ISO_2022_JP = 50220
|
|
696
|
+
|
|
697
|
+
CSISO2022JP = 50221
|
|
698
|
+
|
|
699
|
+
ISO_2022_JP_JIS = 50222
|
|
700
|
+
|
|
701
|
+
ISO_2022_KR = 50225
|
|
702
|
+
|
|
703
|
+
X_CP50227 = 50227
|
|
704
|
+
|
|
705
|
+
EUC_JP = 51932
|
|
706
|
+
|
|
707
|
+
EUC_CN = 51936
|
|
708
|
+
|
|
709
|
+
EUC_KR = 51949
|
|
710
|
+
|
|
711
|
+
HZ_GB_2312 = 52936
|
|
712
|
+
|
|
713
|
+
GB18030 = 54936
|
|
714
|
+
|
|
715
|
+
X_ISCII_DE = 57002
|
|
716
|
+
|
|
717
|
+
X_ISCII_BE = 57003
|
|
718
|
+
|
|
719
|
+
X_ISCII_TA = 57004
|
|
720
|
+
|
|
721
|
+
X_ISCII_TE = 57005
|
|
722
|
+
|
|
723
|
+
X_ISCII_AS = 57006
|
|
724
|
+
|
|
725
|
+
X_ISCII_OR = 57007
|
|
726
|
+
|
|
727
|
+
X_ISCII_KA = 57008
|
|
728
|
+
|
|
729
|
+
X_ISCII_MA = 57009
|
|
730
|
+
|
|
731
|
+
X_ISCII_GU = 57010
|
|
732
|
+
|
|
733
|
+
X_ISCII_PA = 57011
|
|
734
|
+
|
|
735
|
+
UTF_7 = 65000
|
|
736
|
+
|
|
737
|
+
UTF_8 = 65001
|
|
738
|
+
|
|
739
|
+
class ACCELERATOR_FLAGS(enum.Flag):
|
|
740
|
+
@staticmethod
|
|
741
|
+
def from_value(arg: int, /) -> ACCELERATOR_FLAGS: ...
|
|
742
|
+
|
|
743
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
744
|
+
|
|
745
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
746
|
+
|
|
747
|
+
def __int__(self) -> int: ...
|
|
748
|
+
|
|
749
|
+
FVIRTKEY = 1
|
|
750
|
+
|
|
751
|
+
FNOINVERT = 2
|
|
752
|
+
|
|
753
|
+
FSHIFT = 4
|
|
754
|
+
|
|
755
|
+
FCONTROL = 8
|
|
756
|
+
|
|
757
|
+
FALT = 16
|
|
758
|
+
|
|
759
|
+
END = 128
|
|
760
|
+
|
|
761
|
+
class ACCELERATOR_VK_CODES(enum.Enum):
|
|
762
|
+
@staticmethod
|
|
763
|
+
def from_value(arg: int, /) -> ACCELERATOR_VK_CODES: ...
|
|
764
|
+
|
|
765
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
766
|
+
|
|
767
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
768
|
+
|
|
769
|
+
def __int__(self) -> int: ...
|
|
770
|
+
|
|
771
|
+
VK_LBUTTON = 1
|
|
772
|
+
|
|
773
|
+
VK_RBUTTON = 2
|
|
774
|
+
|
|
775
|
+
VK_CANCEL = 3
|
|
776
|
+
|
|
777
|
+
VK_MBUTTON = 4
|
|
778
|
+
|
|
779
|
+
VK_XBUTTON1 = 5
|
|
780
|
+
|
|
781
|
+
VK_XBUTTON2 = 6
|
|
782
|
+
|
|
783
|
+
VK_BACK = 8
|
|
784
|
+
|
|
785
|
+
VK_TAB = 9
|
|
786
|
+
|
|
787
|
+
VK_CLEAR = 12
|
|
788
|
+
|
|
789
|
+
VK_RETURN = 13
|
|
790
|
+
|
|
791
|
+
VK_SHIFT = 16
|
|
792
|
+
|
|
793
|
+
VK_CONTROL = 17
|
|
794
|
+
|
|
795
|
+
VK_MENU = 18
|
|
796
|
+
|
|
797
|
+
VK_PAUSE = 19
|
|
798
|
+
|
|
799
|
+
VK_CAPITAL = 20
|
|
800
|
+
|
|
801
|
+
VK_KANA = 21
|
|
802
|
+
|
|
803
|
+
VK_HANGUEL = 21
|
|
804
|
+
|
|
805
|
+
VK_HANGUL = 21
|
|
806
|
+
|
|
807
|
+
VK_IME_ON = 22
|
|
808
|
+
|
|
809
|
+
VK_JUNJA = 23
|
|
810
|
+
|
|
811
|
+
VK_FINAL = 24
|
|
812
|
+
|
|
813
|
+
VK_HANJA = 25
|
|
814
|
+
|
|
815
|
+
VK_KANJI = 25
|
|
816
|
+
|
|
817
|
+
VK_IME_OFF = 26
|
|
818
|
+
|
|
819
|
+
VK_ESCAPE = 27
|
|
820
|
+
|
|
821
|
+
VK_CONVERT = 28
|
|
822
|
+
|
|
823
|
+
VK_NONCONVERT = 29
|
|
824
|
+
|
|
825
|
+
VK_ACCEPT = 30
|
|
826
|
+
|
|
827
|
+
VK_MODECHANGE = 31
|
|
828
|
+
|
|
829
|
+
VK_SPACE = 32
|
|
830
|
+
|
|
831
|
+
VK_PRIOR = 33
|
|
832
|
+
|
|
833
|
+
VK_NEXT = 34
|
|
834
|
+
|
|
835
|
+
VK_END = 35
|
|
836
|
+
|
|
837
|
+
VK_HOME = 36
|
|
838
|
+
|
|
839
|
+
VK_LEFT = 37
|
|
840
|
+
|
|
841
|
+
VK_UP = 38
|
|
842
|
+
|
|
843
|
+
VK_RIGHT = 39
|
|
844
|
+
|
|
845
|
+
VK_DOWN = 40
|
|
846
|
+
|
|
847
|
+
VK_SELECT = 41
|
|
848
|
+
|
|
849
|
+
VK_PRINT = 42
|
|
850
|
+
|
|
851
|
+
VK_EXECUTE = 43
|
|
852
|
+
|
|
853
|
+
VK_SNAPSHOT = 44
|
|
854
|
+
|
|
855
|
+
VK_INSERT = 45
|
|
856
|
+
|
|
857
|
+
VK_DELETE = 46
|
|
858
|
+
|
|
859
|
+
VK_HELP = 47
|
|
860
|
+
|
|
861
|
+
VK_0 = 48
|
|
862
|
+
|
|
863
|
+
VK_1 = 49
|
|
864
|
+
|
|
865
|
+
VK_2 = 50
|
|
866
|
+
|
|
867
|
+
VK_3 = 51
|
|
868
|
+
|
|
869
|
+
VK_4 = 52
|
|
870
|
+
|
|
871
|
+
VK_5 = 53
|
|
872
|
+
|
|
873
|
+
VK_6 = 54
|
|
874
|
+
|
|
875
|
+
VK_7 = 55
|
|
876
|
+
|
|
877
|
+
VK_8 = 56
|
|
878
|
+
|
|
879
|
+
VK_9 = 57
|
|
880
|
+
|
|
881
|
+
VK_A = 65
|
|
882
|
+
|
|
883
|
+
VK_B = 66
|
|
884
|
+
|
|
885
|
+
VK_C = 67
|
|
886
|
+
|
|
887
|
+
VK_D = 68
|
|
888
|
+
|
|
889
|
+
VK_E = 69
|
|
890
|
+
|
|
891
|
+
VK_F = 70
|
|
892
|
+
|
|
893
|
+
VK_G = 71
|
|
894
|
+
|
|
895
|
+
VK_H = 72
|
|
896
|
+
|
|
897
|
+
VK_I = 73
|
|
898
|
+
|
|
899
|
+
VK_J = 74
|
|
900
|
+
|
|
901
|
+
VK_K = 75
|
|
902
|
+
|
|
903
|
+
VK_L = 76
|
|
904
|
+
|
|
905
|
+
VK_M = 77
|
|
906
|
+
|
|
907
|
+
VK_N = 78
|
|
908
|
+
|
|
909
|
+
VK_O = 79
|
|
910
|
+
|
|
911
|
+
VK_P = 80
|
|
912
|
+
|
|
913
|
+
VK_Q = 81
|
|
914
|
+
|
|
915
|
+
VK_R = 82
|
|
916
|
+
|
|
917
|
+
VK_S = 83
|
|
918
|
+
|
|
919
|
+
VK_T = 84
|
|
920
|
+
|
|
921
|
+
VK_U = 85
|
|
922
|
+
|
|
923
|
+
VK_V = 86
|
|
924
|
+
|
|
925
|
+
VK_W = 87
|
|
926
|
+
|
|
927
|
+
VK_X = 88
|
|
928
|
+
|
|
929
|
+
VK_Y = 89
|
|
930
|
+
|
|
931
|
+
VK_Z = 96
|
|
932
|
+
|
|
933
|
+
VK_LWIN = 91
|
|
934
|
+
|
|
935
|
+
VK_RWIN = 92
|
|
936
|
+
|
|
937
|
+
VK_APPS = 93
|
|
938
|
+
|
|
939
|
+
VK_SLEEP = 95
|
|
940
|
+
|
|
941
|
+
VK_NUMPAD0 = 96
|
|
942
|
+
|
|
943
|
+
VK_NUMPAD1 = 97
|
|
944
|
+
|
|
945
|
+
VK_NUMPAD2 = 98
|
|
946
|
+
|
|
947
|
+
VK_NUMPAD3 = 99
|
|
948
|
+
|
|
949
|
+
VK_NUMPAD4 = 100
|
|
950
|
+
|
|
951
|
+
VK_NUMPAD5 = 101
|
|
952
|
+
|
|
953
|
+
VK_NUMPAD6 = 102
|
|
954
|
+
|
|
955
|
+
VK_NUMPAD7 = 103
|
|
956
|
+
|
|
957
|
+
VK_NUMPAD8 = 104
|
|
958
|
+
|
|
959
|
+
VK_NUMPAD9 = 105
|
|
960
|
+
|
|
961
|
+
VK_MULTIPLY = 106
|
|
962
|
+
|
|
963
|
+
VK_ADD = 107
|
|
964
|
+
|
|
965
|
+
VK_SEPARATOR = 108
|
|
966
|
+
|
|
967
|
+
VK_SUBTRACT = 109
|
|
968
|
+
|
|
969
|
+
VK_DECIMAL = 110
|
|
970
|
+
|
|
971
|
+
VK_DIVIDE = 111
|
|
972
|
+
|
|
973
|
+
VK_F1 = 112
|
|
974
|
+
|
|
975
|
+
VK_F2 = 113
|
|
976
|
+
|
|
977
|
+
VK_F3 = 114
|
|
978
|
+
|
|
979
|
+
VK_F4 = 115
|
|
980
|
+
|
|
981
|
+
VK_F5 = 116
|
|
982
|
+
|
|
983
|
+
VK_F6 = 117
|
|
984
|
+
|
|
985
|
+
VK_F7 = 118
|
|
986
|
+
|
|
987
|
+
VK_F8 = 119
|
|
988
|
+
|
|
989
|
+
VK_F9 = 120
|
|
990
|
+
|
|
991
|
+
VK_F10 = 121
|
|
992
|
+
|
|
993
|
+
VK_F11 = 122
|
|
994
|
+
|
|
995
|
+
VK_F12 = 123
|
|
996
|
+
|
|
997
|
+
VK_F13 = 124
|
|
998
|
+
|
|
999
|
+
VK_F14 = 125
|
|
1000
|
+
|
|
1001
|
+
VK_F15 = 126
|
|
1002
|
+
|
|
1003
|
+
VK_F16 = 127
|
|
1004
|
+
|
|
1005
|
+
VK_F17 = 128
|
|
1006
|
+
|
|
1007
|
+
VK_F18 = 129
|
|
1008
|
+
|
|
1009
|
+
VK_F19 = 130
|
|
1010
|
+
|
|
1011
|
+
VK_F20 = 131
|
|
1012
|
+
|
|
1013
|
+
VK_F21 = 132
|
|
1014
|
+
|
|
1015
|
+
VK_F22 = 133
|
|
1016
|
+
|
|
1017
|
+
VK_F23 = 134
|
|
1018
|
+
|
|
1019
|
+
VK_F24 = 135
|
|
1020
|
+
|
|
1021
|
+
VK_NUMLOCK = 144
|
|
1022
|
+
|
|
1023
|
+
VK_SCROLL = 145
|
|
1024
|
+
|
|
1025
|
+
VK_LSHIFT = 160
|
|
1026
|
+
|
|
1027
|
+
VK_RSHIFT = 161
|
|
1028
|
+
|
|
1029
|
+
VK_LCONTROL = 162
|
|
1030
|
+
|
|
1031
|
+
VK_RCONTROL = 163
|
|
1032
|
+
|
|
1033
|
+
VK_LMENU = 164
|
|
1034
|
+
|
|
1035
|
+
VK_RMENU = 165
|
|
1036
|
+
|
|
1037
|
+
VK_BROWSER_BACK = 166
|
|
1038
|
+
|
|
1039
|
+
VK_BROWSER_FORWARD = 167
|
|
1040
|
+
|
|
1041
|
+
VK_BROWSER_REFRESH = 168
|
|
1042
|
+
|
|
1043
|
+
VK_BROWSER_STOP = 169
|
|
1044
|
+
|
|
1045
|
+
VK_BROWSER_SEARCH = 170
|
|
1046
|
+
|
|
1047
|
+
VK_BROWSER_FAVORITES = 171
|
|
1048
|
+
|
|
1049
|
+
VK_BROWSER_HOME = 172
|
|
1050
|
+
|
|
1051
|
+
VK_VOLUME_MUTE = 173
|
|
1052
|
+
|
|
1053
|
+
VK_VOLUME_DOWN = 174
|
|
1054
|
+
|
|
1055
|
+
VK_VOLUME_UP = 175
|
|
1056
|
+
|
|
1057
|
+
VK_MEDIA_NEXT_TRACK = 176
|
|
1058
|
+
|
|
1059
|
+
VK_MEDIA_PREV_TRACK = 177
|
|
1060
|
+
|
|
1061
|
+
VK_MEDIA_STOP = 178
|
|
1062
|
+
|
|
1063
|
+
VK_MEDIA_PLAY_PAUSE = 179
|
|
1064
|
+
|
|
1065
|
+
VK_LAUNCH_MAIL = 180
|
|
1066
|
+
|
|
1067
|
+
VK_LAUNCH_MEDIA_SELECT = 181
|
|
1068
|
+
|
|
1069
|
+
VK_LAUNCH_APP1 = 182
|
|
1070
|
+
|
|
1071
|
+
VK_LAUNCH_APP2 = 183
|
|
1072
|
+
|
|
1073
|
+
VK_OEM_1 = 186
|
|
1074
|
+
|
|
1075
|
+
VK_OEM_PLUS = 187
|
|
1076
|
+
|
|
1077
|
+
VK_OEM_COMMA = 188
|
|
1078
|
+
|
|
1079
|
+
VK_OEM_MINUS = 189
|
|
1080
|
+
|
|
1081
|
+
VK_OEM_PERIOD = 190
|
|
1082
|
+
|
|
1083
|
+
VK_OEM_2 = 191
|
|
1084
|
+
|
|
1085
|
+
VK_OEM_4 = 219
|
|
1086
|
+
|
|
1087
|
+
VK_OEM_5 = 220
|
|
1088
|
+
|
|
1089
|
+
VK_OEM_6 = 221
|
|
1090
|
+
|
|
1091
|
+
VK_OEM_7 = 222
|
|
1092
|
+
|
|
1093
|
+
VK_OEM_8 = 223
|
|
1094
|
+
|
|
1095
|
+
VK_OEM_102 = 226
|
|
1096
|
+
|
|
1097
|
+
VK_PROCESSKEY = 229
|
|
1098
|
+
|
|
1099
|
+
VK_PACKET = 231
|
|
1100
|
+
|
|
1101
|
+
VK_ATTN = 246
|
|
1102
|
+
|
|
1103
|
+
VK_CRSEL = 247
|
|
1104
|
+
|
|
1105
|
+
VK_EXSEL = 248
|
|
1106
|
+
|
|
1107
|
+
VK_EREOF = 249
|
|
1108
|
+
|
|
1109
|
+
VK_PLAY = 250
|
|
1110
|
+
|
|
1111
|
+
VK_ZOOM = 251
|
|
1112
|
+
|
|
1113
|
+
VK_NONAME = 252
|
|
1114
|
+
|
|
1115
|
+
VK_PA1 = 253
|
|
1116
|
+
|
|
1117
|
+
VK_OEM_CLEAR = 254
|
|
1118
|
+
|
|
1119
|
+
class ALGORITHMS(enum.Enum):
|
|
1120
|
+
@staticmethod
|
|
1121
|
+
def from_value(arg: int, /) -> ALGORITHMS: ...
|
|
1122
|
+
|
|
1123
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
1124
|
+
|
|
1125
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
1126
|
+
|
|
1127
|
+
def __int__(self) -> int: ...
|
|
1128
|
+
|
|
1129
|
+
UNKNOWN = 0
|
|
1130
|
+
|
|
1131
|
+
SHA_512 = 1
|
|
1132
|
+
|
|
1133
|
+
SHA_384 = 2
|
|
1134
|
+
|
|
1135
|
+
SHA_256 = 3
|
|
1136
|
+
|
|
1137
|
+
SHA_1 = 4
|
|
1138
|
+
|
|
1139
|
+
MD5 = 5
|
|
1140
|
+
|
|
1141
|
+
MD4 = 6
|
|
1142
|
+
|
|
1143
|
+
MD2 = 7
|
|
1144
|
+
|
|
1145
|
+
RSA = 8
|
|
1146
|
+
|
|
1147
|
+
EC = 9
|
|
1148
|
+
|
|
1149
|
+
MD5_RSA = 10
|
|
1150
|
+
|
|
1151
|
+
SHA1_DSA = 11
|
|
1152
|
+
|
|
1153
|
+
SHA1_RSA = 12
|
|
1154
|
+
|
|
1155
|
+
SHA_256_RSA = 13
|
|
1156
|
+
|
|
1157
|
+
SHA_384_RSA = 14
|
|
1158
|
+
|
|
1159
|
+
SHA_512_RSA = 15
|
|
1160
|
+
|
|
1161
|
+
SHA1_ECDSA = 16
|
|
1162
|
+
|
|
1163
|
+
SHA_256_ECDSA = 17
|
|
1164
|
+
|
|
1165
|
+
SHA_384_ECDSA = 18
|
|
1166
|
+
|
|
1167
|
+
SHA_512_ECDSA = 19
|
|
1168
|
+
|
|
1169
|
+
class ParserConfig:
|
|
1170
|
+
def __init__(self) -> None: ...
|
|
1171
|
+
|
|
1172
|
+
parse_signature: bool
|
|
1173
|
+
|
|
1174
|
+
parse_exports: bool
|
|
1175
|
+
|
|
1176
|
+
parse_imports: bool
|
|
1177
|
+
|
|
1178
|
+
parse_rsrc: bool
|
|
1179
|
+
|
|
1180
|
+
parse_reloc: bool
|
|
1181
|
+
|
|
1182
|
+
all: ParserConfig = ...
|
|
1183
|
+
|
|
1184
|
+
@overload
|
|
1185
|
+
def parse(filename: str, config: ParserConfig = ...) -> Optional[Binary]: ...
|
|
1186
|
+
|
|
1187
|
+
@overload
|
|
1188
|
+
def parse(raw: Sequence[int], config: ParserConfig = ...) -> Optional[Binary]: ...
|
|
1189
|
+
|
|
1190
|
+
@overload
|
|
1191
|
+
def parse(obj: Union[io.IOBase | os.PathLike], config: ParserConfig = ...) -> Optional[Binary]: ...
|
|
1192
|
+
|
|
1193
|
+
class DosHeader(lief.Object):
|
|
1194
|
+
@staticmethod
|
|
1195
|
+
def create(arg: PE_TYPE, /) -> DosHeader: ...
|
|
1196
|
+
|
|
1197
|
+
magic: int
|
|
1198
|
+
|
|
1199
|
+
used_bytes_in_last_page: int
|
|
1200
|
+
|
|
1201
|
+
file_size_in_pages: int
|
|
1202
|
+
|
|
1203
|
+
numberof_relocation: int
|
|
1204
|
+
|
|
1205
|
+
header_size_in_paragraphs: int
|
|
1206
|
+
|
|
1207
|
+
minimum_extra_paragraphs: int
|
|
1208
|
+
|
|
1209
|
+
maximum_extra_paragraphs: int
|
|
1210
|
+
|
|
1211
|
+
initial_relative_ss: int
|
|
1212
|
+
|
|
1213
|
+
initial_sp: int
|
|
1214
|
+
|
|
1215
|
+
checksum: int
|
|
1216
|
+
|
|
1217
|
+
initial_ip: int
|
|
1218
|
+
|
|
1219
|
+
initial_relative_cs: int
|
|
1220
|
+
|
|
1221
|
+
addressof_relocation_table: int
|
|
1222
|
+
|
|
1223
|
+
overlay_number: int
|
|
1224
|
+
|
|
1225
|
+
oem_id: int
|
|
1226
|
+
|
|
1227
|
+
oem_info: int
|
|
1228
|
+
|
|
1229
|
+
addressof_new_exeheader: int
|
|
1230
|
+
|
|
1231
|
+
def copy(self) -> DosHeader: ...
|
|
1232
|
+
|
|
1233
|
+
def __str__(self) -> str: ...
|
|
1234
|
+
|
|
1235
|
+
class Header(lief.Object):
|
|
1236
|
+
class MACHINE_TYPES(enum.Enum):
|
|
1237
|
+
@staticmethod
|
|
1238
|
+
def from_value(arg: int, /) -> Header.MACHINE_TYPES: ...
|
|
1239
|
+
|
|
1240
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
1241
|
+
|
|
1242
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
1243
|
+
|
|
1244
|
+
def __int__(self) -> int: ...
|
|
1245
|
+
|
|
1246
|
+
UNKNOWN = 0
|
|
1247
|
+
|
|
1248
|
+
AM33 = 467
|
|
1249
|
+
|
|
1250
|
+
AMD64 = 34404
|
|
1251
|
+
|
|
1252
|
+
ARM = 448
|
|
1253
|
+
|
|
1254
|
+
ARMNT = 452
|
|
1255
|
+
|
|
1256
|
+
ARM64 = 43620
|
|
1257
|
+
|
|
1258
|
+
EBC = 3772
|
|
1259
|
+
|
|
1260
|
+
I386 = 332
|
|
1261
|
+
|
|
1262
|
+
IA64 = 512
|
|
1263
|
+
|
|
1264
|
+
M32R = 36929
|
|
1265
|
+
|
|
1266
|
+
MIPS16 = 614
|
|
1267
|
+
|
|
1268
|
+
MIPSFPU = 870
|
|
1269
|
+
|
|
1270
|
+
MIPSFPU16 = 1126
|
|
1271
|
+
|
|
1272
|
+
POWERPC = 496
|
|
1273
|
+
|
|
1274
|
+
POWERPCFP = 497
|
|
1275
|
+
|
|
1276
|
+
POWERPCBE = 498
|
|
1277
|
+
|
|
1278
|
+
R4000 = 358
|
|
1279
|
+
|
|
1280
|
+
SH3 = 418
|
|
1281
|
+
|
|
1282
|
+
SH3DSP = 419
|
|
1283
|
+
|
|
1284
|
+
SH4 = 422
|
|
1285
|
+
|
|
1286
|
+
SH5 = 424
|
|
1287
|
+
|
|
1288
|
+
THUMB = 450
|
|
1289
|
+
|
|
1290
|
+
WCEMIPSV2 = 361
|
|
1291
|
+
|
|
1292
|
+
class CHARACTERISTICS(enum.Flag):
|
|
1293
|
+
@staticmethod
|
|
1294
|
+
def from_value(arg: int, /) -> Header.CHARACTERISTICS: ...
|
|
1295
|
+
|
|
1296
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
1297
|
+
|
|
1298
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
1299
|
+
|
|
1300
|
+
def __int__(self) -> int: ...
|
|
1301
|
+
|
|
1302
|
+
RELOCS_STRIPPED = 1
|
|
1303
|
+
|
|
1304
|
+
EXECUTABLE_IMAGE = 2
|
|
1305
|
+
|
|
1306
|
+
LINE_NUMS_STRIPPED = 4
|
|
1307
|
+
|
|
1308
|
+
LOCAL_SYMS_STRIPPED = 8
|
|
1309
|
+
|
|
1310
|
+
AGGRESSIVE_WS_TRIM = 16
|
|
1311
|
+
|
|
1312
|
+
LARGE_ADDRESS_AWARE = 32
|
|
1313
|
+
|
|
1314
|
+
BYTES_REVERSED_LO = 128
|
|
1315
|
+
|
|
1316
|
+
NEED_32BIT_MACHINE = 256
|
|
1317
|
+
|
|
1318
|
+
DEBUG_STRIPPED = 512
|
|
1319
|
+
|
|
1320
|
+
REMOVABLE_RUN_FROM_SWAP = 1024
|
|
1321
|
+
|
|
1322
|
+
NET_RUN_FROM_SWAP = 2048
|
|
1323
|
+
|
|
1324
|
+
SYSTEM = 4096
|
|
1325
|
+
|
|
1326
|
+
DLL = 8192
|
|
1327
|
+
|
|
1328
|
+
UP_SYSTEM_ONLY = 16384
|
|
1329
|
+
|
|
1330
|
+
BYTES_REVERSED_HI = 32768
|
|
1331
|
+
|
|
1332
|
+
@staticmethod
|
|
1333
|
+
def create(type: PE_TYPE) -> Header: ...
|
|
1334
|
+
|
|
1335
|
+
signature: list[int]
|
|
1336
|
+
|
|
1337
|
+
machine: Header.MACHINE_TYPES
|
|
1338
|
+
|
|
1339
|
+
numberof_sections: int
|
|
1340
|
+
|
|
1341
|
+
time_date_stamps: int
|
|
1342
|
+
|
|
1343
|
+
pointerto_symbol_table: int
|
|
1344
|
+
|
|
1345
|
+
numberof_symbols: int
|
|
1346
|
+
|
|
1347
|
+
sizeof_optional_header: int
|
|
1348
|
+
|
|
1349
|
+
characteristics: int
|
|
1350
|
+
|
|
1351
|
+
def has_characteristic(self, characteristic: Header.CHARACTERISTICS) -> bool: ...
|
|
1352
|
+
|
|
1353
|
+
def add_characteristic(self, characteristic: Header.CHARACTERISTICS) -> None: ...
|
|
1354
|
+
|
|
1355
|
+
def remove_characteristic(self, characteristic: Header.CHARACTERISTICS) -> None: ...
|
|
1356
|
+
|
|
1357
|
+
@property
|
|
1358
|
+
def characteristics_list(self) -> list[Header.CHARACTERISTICS]: ...
|
|
1359
|
+
|
|
1360
|
+
def copy(self) -> Header: ...
|
|
1361
|
+
|
|
1362
|
+
def __str__(self) -> str: ...
|
|
1363
|
+
|
|
1364
|
+
class OptionalHeader(lief.Object):
|
|
1365
|
+
class SUBSYSTEM(enum.Enum):
|
|
1366
|
+
@staticmethod
|
|
1367
|
+
def from_value(arg: int, /) -> OptionalHeader.SUBSYSTEM: ...
|
|
1368
|
+
|
|
1369
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
1370
|
+
|
|
1371
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
1372
|
+
|
|
1373
|
+
def __int__(self) -> int: ...
|
|
1374
|
+
|
|
1375
|
+
UNKNOWN = 0
|
|
1376
|
+
|
|
1377
|
+
NATIVE = 1
|
|
1378
|
+
|
|
1379
|
+
WINDOWS_GUI = 2
|
|
1380
|
+
|
|
1381
|
+
WINDOWS_CUI = 3
|
|
1382
|
+
|
|
1383
|
+
OS2_CUI = 5
|
|
1384
|
+
|
|
1385
|
+
POSIX_CUI = 7
|
|
1386
|
+
|
|
1387
|
+
NATIVE_WINDOWS = 8
|
|
1388
|
+
|
|
1389
|
+
WINDOWS_CE_GUI = 9
|
|
1390
|
+
|
|
1391
|
+
EFI_APPLICATION = 10
|
|
1392
|
+
|
|
1393
|
+
EFI_BOOT_SERVICE_DRIVER = 11
|
|
1394
|
+
|
|
1395
|
+
EFI_RUNTIME_DRIVER = 12
|
|
1396
|
+
|
|
1397
|
+
EFI_ROM = 13
|
|
1398
|
+
|
|
1399
|
+
XBOX = 14
|
|
1400
|
+
|
|
1401
|
+
WINDOWS_BOOT_APPLICATION = 16
|
|
1402
|
+
|
|
1403
|
+
class DLL_CHARACTERISTICS(enum.IntFlag):
|
|
1404
|
+
def __repr__(self, /): ...
|
|
1405
|
+
|
|
1406
|
+
@staticmethod
|
|
1407
|
+
def from_value(arg: int, /) -> OptionalHeader.DLL_CHARACTERISTICS: ...
|
|
1408
|
+
|
|
1409
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
1410
|
+
|
|
1411
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
1412
|
+
|
|
1413
|
+
def __int__(self) -> int: ...
|
|
1414
|
+
|
|
1415
|
+
HIGH_ENTROPY_VA = 32
|
|
1416
|
+
|
|
1417
|
+
DYNAMIC_BASE = 64
|
|
1418
|
+
|
|
1419
|
+
FORCE_INTEGRITY = 128
|
|
1420
|
+
|
|
1421
|
+
NX_COMPAT = 256
|
|
1422
|
+
|
|
1423
|
+
NO_ISOLATION = 512
|
|
1424
|
+
|
|
1425
|
+
NO_SEH = 1024
|
|
1426
|
+
|
|
1427
|
+
NO_BIND = 2048
|
|
1428
|
+
|
|
1429
|
+
APPCONTAINER = 4096
|
|
1430
|
+
|
|
1431
|
+
WDM_DRIVER = 8192
|
|
1432
|
+
|
|
1433
|
+
GUARD_CF = 16384
|
|
1434
|
+
|
|
1435
|
+
TERMINAL_SERVER_AWARE = 32768
|
|
1436
|
+
|
|
1437
|
+
@staticmethod
|
|
1438
|
+
def create(type: PE_TYPE) -> OptionalHeader: ...
|
|
1439
|
+
|
|
1440
|
+
magic: PE_TYPE
|
|
1441
|
+
|
|
1442
|
+
major_linker_version: int
|
|
1443
|
+
|
|
1444
|
+
minor_linker_version: int
|
|
1445
|
+
|
|
1446
|
+
sizeof_code: int
|
|
1447
|
+
|
|
1448
|
+
sizeof_initialized_data: int
|
|
1449
|
+
|
|
1450
|
+
sizeof_uninitialized_data: int
|
|
1451
|
+
|
|
1452
|
+
addressof_entrypoint: int
|
|
1453
|
+
|
|
1454
|
+
baseof_code: int
|
|
1455
|
+
|
|
1456
|
+
baseof_data: int
|
|
1457
|
+
|
|
1458
|
+
imagebase: int
|
|
1459
|
+
|
|
1460
|
+
section_alignment: int
|
|
1461
|
+
|
|
1462
|
+
file_alignment: int
|
|
1463
|
+
|
|
1464
|
+
major_operating_system_version: int
|
|
1465
|
+
|
|
1466
|
+
minor_operating_system_version: int
|
|
1467
|
+
|
|
1468
|
+
major_image_version: int
|
|
1469
|
+
|
|
1470
|
+
minor_image_version: int
|
|
1471
|
+
|
|
1472
|
+
major_subsystem_version: int
|
|
1473
|
+
|
|
1474
|
+
minor_subsystem_version: int
|
|
1475
|
+
|
|
1476
|
+
win32_version_value: int
|
|
1477
|
+
|
|
1478
|
+
sizeof_image: int
|
|
1479
|
+
|
|
1480
|
+
sizeof_headers: int
|
|
1481
|
+
|
|
1482
|
+
checksum: int
|
|
1483
|
+
|
|
1484
|
+
subsystem: OptionalHeader.SUBSYSTEM
|
|
1485
|
+
|
|
1486
|
+
dll_characteristics: int
|
|
1487
|
+
|
|
1488
|
+
def add(self, characteristic: OptionalHeader.DLL_CHARACTERISTICS) -> None: ...
|
|
1489
|
+
|
|
1490
|
+
def remove(self, characteristic: OptionalHeader.DLL_CHARACTERISTICS) -> None: ...
|
|
1491
|
+
|
|
1492
|
+
@property
|
|
1493
|
+
def dll_characteristics_lists(self) -> list[OptionalHeader.DLL_CHARACTERISTICS]: ...
|
|
1494
|
+
|
|
1495
|
+
def has(self, characteristics: OptionalHeader.DLL_CHARACTERISTICS) -> bool: ...
|
|
1496
|
+
|
|
1497
|
+
sizeof_stack_reserve: int
|
|
1498
|
+
|
|
1499
|
+
sizeof_stack_commit: int
|
|
1500
|
+
|
|
1501
|
+
sizeof_heap_reserve: int
|
|
1502
|
+
|
|
1503
|
+
sizeof_heap_commit: int
|
|
1504
|
+
|
|
1505
|
+
loader_flags: int
|
|
1506
|
+
|
|
1507
|
+
numberof_rva_and_size: int
|
|
1508
|
+
|
|
1509
|
+
def __iadd__(self, arg: OptionalHeader.DLL_CHARACTERISTICS, /) -> OptionalHeader: ...
|
|
1510
|
+
|
|
1511
|
+
def __isub__(self, arg: OptionalHeader.DLL_CHARACTERISTICS, /) -> OptionalHeader: ...
|
|
1512
|
+
|
|
1513
|
+
def __contains__(self, arg: OptionalHeader.DLL_CHARACTERISTICS, /) -> bool: ...
|
|
1514
|
+
|
|
1515
|
+
def copy(self) -> OptionalHeader: ...
|
|
1516
|
+
|
|
1517
|
+
def __str__(self) -> str: ...
|
|
1518
|
+
|
|
1519
|
+
class RichHeader(lief.Object):
|
|
1520
|
+
def __init__(self) -> None: ...
|
|
1521
|
+
|
|
1522
|
+
class it_entries:
|
|
1523
|
+
def __getitem__(self, arg: int, /) -> RichEntry: ...
|
|
1524
|
+
|
|
1525
|
+
def __len__(self) -> int: ...
|
|
1526
|
+
|
|
1527
|
+
def __iter__(self) -> RichHeader.it_entries: ...
|
|
1528
|
+
|
|
1529
|
+
def __next__(self) -> RichEntry: ...
|
|
1530
|
+
|
|
1531
|
+
key: int
|
|
1532
|
+
|
|
1533
|
+
@property
|
|
1534
|
+
def entries(self) -> RichHeader.it_entries: ...
|
|
1535
|
+
|
|
1536
|
+
@overload
|
|
1537
|
+
def add_entry(self, entry: RichEntry) -> None: ...
|
|
1538
|
+
|
|
1539
|
+
@overload
|
|
1540
|
+
def add_entry(self, id: int, build_id: int, count: int) -> None: ...
|
|
1541
|
+
|
|
1542
|
+
@overload
|
|
1543
|
+
def raw(self) -> list[int]: ...
|
|
1544
|
+
|
|
1545
|
+
@overload
|
|
1546
|
+
def raw(self, xor_key: int) -> list[int]: ...
|
|
1547
|
+
|
|
1548
|
+
@overload
|
|
1549
|
+
def hash(self, algo: ALGORITHMS) -> list[int]: ...
|
|
1550
|
+
|
|
1551
|
+
@overload
|
|
1552
|
+
def hash(self, algo: ALGORITHMS, xor_key: int) -> list[int]: ...
|
|
1553
|
+
|
|
1554
|
+
def copy(self) -> RichHeader: ...
|
|
1555
|
+
|
|
1556
|
+
def __str__(self) -> str: ...
|
|
1557
|
+
|
|
1558
|
+
class RichEntry(lief.Object):
|
|
1559
|
+
@overload
|
|
1560
|
+
def __init__(self) -> None: ...
|
|
1561
|
+
|
|
1562
|
+
@overload
|
|
1563
|
+
def __init__(self, id: int, build_id: int, count: int) -> None: ...
|
|
1564
|
+
|
|
1565
|
+
id: int
|
|
1566
|
+
|
|
1567
|
+
build_id: int
|
|
1568
|
+
|
|
1569
|
+
count: int
|
|
1570
|
+
|
|
1571
|
+
def copy(self) -> RichEntry: ...
|
|
1572
|
+
|
|
1573
|
+
def __str__(self) -> str: ...
|
|
1574
|
+
|
|
1575
|
+
class DataDirectory(lief.Object):
|
|
1576
|
+
def __init__(self) -> None: ...
|
|
1577
|
+
|
|
1578
|
+
class TYPES(enum.Enum):
|
|
1579
|
+
@staticmethod
|
|
1580
|
+
def from_value(arg: int, /) -> DataDirectory.TYPES: ...
|
|
1581
|
+
|
|
1582
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
1583
|
+
|
|
1584
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
1585
|
+
|
|
1586
|
+
def __int__(self) -> int: ...
|
|
1587
|
+
|
|
1588
|
+
EXPORT_TABLE = 0
|
|
1589
|
+
|
|
1590
|
+
IMPORT_TABLE = 1
|
|
1591
|
+
|
|
1592
|
+
RESOURCE_TABLE = 2
|
|
1593
|
+
|
|
1594
|
+
EXCEPTION_TABLE = 3
|
|
1595
|
+
|
|
1596
|
+
CERTIFICATE_TABLE = 4
|
|
1597
|
+
|
|
1598
|
+
BASE_RELOCATION_TABLE = 5
|
|
1599
|
+
|
|
1600
|
+
DEBUG_DIR = 6
|
|
1601
|
+
|
|
1602
|
+
ARCHITECTURE = 7
|
|
1603
|
+
|
|
1604
|
+
GLOBAL_PTR = 8
|
|
1605
|
+
|
|
1606
|
+
TLS_TABLE = 9
|
|
1607
|
+
|
|
1608
|
+
LOAD_CONFIG_TABLE = 10
|
|
1609
|
+
|
|
1610
|
+
BOUND_IMPORT = 11
|
|
1611
|
+
|
|
1612
|
+
IAT = 12
|
|
1613
|
+
|
|
1614
|
+
DELAY_IMPORT_DESCRIPTOR = 13
|
|
1615
|
+
|
|
1616
|
+
CLR_RUNTIME_HEADER = 14
|
|
1617
|
+
|
|
1618
|
+
RESERVED = 15
|
|
1619
|
+
|
|
1620
|
+
UNKNOWN = 16
|
|
1621
|
+
|
|
1622
|
+
rva: int
|
|
1623
|
+
|
|
1624
|
+
size: int
|
|
1625
|
+
|
|
1626
|
+
@property
|
|
1627
|
+
def section(self) -> Section: ...
|
|
1628
|
+
|
|
1629
|
+
@property
|
|
1630
|
+
def type(self) -> DataDirectory.TYPES: ...
|
|
1631
|
+
|
|
1632
|
+
@property
|
|
1633
|
+
def has_section(self) -> bool: ...
|
|
1634
|
+
|
|
1635
|
+
def copy(self) -> DataDirectory: ...
|
|
1636
|
+
|
|
1637
|
+
def __str__(self) -> str: ...
|
|
1638
|
+
|
|
1639
|
+
class Section(lief.Section):
|
|
1640
|
+
@overload
|
|
1641
|
+
def __init__(self) -> None: ...
|
|
1642
|
+
|
|
1643
|
+
@overload
|
|
1644
|
+
def __init__(self, content: Sequence[int], name: str = '', characteristics: int = 0) -> None: ...
|
|
1645
|
+
|
|
1646
|
+
@overload
|
|
1647
|
+
def __init__(self, name: str) -> None: ...
|
|
1648
|
+
|
|
1649
|
+
class CHARACTERISTICS(enum.Flag):
|
|
1650
|
+
@staticmethod
|
|
1651
|
+
def from_value(arg: int, /) -> Section.CHARACTERISTICS: ...
|
|
1652
|
+
|
|
1653
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
1654
|
+
|
|
1655
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
1656
|
+
|
|
1657
|
+
def __int__(self) -> int: ...
|
|
1658
|
+
|
|
1659
|
+
TYPE_NO_PAD = 8
|
|
1660
|
+
|
|
1661
|
+
CNT_CODE = 32
|
|
1662
|
+
|
|
1663
|
+
CNT_INITIALIZED_DATA = 64
|
|
1664
|
+
|
|
1665
|
+
CNT_UNINITIALIZED_DATA = 128
|
|
1666
|
+
|
|
1667
|
+
LNK_OTHER = 256
|
|
1668
|
+
|
|
1669
|
+
LNK_INFO = 512
|
|
1670
|
+
|
|
1671
|
+
LNK_REMOVE = 2048
|
|
1672
|
+
|
|
1673
|
+
LNK_COMDAT = 4096
|
|
1674
|
+
|
|
1675
|
+
GPREL = 32768
|
|
1676
|
+
|
|
1677
|
+
MEM_PURGEABLE = 65536
|
|
1678
|
+
|
|
1679
|
+
MEM_16BIT = 131072
|
|
1680
|
+
|
|
1681
|
+
MEM_LOCKED = 262144
|
|
1682
|
+
|
|
1683
|
+
MEM_PRELOAD = 524288
|
|
1684
|
+
|
|
1685
|
+
ALIGN_1BYTES = 1048576
|
|
1686
|
+
|
|
1687
|
+
ALIGN_2BYTES = 2097152
|
|
1688
|
+
|
|
1689
|
+
ALIGN_4BYTES = 3145728
|
|
1690
|
+
|
|
1691
|
+
ALIGN_8BYTES = 4194304
|
|
1692
|
+
|
|
1693
|
+
ALIGN_16BYTES = 5242880
|
|
1694
|
+
|
|
1695
|
+
ALIGN_32BYTES = 6291456
|
|
1696
|
+
|
|
1697
|
+
ALIGN_64BYTES = 7340032
|
|
1698
|
+
|
|
1699
|
+
ALIGN_128BYTES = 8388608
|
|
1700
|
+
|
|
1701
|
+
ALIGN_256BYTES = 9437184
|
|
1702
|
+
|
|
1703
|
+
ALIGN_512BYTES = 10485760
|
|
1704
|
+
|
|
1705
|
+
ALIGN_1024BYTES = 11534336
|
|
1706
|
+
|
|
1707
|
+
ALIGN_2048BYTES = 12582912
|
|
1708
|
+
|
|
1709
|
+
ALIGN_4096BYTES = 13631488
|
|
1710
|
+
|
|
1711
|
+
ALIGN_8192BYTES = 14680064
|
|
1712
|
+
|
|
1713
|
+
LNK_NRELOC_OVFL = 16777216
|
|
1714
|
+
|
|
1715
|
+
MEM_DISCARDABLE = 33554432
|
|
1716
|
+
|
|
1717
|
+
MEM_NOT_CACHED = 67108864
|
|
1718
|
+
|
|
1719
|
+
MEM_NOT_PAGED = 134217728
|
|
1720
|
+
|
|
1721
|
+
MEM_SHARED = 268435456
|
|
1722
|
+
|
|
1723
|
+
MEM_EXECUTE = 536870912
|
|
1724
|
+
|
|
1725
|
+
MEM_READ = 1073741824
|
|
1726
|
+
|
|
1727
|
+
MEM_WRITE = 2147483648
|
|
1728
|
+
|
|
1729
|
+
virtual_size: int
|
|
1730
|
+
|
|
1731
|
+
sizeof_raw_data: int
|
|
1732
|
+
|
|
1733
|
+
pointerto_raw_data: int
|
|
1734
|
+
|
|
1735
|
+
pointerto_relocation: int
|
|
1736
|
+
|
|
1737
|
+
pointerto_line_numbers: int
|
|
1738
|
+
|
|
1739
|
+
numberof_relocations: int
|
|
1740
|
+
|
|
1741
|
+
numberof_line_numbers: int
|
|
1742
|
+
|
|
1743
|
+
characteristics: int
|
|
1744
|
+
|
|
1745
|
+
@property
|
|
1746
|
+
def characteristics_lists(self) -> list[Section.CHARACTERISTICS]: ...
|
|
1747
|
+
|
|
1748
|
+
def has_characteristic(self, characteristic: Section.CHARACTERISTICS) -> bool: ...
|
|
1749
|
+
|
|
1750
|
+
@property
|
|
1751
|
+
def padding(self) -> bytes: ...
|
|
1752
|
+
|
|
1753
|
+
def copy(self) -> Section: ...
|
|
1754
|
+
|
|
1755
|
+
def __str__(self) -> str: ...
|
|
1756
|
+
|
|
1757
|
+
class Relocation(lief.Object):
|
|
1758
|
+
def __init__(self) -> None: ...
|
|
1759
|
+
|
|
1760
|
+
class it_entries:
|
|
1761
|
+
def __getitem__(self, arg: int, /) -> RelocationEntry: ...
|
|
1762
|
+
|
|
1763
|
+
def __len__(self) -> int: ...
|
|
1764
|
+
|
|
1765
|
+
def __iter__(self) -> Relocation.it_entries: ...
|
|
1766
|
+
|
|
1767
|
+
def __next__(self) -> RelocationEntry: ...
|
|
1768
|
+
|
|
1769
|
+
virtual_address: int
|
|
1770
|
+
|
|
1771
|
+
block_size: int
|
|
1772
|
+
|
|
1773
|
+
@property
|
|
1774
|
+
def entries(self) -> Relocation.it_entries: ...
|
|
1775
|
+
|
|
1776
|
+
def add_entry(self, new_entry: RelocationEntry) -> RelocationEntry: ...
|
|
1777
|
+
|
|
1778
|
+
def copy(self) -> Relocation: ...
|
|
1779
|
+
|
|
1780
|
+
def __str__(self) -> str: ...
|
|
1781
|
+
|
|
1782
|
+
class RelocationEntry(lief.Relocation):
|
|
1783
|
+
def __init__(self) -> None: ...
|
|
1784
|
+
|
|
1785
|
+
class BASE_TYPES(enum.Enum):
|
|
1786
|
+
@staticmethod
|
|
1787
|
+
def from_value(arg: int, /) -> RelocationEntry.BASE_TYPES: ...
|
|
1788
|
+
|
|
1789
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
1790
|
+
|
|
1791
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
1792
|
+
|
|
1793
|
+
def __int__(self) -> int: ...
|
|
1794
|
+
|
|
1795
|
+
UNKNOWN = -1
|
|
1796
|
+
|
|
1797
|
+
ABS = 0
|
|
1798
|
+
|
|
1799
|
+
HIGH = 1
|
|
1800
|
+
|
|
1801
|
+
LOW = 2
|
|
1802
|
+
|
|
1803
|
+
HIGHLOW = 3
|
|
1804
|
+
|
|
1805
|
+
HIGHADJ = 4
|
|
1806
|
+
|
|
1807
|
+
MIPS_JMPADDR = 5
|
|
1808
|
+
|
|
1809
|
+
ARM_MOV32A = 262
|
|
1810
|
+
|
|
1811
|
+
ARM_MOV32 = 263
|
|
1812
|
+
|
|
1813
|
+
RISCV_HI20 = 264
|
|
1814
|
+
|
|
1815
|
+
SECTION = 6
|
|
1816
|
+
|
|
1817
|
+
REL = 7
|
|
1818
|
+
|
|
1819
|
+
ARM_MOV32T = 520
|
|
1820
|
+
|
|
1821
|
+
THUMB_MOV32 = 521
|
|
1822
|
+
|
|
1823
|
+
RISCV_LOW12I = 522
|
|
1824
|
+
|
|
1825
|
+
RISCV_LOW12S = 8
|
|
1826
|
+
|
|
1827
|
+
MIPS_JMPADDR16 = 777
|
|
1828
|
+
|
|
1829
|
+
IA64_IMM64 = 9
|
|
1830
|
+
|
|
1831
|
+
DIR64 = 10
|
|
1832
|
+
|
|
1833
|
+
HIGH3ADJ = 11
|
|
1834
|
+
|
|
1835
|
+
data: int
|
|
1836
|
+
|
|
1837
|
+
position: int
|
|
1838
|
+
|
|
1839
|
+
type: RelocationEntry.BASE_TYPES
|
|
1840
|
+
|
|
1841
|
+
def __str__(self) -> str: ...
|
|
1842
|
+
|
|
1843
|
+
class Export(lief.Object):
|
|
1844
|
+
def __init__(self) -> None: ...
|
|
1845
|
+
|
|
1846
|
+
class it_entries:
|
|
1847
|
+
def __getitem__(self, arg: int, /) -> ExportEntry: ...
|
|
1848
|
+
|
|
1849
|
+
def __len__(self) -> int: ...
|
|
1850
|
+
|
|
1851
|
+
def __iter__(self) -> Export.it_entries: ...
|
|
1852
|
+
|
|
1853
|
+
def __next__(self) -> ExportEntry: ...
|
|
1854
|
+
|
|
1855
|
+
name: Union[str, bytes]
|
|
1856
|
+
|
|
1857
|
+
export_flags: int
|
|
1858
|
+
|
|
1859
|
+
timestamp: int
|
|
1860
|
+
|
|
1861
|
+
major_version: int
|
|
1862
|
+
|
|
1863
|
+
minor_version: int
|
|
1864
|
+
|
|
1865
|
+
ordinal_base: int
|
|
1866
|
+
|
|
1867
|
+
@property
|
|
1868
|
+
def entries(self) -> Export.it_entries: ...
|
|
1869
|
+
|
|
1870
|
+
def copy(self) -> Export: ...
|
|
1871
|
+
|
|
1872
|
+
def __str__(self) -> str: ...
|
|
1873
|
+
|
|
1874
|
+
class ExportEntry(lief.Symbol):
|
|
1875
|
+
def __init__(self) -> None: ...
|
|
1876
|
+
|
|
1877
|
+
class forward_information_t:
|
|
1878
|
+
library: str
|
|
1879
|
+
|
|
1880
|
+
function: str
|
|
1881
|
+
|
|
1882
|
+
def __str__(self) -> str: ...
|
|
1883
|
+
|
|
1884
|
+
name: Union[str, bytes]
|
|
1885
|
+
|
|
1886
|
+
ordinal: int
|
|
1887
|
+
|
|
1888
|
+
address: int
|
|
1889
|
+
|
|
1890
|
+
is_extern: bool
|
|
1891
|
+
|
|
1892
|
+
@property
|
|
1893
|
+
def is_forwarded(self) -> bool: ...
|
|
1894
|
+
|
|
1895
|
+
@property
|
|
1896
|
+
def forward_information(self) -> ExportEntry.forward_information_t: ...
|
|
1897
|
+
|
|
1898
|
+
@property
|
|
1899
|
+
def function_rva(self) -> int: ...
|
|
1900
|
+
|
|
1901
|
+
@property
|
|
1902
|
+
def demangled_name(self) -> str: ...
|
|
1903
|
+
|
|
1904
|
+
def __str__(self) -> str: ...
|
|
1905
|
+
|
|
1906
|
+
class TLS(lief.Object):
|
|
1907
|
+
def __init__(self) -> None: ...
|
|
1908
|
+
|
|
1909
|
+
callbacks: list[int]
|
|
1910
|
+
|
|
1911
|
+
addressof_index: int
|
|
1912
|
+
|
|
1913
|
+
addressof_callbacks: int
|
|
1914
|
+
|
|
1915
|
+
sizeof_zero_fill: int
|
|
1916
|
+
|
|
1917
|
+
characteristics: int
|
|
1918
|
+
|
|
1919
|
+
addressof_raw_data: tuple[int, int]
|
|
1920
|
+
|
|
1921
|
+
data_template: memoryview
|
|
1922
|
+
|
|
1923
|
+
@property
|
|
1924
|
+
def has_section(self) -> bool: ...
|
|
1925
|
+
|
|
1926
|
+
@property
|
|
1927
|
+
def has_data_directory(self) -> bool: ...
|
|
1928
|
+
|
|
1929
|
+
@property
|
|
1930
|
+
def directory(self) -> DataDirectory: ...
|
|
1931
|
+
|
|
1932
|
+
@property
|
|
1933
|
+
def section(self) -> Section: ...
|
|
1934
|
+
|
|
1935
|
+
def copy(self) -> TLS: ...
|
|
1936
|
+
|
|
1937
|
+
def __str__(self) -> str: ...
|
|
1938
|
+
|
|
1939
|
+
class Symbol(lief.Symbol):
|
|
1940
|
+
def __init__(self) -> None: ...
|
|
1941
|
+
|
|
1942
|
+
name: Union[str, bytes]
|
|
1943
|
+
|
|
1944
|
+
@property
|
|
1945
|
+
def section_number(self) -> int: ...
|
|
1946
|
+
|
|
1947
|
+
@property
|
|
1948
|
+
def type(self) -> int: ...
|
|
1949
|
+
|
|
1950
|
+
@property
|
|
1951
|
+
def base_type(self) -> SYMBOL_BASE_TYPES: ...
|
|
1952
|
+
|
|
1953
|
+
@property
|
|
1954
|
+
def complex_type(self) -> SYMBOL_COMPLEX_TYPES: ...
|
|
1955
|
+
|
|
1956
|
+
@property
|
|
1957
|
+
def storage_class(self) -> SYMBOL_STORAGE_CLASS: ...
|
|
1958
|
+
|
|
1959
|
+
@property
|
|
1960
|
+
def numberof_aux_symbols(self) -> int: ...
|
|
1961
|
+
|
|
1962
|
+
@property
|
|
1963
|
+
def section(self) -> Section: ...
|
|
1964
|
+
|
|
1965
|
+
@property
|
|
1966
|
+
def has_section(self) -> bool: ...
|
|
1967
|
+
|
|
1968
|
+
def __str__(self) -> str: ...
|
|
1969
|
+
|
|
1970
|
+
class Import(lief.Object):
|
|
1971
|
+
@overload
|
|
1972
|
+
def __init__(self) -> None: ...
|
|
1973
|
+
|
|
1974
|
+
@overload
|
|
1975
|
+
def __init__(self, library_name: str) -> None: ...
|
|
1976
|
+
|
|
1977
|
+
class it_entries:
|
|
1978
|
+
def __getitem__(self, arg: int, /) -> ImportEntry: ...
|
|
1979
|
+
|
|
1980
|
+
def __len__(self) -> int: ...
|
|
1981
|
+
|
|
1982
|
+
def __iter__(self) -> Import.it_entries: ...
|
|
1983
|
+
|
|
1984
|
+
def __next__(self) -> ImportEntry: ...
|
|
1985
|
+
|
|
1986
|
+
@property
|
|
1987
|
+
def forwarder_chain(self) -> int: ...
|
|
1988
|
+
|
|
1989
|
+
@property
|
|
1990
|
+
def timedatestamp(self) -> int: ...
|
|
1991
|
+
|
|
1992
|
+
@property
|
|
1993
|
+
def entries(self) -> Import.it_entries: ...
|
|
1994
|
+
|
|
1995
|
+
name: Union[str, bytes]
|
|
1996
|
+
|
|
1997
|
+
@property
|
|
1998
|
+
def directory(self) -> DataDirectory: ...
|
|
1999
|
+
|
|
2000
|
+
@property
|
|
2001
|
+
def iat_directory(self) -> DataDirectory: ...
|
|
2002
|
+
|
|
2003
|
+
import_address_table_rva: int
|
|
2004
|
+
|
|
2005
|
+
import_lookup_table_rva: int
|
|
2006
|
+
|
|
2007
|
+
def get_function_rva_from_iat(self, function_name: str) -> Union[int, lief.lief_errors]: ...
|
|
2008
|
+
|
|
2009
|
+
@overload
|
|
2010
|
+
def add_entry(self, entry: ImportEntry) -> ImportEntry: ...
|
|
2011
|
+
|
|
2012
|
+
@overload
|
|
2013
|
+
def add_entry(self, function_name: str) -> ImportEntry: ...
|
|
2014
|
+
|
|
2015
|
+
def get_entry(self, function_name: str) -> ImportEntry: ...
|
|
2016
|
+
|
|
2017
|
+
def __str__(self) -> str: ...
|
|
2018
|
+
|
|
2019
|
+
class ImportEntry(lief.Symbol):
|
|
2020
|
+
@overload
|
|
2021
|
+
def __init__(self) -> None: ...
|
|
2022
|
+
|
|
2023
|
+
@overload
|
|
2024
|
+
def __init__(self, import_name: str) -> None: ...
|
|
2025
|
+
|
|
2026
|
+
@overload
|
|
2027
|
+
def __init__(self, data: int, name: str = '') -> None: ...
|
|
2028
|
+
|
|
2029
|
+
@overload
|
|
2030
|
+
def __init__(self, data: int, type: PE_TYPE, name: str = '') -> None: ...
|
|
2031
|
+
|
|
2032
|
+
@overload
|
|
2033
|
+
def __init__(self, name: str, type: PE_TYPE) -> None: ...
|
|
2034
|
+
|
|
2035
|
+
name: Union[str, bytes]
|
|
2036
|
+
|
|
2037
|
+
data: int
|
|
2038
|
+
|
|
2039
|
+
@property
|
|
2040
|
+
def demangled_name(self) -> str: ...
|
|
2041
|
+
|
|
2042
|
+
@property
|
|
2043
|
+
def is_ordinal(self) -> bool: ...
|
|
2044
|
+
|
|
2045
|
+
@property
|
|
2046
|
+
def ordinal(self) -> int: ...
|
|
2047
|
+
|
|
2048
|
+
@property
|
|
2049
|
+
def hint(self) -> int: ...
|
|
2050
|
+
|
|
2051
|
+
@property
|
|
2052
|
+
def iat_value(self) -> int: ...
|
|
2053
|
+
|
|
2054
|
+
@property
|
|
2055
|
+
def iat_address(self) -> int: ...
|
|
2056
|
+
|
|
2057
|
+
def copy(self) -> ImportEntry: ...
|
|
2058
|
+
|
|
2059
|
+
def __str__(self) -> str: ...
|
|
2060
|
+
|
|
2061
|
+
class DelayImport(lief.Object):
|
|
2062
|
+
def __init__(self, library_name: str) -> None: ...
|
|
2063
|
+
|
|
2064
|
+
class it_entries:
|
|
2065
|
+
def __getitem__(self, arg: int, /) -> DelayImportEntry: ...
|
|
2066
|
+
|
|
2067
|
+
def __len__(self) -> int: ...
|
|
2068
|
+
|
|
2069
|
+
def __iter__(self) -> DelayImport.it_entries: ...
|
|
2070
|
+
|
|
2071
|
+
def __next__(self) -> DelayImportEntry: ...
|
|
2072
|
+
|
|
2073
|
+
@property
|
|
2074
|
+
def entries(self) -> DelayImport.it_entries: ...
|
|
2075
|
+
|
|
2076
|
+
name: Union[str, bytes]
|
|
2077
|
+
|
|
2078
|
+
attribute: int
|
|
2079
|
+
|
|
2080
|
+
handle: int
|
|
2081
|
+
|
|
2082
|
+
iat: int
|
|
2083
|
+
|
|
2084
|
+
names_table: int
|
|
2085
|
+
|
|
2086
|
+
biat: int
|
|
2087
|
+
|
|
2088
|
+
uiat: int
|
|
2089
|
+
|
|
2090
|
+
timestamp: int
|
|
2091
|
+
|
|
2092
|
+
def copy(self) -> DelayImport: ...
|
|
2093
|
+
|
|
2094
|
+
def __str__(self) -> str: ...
|
|
2095
|
+
|
|
2096
|
+
class DelayImportEntry(lief.Symbol):
|
|
2097
|
+
def __init__(self) -> None: ...
|
|
2098
|
+
|
|
2099
|
+
@property
|
|
2100
|
+
def demangled_name(self) -> str: ...
|
|
2101
|
+
|
|
2102
|
+
name: Union[str, bytes]
|
|
2103
|
+
|
|
2104
|
+
data: int
|
|
2105
|
+
|
|
2106
|
+
@property
|
|
2107
|
+
def is_ordinal(self) -> bool: ...
|
|
2108
|
+
|
|
2109
|
+
@property
|
|
2110
|
+
def ordinal(self) -> int: ...
|
|
2111
|
+
|
|
2112
|
+
@property
|
|
2113
|
+
def hint(self) -> int: ...
|
|
2114
|
+
|
|
2115
|
+
@property
|
|
2116
|
+
def iat_value(self) -> int: ...
|
|
2117
|
+
|
|
2118
|
+
def copy(self) -> DelayImportEntry: ...
|
|
2119
|
+
|
|
2120
|
+
def __str__(self) -> str: ...
|
|
2121
|
+
|
|
2122
|
+
class Debug(lief.Object):
|
|
2123
|
+
def __init__(self) -> None: ...
|
|
2124
|
+
|
|
2125
|
+
class TYPES(enum.Enum):
|
|
2126
|
+
@staticmethod
|
|
2127
|
+
def from_value(arg: int, /) -> Debug.TYPES: ...
|
|
2128
|
+
|
|
2129
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
2130
|
+
|
|
2131
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
2132
|
+
|
|
2133
|
+
def __int__(self) -> int: ...
|
|
2134
|
+
|
|
2135
|
+
UNKNOWN = 0
|
|
2136
|
+
|
|
2137
|
+
COFF = 1
|
|
2138
|
+
|
|
2139
|
+
CODEVIEW = 2
|
|
2140
|
+
|
|
2141
|
+
FPO = 3
|
|
2142
|
+
|
|
2143
|
+
MISC = 4
|
|
2144
|
+
|
|
2145
|
+
EXCEPTION = 5
|
|
2146
|
+
|
|
2147
|
+
FIXUP = 6
|
|
2148
|
+
|
|
2149
|
+
OMAP_TO_SRC = 7
|
|
2150
|
+
|
|
2151
|
+
OMAP_FROM_SRC = 8
|
|
2152
|
+
|
|
2153
|
+
BORLAND = 9
|
|
2154
|
+
|
|
2155
|
+
RESERVED = 10
|
|
2156
|
+
|
|
2157
|
+
CLSID = 11
|
|
2158
|
+
|
|
2159
|
+
VC_FEATURE = 12
|
|
2160
|
+
|
|
2161
|
+
POGO = 13
|
|
2162
|
+
|
|
2163
|
+
ILTCG = 14
|
|
2164
|
+
|
|
2165
|
+
MPX = 15
|
|
2166
|
+
|
|
2167
|
+
REPRO = 16
|
|
2168
|
+
|
|
2169
|
+
EX_DLLCHARACTERISTICS = 20
|
|
2170
|
+
|
|
2171
|
+
characteristics: int
|
|
2172
|
+
|
|
2173
|
+
timestamp: int
|
|
2174
|
+
|
|
2175
|
+
major_version: int
|
|
2176
|
+
|
|
2177
|
+
minor_version: int
|
|
2178
|
+
|
|
2179
|
+
@property
|
|
2180
|
+
def type(self) -> Debug.TYPES: ...
|
|
2181
|
+
|
|
2182
|
+
sizeof_data: int
|
|
2183
|
+
|
|
2184
|
+
addressof_rawdata: int
|
|
2185
|
+
|
|
2186
|
+
pointerto_rawdata: int
|
|
2187
|
+
|
|
2188
|
+
def copy(self) -> Optional[Debug]: ...
|
|
2189
|
+
|
|
2190
|
+
def __str__(self) -> str: ...
|
|
2191
|
+
|
|
2192
|
+
class CodeView(Debug):
|
|
2193
|
+
@overload
|
|
2194
|
+
def __init__(self) -> None: ...
|
|
2195
|
+
|
|
2196
|
+
@overload
|
|
2197
|
+
def __init__(self, arg: CodeView.SIGNATURES, /) -> None: ...
|
|
2198
|
+
|
|
2199
|
+
class SIGNATURES(enum.Enum):
|
|
2200
|
+
@staticmethod
|
|
2201
|
+
def from_value(arg: int, /) -> CodeView.SIGNATURES: ...
|
|
2202
|
+
|
|
2203
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
2204
|
+
|
|
2205
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
2206
|
+
|
|
2207
|
+
def __int__(self) -> int: ...
|
|
2208
|
+
|
|
2209
|
+
UNKNOWN = 0
|
|
2210
|
+
|
|
2211
|
+
PDB_70 = 1396986706
|
|
2212
|
+
|
|
2213
|
+
PDB_20 = 808534606
|
|
2214
|
+
|
|
2215
|
+
CV_50 = 825311822
|
|
2216
|
+
|
|
2217
|
+
CV_41 = 959464014
|
|
2218
|
+
|
|
2219
|
+
@property
|
|
2220
|
+
def cv_signature(self) -> CodeView.SIGNATURES: ...
|
|
2221
|
+
|
|
2222
|
+
def __str__(self) -> str: ...
|
|
2223
|
+
|
|
2224
|
+
class CodeViewPDB(CodeView):
|
|
2225
|
+
def __init__(self) -> None: ...
|
|
2226
|
+
|
|
2227
|
+
@property
|
|
2228
|
+
def parent(self) -> lief.PE.CodeView: ...
|
|
2229
|
+
|
|
2230
|
+
@property
|
|
2231
|
+
def guid(self) -> str: ...
|
|
2232
|
+
|
|
2233
|
+
signature: list[int]
|
|
2234
|
+
|
|
2235
|
+
age: int
|
|
2236
|
+
|
|
2237
|
+
filename: Union[str, bytes]
|
|
2238
|
+
|
|
2239
|
+
def __str__(self) -> str: ...
|
|
2240
|
+
|
|
2241
|
+
class Repro(Debug):
|
|
2242
|
+
hash: memoryview
|
|
2243
|
+
|
|
2244
|
+
def __str__(self) -> str: ...
|
|
2245
|
+
|
|
2246
|
+
class Pogo(Debug):
|
|
2247
|
+
def __init__(self) -> None: ...
|
|
2248
|
+
|
|
2249
|
+
class it_entries:
|
|
2250
|
+
def __getitem__(self, arg: int, /) -> PogoEntry: ...
|
|
2251
|
+
|
|
2252
|
+
def __len__(self) -> int: ...
|
|
2253
|
+
|
|
2254
|
+
def __iter__(self) -> Pogo.it_entries: ...
|
|
2255
|
+
|
|
2256
|
+
def __next__(self) -> PogoEntry: ...
|
|
2257
|
+
|
|
2258
|
+
class SIGNATURES(enum.Enum):
|
|
2259
|
+
@staticmethod
|
|
2260
|
+
def from_value(arg: int, /) -> Pogo.SIGNATURES: ...
|
|
2261
|
+
|
|
2262
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
2263
|
+
|
|
2264
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
2265
|
+
|
|
2266
|
+
def __int__(self) -> int: ...
|
|
2267
|
+
|
|
2268
|
+
UNKNOWN = 268435455
|
|
2269
|
+
|
|
2270
|
+
ZERO = 0
|
|
2271
|
+
|
|
2272
|
+
LCTG = 1280590663
|
|
2273
|
+
|
|
2274
|
+
PGI = 1346849024
|
|
2275
|
+
|
|
2276
|
+
@property
|
|
2277
|
+
def entries(self) -> Pogo.it_entries: ...
|
|
2278
|
+
|
|
2279
|
+
@property
|
|
2280
|
+
def signature(self) -> Pogo.SIGNATURES: ...
|
|
2281
|
+
|
|
2282
|
+
def __str__(self) -> str: ...
|
|
2283
|
+
|
|
2284
|
+
class PogoEntry(lief.Object):
|
|
2285
|
+
def __init__(self) -> None: ...
|
|
2286
|
+
|
|
2287
|
+
name: Union[str, bytes]
|
|
2288
|
+
|
|
2289
|
+
start_rva: int
|
|
2290
|
+
|
|
2291
|
+
size: int
|
|
2292
|
+
|
|
2293
|
+
def copy(self) -> PogoEntry: ...
|
|
2294
|
+
|
|
2295
|
+
def __str__(self) -> str: ...
|
|
2296
|
+
|
|
2297
|
+
class ResourcesManager(lief.Object):
|
|
2298
|
+
def __init__(self, arg: ResourceNode, /) -> None: ...
|
|
2299
|
+
|
|
2300
|
+
class it_const_dialogs:
|
|
2301
|
+
def __getitem__(self, arg: int, /) -> ResourceDialog: ...
|
|
2302
|
+
|
|
2303
|
+
def __len__(self) -> int: ...
|
|
2304
|
+
|
|
2305
|
+
def __iter__(self) -> ResourcesManager.it_const_dialogs: ...
|
|
2306
|
+
|
|
2307
|
+
def __next__(self) -> ResourceDialog: ...
|
|
2308
|
+
|
|
2309
|
+
class it_const_icons:
|
|
2310
|
+
def __getitem__(self, arg: int, /) -> ResourceIcon: ...
|
|
2311
|
+
|
|
2312
|
+
def __len__(self) -> int: ...
|
|
2313
|
+
|
|
2314
|
+
def __iter__(self) -> ResourcesManager.it_const_icons: ...
|
|
2315
|
+
|
|
2316
|
+
def __next__(self) -> ResourceIcon: ...
|
|
2317
|
+
|
|
2318
|
+
class it_const_strings_table:
|
|
2319
|
+
def __getitem__(self, arg: int, /) -> ResourceStringTable: ...
|
|
2320
|
+
|
|
2321
|
+
def __len__(self) -> int: ...
|
|
2322
|
+
|
|
2323
|
+
def __iter__(self) -> ResourcesManager.it_const_strings_table: ...
|
|
2324
|
+
|
|
2325
|
+
def __next__(self) -> ResourceStringTable: ...
|
|
2326
|
+
|
|
2327
|
+
class it_const_accelerators:
|
|
2328
|
+
def __getitem__(self, arg: int, /) -> ResourceAccelerator: ...
|
|
2329
|
+
|
|
2330
|
+
def __len__(self) -> int: ...
|
|
2331
|
+
|
|
2332
|
+
def __iter__(self) -> ResourcesManager.it_const_accelerators: ...
|
|
2333
|
+
|
|
2334
|
+
def __next__(self) -> ResourceAccelerator: ...
|
|
2335
|
+
|
|
2336
|
+
class TYPE(enum.Enum):
|
|
2337
|
+
@staticmethod
|
|
2338
|
+
def from_value(arg: int, /) -> ResourcesManager.TYPE: ...
|
|
2339
|
+
|
|
2340
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
2341
|
+
|
|
2342
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
2343
|
+
|
|
2344
|
+
def __int__(self) -> int: ...
|
|
2345
|
+
|
|
2346
|
+
CURSOR = 1
|
|
2347
|
+
|
|
2348
|
+
BITMAP = 2
|
|
2349
|
+
|
|
2350
|
+
ICON = 3
|
|
2351
|
+
|
|
2352
|
+
MENU = 4
|
|
2353
|
+
|
|
2354
|
+
DIALOG = 5
|
|
2355
|
+
|
|
2356
|
+
STRING = 6
|
|
2357
|
+
|
|
2358
|
+
FONTDIR = 7
|
|
2359
|
+
|
|
2360
|
+
FONT = 8
|
|
2361
|
+
|
|
2362
|
+
ACCELERATOR = 9
|
|
2363
|
+
|
|
2364
|
+
RCDATA = 10
|
|
2365
|
+
|
|
2366
|
+
MESSAGETABLE = 11
|
|
2367
|
+
|
|
2368
|
+
GROUP_CURSOR = 12
|
|
2369
|
+
|
|
2370
|
+
GROUP_ICON = 14
|
|
2371
|
+
|
|
2372
|
+
VERSION = 16
|
|
2373
|
+
|
|
2374
|
+
DLGINCLUDE = 17
|
|
2375
|
+
|
|
2376
|
+
PLUGPLAY = 19
|
|
2377
|
+
|
|
2378
|
+
VXD = 20
|
|
2379
|
+
|
|
2380
|
+
ANICURSOR = 21
|
|
2381
|
+
|
|
2382
|
+
ANIICON = 22
|
|
2383
|
+
|
|
2384
|
+
HTML = 23
|
|
2385
|
+
|
|
2386
|
+
MANIFEST = 24
|
|
2387
|
+
|
|
2388
|
+
@property
|
|
2389
|
+
def has_manifest(self) -> bool: ...
|
|
2390
|
+
|
|
2391
|
+
manifest: Union[str, bytes]
|
|
2392
|
+
|
|
2393
|
+
@property
|
|
2394
|
+
def has_version(self) -> bool: ...
|
|
2395
|
+
|
|
2396
|
+
@property
|
|
2397
|
+
def version(self) -> Union[ResourceVersion, lief.lief_errors]: ...
|
|
2398
|
+
|
|
2399
|
+
@property
|
|
2400
|
+
def has_icons(self) -> bool: ...
|
|
2401
|
+
|
|
2402
|
+
@property
|
|
2403
|
+
def icons(self) -> ResourcesManager.it_const_icons: ...
|
|
2404
|
+
|
|
2405
|
+
def change_icon(self, old_one: ResourceIcon, new_one: ResourceIcon) -> None: ...
|
|
2406
|
+
|
|
2407
|
+
@property
|
|
2408
|
+
def has_dialogs(self) -> bool: ...
|
|
2409
|
+
|
|
2410
|
+
@property
|
|
2411
|
+
def dialogs(self) -> ResourcesManager.it_const_dialogs: ...
|
|
2412
|
+
|
|
2413
|
+
@property
|
|
2414
|
+
def types(self) -> list[ResourcesManager.TYPE]: ...
|
|
2415
|
+
|
|
2416
|
+
def add_icon(self, icon: ResourceIcon) -> None: ...
|
|
2417
|
+
|
|
2418
|
+
def has_type(self, type: ResourcesManager.TYPE) -> bool: ...
|
|
2419
|
+
|
|
2420
|
+
@property
|
|
2421
|
+
def has_string_table(self) -> bool: ...
|
|
2422
|
+
|
|
2423
|
+
@property
|
|
2424
|
+
def string_table(self) -> ResourcesManager.it_const_strings_table: ...
|
|
2425
|
+
|
|
2426
|
+
@property
|
|
2427
|
+
def has_html(self) -> bool: ...
|
|
2428
|
+
|
|
2429
|
+
@property
|
|
2430
|
+
def html(self) -> list[str]: ...
|
|
2431
|
+
|
|
2432
|
+
@property
|
|
2433
|
+
def has_accelerator(self) -> bool: ...
|
|
2434
|
+
|
|
2435
|
+
@property
|
|
2436
|
+
def accelerator(self) -> ResourcesManager.it_const_accelerators: ...
|
|
2437
|
+
|
|
2438
|
+
def get_node_type(self, type: ResourcesManager.TYPE) -> ResourceNode: ...
|
|
2439
|
+
|
|
2440
|
+
def __str__(self) -> str: ...
|
|
2441
|
+
|
|
2442
|
+
class ResourceNode(lief.Object):
|
|
2443
|
+
class it_childs:
|
|
2444
|
+
def __getitem__(self, arg: int, /) -> ResourceNode: ...
|
|
2445
|
+
|
|
2446
|
+
def __len__(self) -> int: ...
|
|
2447
|
+
|
|
2448
|
+
def __iter__(self) -> ResourceNode.it_childs: ...
|
|
2449
|
+
|
|
2450
|
+
def __next__(self) -> ResourceNode: ...
|
|
2451
|
+
|
|
2452
|
+
id: int
|
|
2453
|
+
|
|
2454
|
+
@property
|
|
2455
|
+
def is_directory(self) -> bool: ...
|
|
2456
|
+
|
|
2457
|
+
@property
|
|
2458
|
+
def is_data(self) -> bool: ...
|
|
2459
|
+
|
|
2460
|
+
@property
|
|
2461
|
+
def has_name(self) -> bool: ...
|
|
2462
|
+
|
|
2463
|
+
name: Union[str, bytes]
|
|
2464
|
+
|
|
2465
|
+
@property
|
|
2466
|
+
def childs(self) -> ResourceNode.it_childs: ...
|
|
2467
|
+
|
|
2468
|
+
def add_directory_node(self, resource_directory: ResourceDirectory) -> ResourceNode: ...
|
|
2469
|
+
|
|
2470
|
+
def add_data_node(self, resource_data: ResourceData) -> ResourceNode: ...
|
|
2471
|
+
|
|
2472
|
+
@overload
|
|
2473
|
+
def delete_child(self, node: ResourceNode) -> None: ...
|
|
2474
|
+
|
|
2475
|
+
@overload
|
|
2476
|
+
def delete_child(self, id: int) -> None: ...
|
|
2477
|
+
|
|
2478
|
+
@property
|
|
2479
|
+
def depth(self) -> int: ...
|
|
2480
|
+
|
|
2481
|
+
def copy(self) -> Optional[ResourceNode]: ...
|
|
2482
|
+
|
|
2483
|
+
def __str__(self) -> str: ...
|
|
2484
|
+
|
|
2485
|
+
class ResourceData(ResourceNode):
|
|
2486
|
+
@overload
|
|
2487
|
+
def __init__(self) -> None: ...
|
|
2488
|
+
|
|
2489
|
+
@overload
|
|
2490
|
+
def __init__(self, content: Sequence[int], code_page: int) -> None: ...
|
|
2491
|
+
|
|
2492
|
+
code_page: int
|
|
2493
|
+
|
|
2494
|
+
content: memoryview
|
|
2495
|
+
|
|
2496
|
+
reserved: int
|
|
2497
|
+
|
|
2498
|
+
@property
|
|
2499
|
+
def offset(self) -> int: ...
|
|
2500
|
+
|
|
2501
|
+
def __str__(self) -> str: ...
|
|
2502
|
+
|
|
2503
|
+
class ResourceDirectory(ResourceNode):
|
|
2504
|
+
def __init__(self) -> None: ...
|
|
2505
|
+
|
|
2506
|
+
characteristics: int
|
|
2507
|
+
|
|
2508
|
+
time_date_stamp: int
|
|
2509
|
+
|
|
2510
|
+
major_version: int
|
|
2511
|
+
|
|
2512
|
+
minor_version: int
|
|
2513
|
+
|
|
2514
|
+
numberof_name_entries: int
|
|
2515
|
+
|
|
2516
|
+
numberof_id_entries: int
|
|
2517
|
+
|
|
2518
|
+
def __str__(self) -> str: ...
|
|
2519
|
+
|
|
2520
|
+
class ResourceVersion(lief.Object):
|
|
2521
|
+
type: int
|
|
2522
|
+
|
|
2523
|
+
key: str
|
|
2524
|
+
|
|
2525
|
+
fixed_file_info: ResourceFixedFileInfo
|
|
2526
|
+
|
|
2527
|
+
string_file_info: ResourceStringFileInfo
|
|
2528
|
+
|
|
2529
|
+
var_file_info: ResourceVarFileInfo
|
|
2530
|
+
|
|
2531
|
+
@property
|
|
2532
|
+
def has_fixed_file_info(self) -> bool: ...
|
|
2533
|
+
|
|
2534
|
+
@property
|
|
2535
|
+
def has_string_file_info(self) -> bool: ...
|
|
2536
|
+
|
|
2537
|
+
@property
|
|
2538
|
+
def has_var_file_info(self) -> bool: ...
|
|
2539
|
+
|
|
2540
|
+
def remove_fixed_file_info(self) -> None: ...
|
|
2541
|
+
|
|
2542
|
+
def remove_string_file_info(self) -> None: ...
|
|
2543
|
+
|
|
2544
|
+
def remove_var_file_info(self) -> None: ...
|
|
2545
|
+
|
|
2546
|
+
def __str__(self) -> str: ...
|
|
2547
|
+
|
|
2548
|
+
class ResourceStringFileInfo(lief.Object):
|
|
2549
|
+
type: int
|
|
2550
|
+
|
|
2551
|
+
key: str
|
|
2552
|
+
|
|
2553
|
+
langcode_items: list[LangCodeItem]
|
|
2554
|
+
|
|
2555
|
+
def __str__(self) -> str: ...
|
|
2556
|
+
|
|
2557
|
+
class ResourceFixedFileInfo(lief.Object):
|
|
2558
|
+
signature: int
|
|
2559
|
+
|
|
2560
|
+
struct_version: int
|
|
2561
|
+
|
|
2562
|
+
file_version_MS: int
|
|
2563
|
+
|
|
2564
|
+
file_version_LS: int
|
|
2565
|
+
|
|
2566
|
+
product_version_MS: int
|
|
2567
|
+
|
|
2568
|
+
product_version_LS: int
|
|
2569
|
+
|
|
2570
|
+
file_flags_mask: int
|
|
2571
|
+
|
|
2572
|
+
file_flags: int
|
|
2573
|
+
|
|
2574
|
+
file_os: FIXED_VERSION_OS
|
|
2575
|
+
|
|
2576
|
+
file_type: FIXED_VERSION_FILE_TYPES
|
|
2577
|
+
|
|
2578
|
+
file_subtype: FIXED_VERSION_FILE_SUB_TYPES
|
|
2579
|
+
|
|
2580
|
+
file_date_MS: int
|
|
2581
|
+
|
|
2582
|
+
file_date_LS: int
|
|
2583
|
+
|
|
2584
|
+
def __str__(self) -> str: ...
|
|
2585
|
+
|
|
2586
|
+
class ResourceVarFileInfo(lief.Object):
|
|
2587
|
+
type: int
|
|
2588
|
+
|
|
2589
|
+
key: str
|
|
2590
|
+
|
|
2591
|
+
translations: list[int]
|
|
2592
|
+
|
|
2593
|
+
def __str__(self) -> str: ...
|
|
2594
|
+
|
|
2595
|
+
class LangCodeItem(lief.Object):
|
|
2596
|
+
type: int
|
|
2597
|
+
|
|
2598
|
+
key: str
|
|
2599
|
+
|
|
2600
|
+
lang: int
|
|
2601
|
+
|
|
2602
|
+
sublang: int
|
|
2603
|
+
|
|
2604
|
+
code_page: CODE_PAGES
|
|
2605
|
+
|
|
2606
|
+
items: dict
|
|
2607
|
+
|
|
2608
|
+
def __str__(self) -> str: ...
|
|
2609
|
+
|
|
2610
|
+
class ResourceIcon(lief.Object):
|
|
2611
|
+
id: int
|
|
2612
|
+
|
|
2613
|
+
lang: int
|
|
2614
|
+
|
|
2615
|
+
sublang: int
|
|
2616
|
+
|
|
2617
|
+
width: int
|
|
2618
|
+
|
|
2619
|
+
height: int
|
|
2620
|
+
|
|
2621
|
+
color_count: int
|
|
2622
|
+
|
|
2623
|
+
reserved: int
|
|
2624
|
+
|
|
2625
|
+
planes: int
|
|
2626
|
+
|
|
2627
|
+
bit_count: int
|
|
2628
|
+
|
|
2629
|
+
pixels: memoryview
|
|
2630
|
+
|
|
2631
|
+
def save(self, filepath: str) -> None: ...
|
|
2632
|
+
|
|
2633
|
+
def __str__(self) -> str: ...
|
|
2634
|
+
|
|
2635
|
+
class ResourceDialog(lief.Object):
|
|
2636
|
+
class it_const_items:
|
|
2637
|
+
def __getitem__(self, arg: int, /) -> ResourceDialogItem: ...
|
|
2638
|
+
|
|
2639
|
+
def __len__(self) -> int: ...
|
|
2640
|
+
|
|
2641
|
+
def __iter__(self) -> ResourceDialog.it_const_items: ...
|
|
2642
|
+
|
|
2643
|
+
def __next__(self) -> ResourceDialogItem: ...
|
|
2644
|
+
|
|
2645
|
+
@property
|
|
2646
|
+
def is_extended(self) -> bool: ...
|
|
2647
|
+
|
|
2648
|
+
@property
|
|
2649
|
+
def version(self) -> int: ...
|
|
2650
|
+
|
|
2651
|
+
@property
|
|
2652
|
+
def signature(self) -> int: ...
|
|
2653
|
+
|
|
2654
|
+
@property
|
|
2655
|
+
def help_id(self) -> int: ...
|
|
2656
|
+
|
|
2657
|
+
@property
|
|
2658
|
+
def x(self) -> int: ...
|
|
2659
|
+
|
|
2660
|
+
@property
|
|
2661
|
+
def y(self) -> int: ...
|
|
2662
|
+
|
|
2663
|
+
@property
|
|
2664
|
+
def cx(self) -> int: ...
|
|
2665
|
+
|
|
2666
|
+
@property
|
|
2667
|
+
def cy(self) -> int: ...
|
|
2668
|
+
|
|
2669
|
+
@property
|
|
2670
|
+
def title(self) -> str: ...
|
|
2671
|
+
|
|
2672
|
+
@property
|
|
2673
|
+
def typeface(self) -> str: ...
|
|
2674
|
+
|
|
2675
|
+
@property
|
|
2676
|
+
def weight(self) -> int: ...
|
|
2677
|
+
|
|
2678
|
+
@property
|
|
2679
|
+
def point_size(self) -> int: ...
|
|
2680
|
+
|
|
2681
|
+
@property
|
|
2682
|
+
def charset(self) -> int: ...
|
|
2683
|
+
|
|
2684
|
+
@property
|
|
2685
|
+
def style_list(self) -> set[WINDOW_STYLES]: ...
|
|
2686
|
+
|
|
2687
|
+
@property
|
|
2688
|
+
def dialogbox_style_list(self) -> set[DIALOG_BOX_STYLES]: ...
|
|
2689
|
+
|
|
2690
|
+
@property
|
|
2691
|
+
def extended_style_list(self) -> set[DIALOG_BOX_STYLES]: ...
|
|
2692
|
+
|
|
2693
|
+
@property
|
|
2694
|
+
def style(self) -> int: ...
|
|
2695
|
+
|
|
2696
|
+
@property
|
|
2697
|
+
def extended_style(self) -> int: ...
|
|
2698
|
+
|
|
2699
|
+
@property
|
|
2700
|
+
def items(self) -> ResourceDialog.it_const_items: ...
|
|
2701
|
+
|
|
2702
|
+
def has_style(self, style: WINDOW_STYLES) -> bool: ...
|
|
2703
|
+
|
|
2704
|
+
def has_dialogbox_style(self, style: DIALOG_BOX_STYLES) -> bool: ...
|
|
2705
|
+
|
|
2706
|
+
def has_extended_style(self, style: EXTENDED_WINDOW_STYLES) -> bool: ...
|
|
2707
|
+
|
|
2708
|
+
lang: int
|
|
2709
|
+
|
|
2710
|
+
sub_lang: int
|
|
2711
|
+
|
|
2712
|
+
def __str__(self) -> str: ...
|
|
2713
|
+
|
|
2714
|
+
class ResourceDialogItem(lief.Object):
|
|
2715
|
+
@property
|
|
2716
|
+
def is_extended(self) -> bool: ...
|
|
2717
|
+
|
|
2718
|
+
@property
|
|
2719
|
+
def help_id(self) -> int: ...
|
|
2720
|
+
|
|
2721
|
+
@property
|
|
2722
|
+
def extended_style(self) -> int: ...
|
|
2723
|
+
|
|
2724
|
+
@property
|
|
2725
|
+
def style(self) -> int: ...
|
|
2726
|
+
|
|
2727
|
+
@property
|
|
2728
|
+
def x(self) -> int: ...
|
|
2729
|
+
|
|
2730
|
+
@property
|
|
2731
|
+
def y(self) -> int: ...
|
|
2732
|
+
|
|
2733
|
+
@property
|
|
2734
|
+
def cx(self) -> int: ...
|
|
2735
|
+
|
|
2736
|
+
@property
|
|
2737
|
+
def cy(self) -> int: ...
|
|
2738
|
+
|
|
2739
|
+
@property
|
|
2740
|
+
def id(self) -> int: ...
|
|
2741
|
+
|
|
2742
|
+
@property
|
|
2743
|
+
def title(self) -> str: ...
|
|
2744
|
+
|
|
2745
|
+
def __str__(self) -> str: ...
|
|
2746
|
+
|
|
2747
|
+
class ResourceStringTable(lief.Object):
|
|
2748
|
+
@property
|
|
2749
|
+
def length(self) -> int: ...
|
|
2750
|
+
|
|
2751
|
+
@property
|
|
2752
|
+
def name(self) -> str: ...
|
|
2753
|
+
|
|
2754
|
+
def __str__(self) -> str: ...
|
|
2755
|
+
|
|
2756
|
+
class ResourceAccelerator(lief.Object):
|
|
2757
|
+
@property
|
|
2758
|
+
def flags(self) -> int: ...
|
|
2759
|
+
|
|
2760
|
+
@property
|
|
2761
|
+
def ansi(self) -> int: ...
|
|
2762
|
+
|
|
2763
|
+
@property
|
|
2764
|
+
def id(self) -> int: ...
|
|
2765
|
+
|
|
2766
|
+
@property
|
|
2767
|
+
def padding(self) -> int: ...
|
|
2768
|
+
|
|
2769
|
+
def __str__(self) -> str: ...
|
|
2770
|
+
|
|
2771
|
+
class RESOURCE_LANGS(enum.Enum):
|
|
2772
|
+
@staticmethod
|
|
2773
|
+
def from_value(arg: int, /) -> RESOURCE_LANGS: ...
|
|
2774
|
+
|
|
2775
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
2776
|
+
|
|
2777
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
2778
|
+
|
|
2779
|
+
def __int__(self) -> int: ...
|
|
2780
|
+
|
|
2781
|
+
NEUTRAL = 0
|
|
2782
|
+
|
|
2783
|
+
INVARIANT = 127
|
|
2784
|
+
|
|
2785
|
+
AFRIKAANS = 54
|
|
2786
|
+
|
|
2787
|
+
ALBANIAN = 28
|
|
2788
|
+
|
|
2789
|
+
ARABIC = 1
|
|
2790
|
+
|
|
2791
|
+
ARMENIAN = 43
|
|
2792
|
+
|
|
2793
|
+
ASSAMESE = 77
|
|
2794
|
+
|
|
2795
|
+
AZERI = 44
|
|
2796
|
+
|
|
2797
|
+
BASQUE = 45
|
|
2798
|
+
|
|
2799
|
+
BELARUSIAN = 35
|
|
2800
|
+
|
|
2801
|
+
BANGLA = 69
|
|
2802
|
+
|
|
2803
|
+
BULGARIAN = 2
|
|
2804
|
+
|
|
2805
|
+
CATALAN = 3
|
|
2806
|
+
|
|
2807
|
+
CHINESE = 4
|
|
2808
|
+
|
|
2809
|
+
CROATIAN = 26
|
|
2810
|
+
|
|
2811
|
+
BOSNIAN = 26
|
|
2812
|
+
|
|
2813
|
+
CZECH = 5
|
|
2814
|
+
|
|
2815
|
+
DANISH = 6
|
|
2816
|
+
|
|
2817
|
+
DIVEHI = 101
|
|
2818
|
+
|
|
2819
|
+
DUTCH = 19
|
|
2820
|
+
|
|
2821
|
+
ENGLISH = 9
|
|
2822
|
+
|
|
2823
|
+
ESTONIAN = 37
|
|
2824
|
+
|
|
2825
|
+
FAEROESE = 56
|
|
2826
|
+
|
|
2827
|
+
FARSI = 41
|
|
2828
|
+
|
|
2829
|
+
FINNISH = 11
|
|
2830
|
+
|
|
2831
|
+
FRENCH = 12
|
|
2832
|
+
|
|
2833
|
+
GALICIAN = 86
|
|
2834
|
+
|
|
2835
|
+
GEORGIAN = 55
|
|
2836
|
+
|
|
2837
|
+
GERMAN = 7
|
|
2838
|
+
|
|
2839
|
+
GREEK = 8
|
|
2840
|
+
|
|
2841
|
+
GUJARATI = 71
|
|
2842
|
+
|
|
2843
|
+
HEBREW = 13
|
|
2844
|
+
|
|
2845
|
+
HINDI = 57
|
|
2846
|
+
|
|
2847
|
+
HUNGARIAN = 14
|
|
2848
|
+
|
|
2849
|
+
ICELANDIC = 15
|
|
2850
|
+
|
|
2851
|
+
INDONESIAN = 33
|
|
2852
|
+
|
|
2853
|
+
ITALIAN = 16
|
|
2854
|
+
|
|
2855
|
+
JAPANESE = 17
|
|
2856
|
+
|
|
2857
|
+
KANNADA = 75
|
|
2858
|
+
|
|
2859
|
+
KASHMIRI = 96
|
|
2860
|
+
|
|
2861
|
+
KAZAK = 63
|
|
2862
|
+
|
|
2863
|
+
KONKANI = 87
|
|
2864
|
+
|
|
2865
|
+
KOREAN = 18
|
|
2866
|
+
|
|
2867
|
+
KYRGYZ = 64
|
|
2868
|
+
|
|
2869
|
+
LATVIAN = 38
|
|
2870
|
+
|
|
2871
|
+
LITHUANIAN = 39
|
|
2872
|
+
|
|
2873
|
+
MACEDONIAN = 47
|
|
2874
|
+
|
|
2875
|
+
MALAY = 62
|
|
2876
|
+
|
|
2877
|
+
MALAYALAM = 76
|
|
2878
|
+
|
|
2879
|
+
MANIPURI = 88
|
|
2880
|
+
|
|
2881
|
+
MARATHI = 78
|
|
2882
|
+
|
|
2883
|
+
MONGOLIAN = 80
|
|
2884
|
+
|
|
2885
|
+
NEPALI = 97
|
|
2886
|
+
|
|
2887
|
+
NORWEGIAN = 20
|
|
2888
|
+
|
|
2889
|
+
ORIYA = 72
|
|
2890
|
+
|
|
2891
|
+
POLISH = 21
|
|
2892
|
+
|
|
2893
|
+
PORTUGUESE = 22
|
|
2894
|
+
|
|
2895
|
+
PUNJABI = 70
|
|
2896
|
+
|
|
2897
|
+
ROMANIAN = 24
|
|
2898
|
+
|
|
2899
|
+
RUSSIAN = 25
|
|
2900
|
+
|
|
2901
|
+
SANSKRIT = 79
|
|
2902
|
+
|
|
2903
|
+
SERBIAN = 26
|
|
2904
|
+
|
|
2905
|
+
SINDHI = 89
|
|
2906
|
+
|
|
2907
|
+
SLOVAK = 27
|
|
2908
|
+
|
|
2909
|
+
SLOVENIAN = 36
|
|
2910
|
+
|
|
2911
|
+
SPANISH = 10
|
|
2912
|
+
|
|
2913
|
+
SWAHILI = 65
|
|
2914
|
+
|
|
2915
|
+
SWEDISH = 29
|
|
2916
|
+
|
|
2917
|
+
SYRIAC = 90
|
|
2918
|
+
|
|
2919
|
+
TAMIL = 73
|
|
2920
|
+
|
|
2921
|
+
TATAR = 68
|
|
2922
|
+
|
|
2923
|
+
TELUGU = 74
|
|
2924
|
+
|
|
2925
|
+
THAI = 30
|
|
2926
|
+
|
|
2927
|
+
TURKISH = 31
|
|
2928
|
+
|
|
2929
|
+
UKRAINIAN = 34
|
|
2930
|
+
|
|
2931
|
+
URDU = 32
|
|
2932
|
+
|
|
2933
|
+
UZBEK = 67
|
|
2934
|
+
|
|
2935
|
+
VIETNAMESE = 42
|
|
2936
|
+
|
|
2937
|
+
GAELIC = 60
|
|
2938
|
+
|
|
2939
|
+
MALTESE = 58
|
|
2940
|
+
|
|
2941
|
+
MAORI = 40
|
|
2942
|
+
|
|
2943
|
+
RHAETO_ROMANCE = 23
|
|
2944
|
+
|
|
2945
|
+
SAMI = 59
|
|
2946
|
+
|
|
2947
|
+
SORBIAN = 46
|
|
2948
|
+
|
|
2949
|
+
SUTU = 48
|
|
2950
|
+
|
|
2951
|
+
TSONGA = 49
|
|
2952
|
+
|
|
2953
|
+
TSWANA = 50
|
|
2954
|
+
|
|
2955
|
+
VENDA = 51
|
|
2956
|
+
|
|
2957
|
+
XHOSA = 52
|
|
2958
|
+
|
|
2959
|
+
ZULU = 53
|
|
2960
|
+
|
|
2961
|
+
ESPERANTO = 143
|
|
2962
|
+
|
|
2963
|
+
WALON = 144
|
|
2964
|
+
|
|
2965
|
+
CORNISH = 145
|
|
2966
|
+
|
|
2967
|
+
WELSH = 146
|
|
2968
|
+
|
|
2969
|
+
BRETON = 147
|
|
2970
|
+
|
|
2971
|
+
INUKTITUT = 93
|
|
2972
|
+
|
|
2973
|
+
IRISH = 60
|
|
2974
|
+
|
|
2975
|
+
LOWER_SORBIAN = 46
|
|
2976
|
+
|
|
2977
|
+
PULAR = 103
|
|
2978
|
+
|
|
2979
|
+
QUECHUA = 107
|
|
2980
|
+
|
|
2981
|
+
TAMAZIGHT = 95
|
|
2982
|
+
|
|
2983
|
+
TIGRINYA = 115
|
|
2984
|
+
|
|
2985
|
+
VALENCIAN = 3
|
|
2986
|
+
|
|
2987
|
+
class Signature(lief.Object):
|
|
2988
|
+
class VERIFICATION_FLAGS(enum.Flag):
|
|
2989
|
+
@staticmethod
|
|
2990
|
+
def from_value(arg: int, /) -> Signature.VERIFICATION_FLAGS: ...
|
|
2991
|
+
|
|
2992
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
2993
|
+
|
|
2994
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
2995
|
+
|
|
2996
|
+
def __int__(self) -> int: ...
|
|
2997
|
+
|
|
2998
|
+
OK = 0
|
|
2999
|
+
|
|
3000
|
+
INVALID_SIGNER = 1
|
|
3001
|
+
|
|
3002
|
+
UNSUPPORTED_ALGORITHM = 2
|
|
3003
|
+
|
|
3004
|
+
INCONSISTENT_DIGEST_ALGORITHM = 4
|
|
3005
|
+
|
|
3006
|
+
CERT_NOT_FOUND = 8
|
|
3007
|
+
|
|
3008
|
+
CORRUPTED_CONTENT_INFO = 16
|
|
3009
|
+
|
|
3010
|
+
CORRUPTED_AUTH_DATA = 32
|
|
3011
|
+
|
|
3012
|
+
MISSING_PKCS9_MESSAGE_DIGEST = 64
|
|
3013
|
+
|
|
3014
|
+
BAD_DIGEST = 128
|
|
3015
|
+
|
|
3016
|
+
BAD_SIGNATURE = 256
|
|
3017
|
+
|
|
3018
|
+
NO_SIGNATURE = 512
|
|
3019
|
+
|
|
3020
|
+
CERT_EXPIRED = 1024
|
|
3021
|
+
|
|
3022
|
+
CERT_FUTURE = 2048
|
|
3023
|
+
|
|
3024
|
+
class VERIFICATION_CHECKS(enum.Flag):
|
|
3025
|
+
@staticmethod
|
|
3026
|
+
def from_value(arg: int, /) -> Signature.VERIFICATION_CHECKS: ...
|
|
3027
|
+
|
|
3028
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
3029
|
+
|
|
3030
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
3031
|
+
|
|
3032
|
+
def __int__(self) -> int: ...
|
|
3033
|
+
|
|
3034
|
+
DEFAULT = 1
|
|
3035
|
+
|
|
3036
|
+
HASH_ONLY = 2
|
|
3037
|
+
|
|
3038
|
+
LIFETIME_SIGNING = 4
|
|
3039
|
+
|
|
3040
|
+
SKIP_CERT_TIME = 8
|
|
3041
|
+
|
|
3042
|
+
class it_const_crt:
|
|
3043
|
+
def __getitem__(self, arg: int, /) -> x509: ...
|
|
3044
|
+
|
|
3045
|
+
def __len__(self) -> int: ...
|
|
3046
|
+
|
|
3047
|
+
def __iter__(self) -> Signature.it_const_crt: ...
|
|
3048
|
+
|
|
3049
|
+
def __next__(self) -> x509: ...
|
|
3050
|
+
|
|
3051
|
+
class it_const_signers_t:
|
|
3052
|
+
def __getitem__(self, arg: int, /) -> SignerInfo: ...
|
|
3053
|
+
|
|
3054
|
+
def __len__(self) -> int: ...
|
|
3055
|
+
|
|
3056
|
+
def __iter__(self) -> Signature.it_const_signers_t: ...
|
|
3057
|
+
|
|
3058
|
+
def __next__(self) -> SignerInfo: ...
|
|
3059
|
+
|
|
3060
|
+
@overload
|
|
3061
|
+
@staticmethod
|
|
3062
|
+
def parse(path: str) -> Optional[Signature]: ...
|
|
3063
|
+
|
|
3064
|
+
@overload
|
|
3065
|
+
@staticmethod
|
|
3066
|
+
def parse(raw: Sequence[int], skip_header: bool = False) -> Optional[Signature]: ...
|
|
3067
|
+
|
|
3068
|
+
@property
|
|
3069
|
+
def version(self) -> int: ...
|
|
3070
|
+
|
|
3071
|
+
@property
|
|
3072
|
+
def digest_algorithm(self) -> ALGORITHMS: ...
|
|
3073
|
+
|
|
3074
|
+
@property
|
|
3075
|
+
def content_info(self) -> ContentInfo: ...
|
|
3076
|
+
|
|
3077
|
+
@property
|
|
3078
|
+
def certificates(self) -> Signature.it_const_crt: ...
|
|
3079
|
+
|
|
3080
|
+
@property
|
|
3081
|
+
def signers(self) -> Signature.it_const_signers_t: ...
|
|
3082
|
+
|
|
3083
|
+
def find_crt(self, serialno: Sequence[int]) -> x509: ...
|
|
3084
|
+
|
|
3085
|
+
@overload
|
|
3086
|
+
def find_crt_subject(self, subject: str) -> x509: ...
|
|
3087
|
+
|
|
3088
|
+
@overload
|
|
3089
|
+
def find_crt_subject(self, subject: str, serialno: Sequence[int]) -> x509: ...
|
|
3090
|
+
|
|
3091
|
+
@overload
|
|
3092
|
+
def find_crt_issuer(self, issuer: str) -> x509: ...
|
|
3093
|
+
|
|
3094
|
+
@overload
|
|
3095
|
+
def find_crt_issuer(self, issuer: str, serialno: Sequence[int]) -> x509: ...
|
|
3096
|
+
|
|
3097
|
+
def check(self, checks: Signature.VERIFICATION_CHECKS = Signature.VERIFICATION_CHECKS.DEFAULT) -> Signature.VERIFICATION_FLAGS: ...
|
|
3098
|
+
|
|
3099
|
+
@property
|
|
3100
|
+
def raw_der(self) -> memoryview: ...
|
|
3101
|
+
|
|
3102
|
+
def __str__(self) -> str: ...
|
|
3103
|
+
|
|
3104
|
+
class RsaInfo:
|
|
3105
|
+
@property
|
|
3106
|
+
def has_public_key(self) -> bool: ...
|
|
3107
|
+
|
|
3108
|
+
@property
|
|
3109
|
+
def has_private_key(self) -> bool: ...
|
|
3110
|
+
|
|
3111
|
+
@property
|
|
3112
|
+
def N(self) -> bytes: ...
|
|
3113
|
+
|
|
3114
|
+
@property
|
|
3115
|
+
def E(self) -> bytes: ...
|
|
3116
|
+
|
|
3117
|
+
@property
|
|
3118
|
+
def D(self) -> bytes: ...
|
|
3119
|
+
|
|
3120
|
+
@property
|
|
3121
|
+
def P(self) -> bytes: ...
|
|
3122
|
+
|
|
3123
|
+
@property
|
|
3124
|
+
def Q(self) -> bytes: ...
|
|
3125
|
+
|
|
3126
|
+
@property
|
|
3127
|
+
def key_size(self) -> int: ...
|
|
3128
|
+
|
|
3129
|
+
@property
|
|
3130
|
+
def __len__(self) -> int: ...
|
|
3131
|
+
|
|
3132
|
+
def __str__(self) -> str: ...
|
|
3133
|
+
|
|
3134
|
+
class x509(lief.Object):
|
|
3135
|
+
class VERIFICATION_FLAGS(enum.Flag):
|
|
3136
|
+
@staticmethod
|
|
3137
|
+
def from_value(arg: int, /) -> x509.VERIFICATION_FLAGS: ...
|
|
3138
|
+
|
|
3139
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
3140
|
+
|
|
3141
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
3142
|
+
|
|
3143
|
+
def __int__(self) -> int: ...
|
|
3144
|
+
|
|
3145
|
+
OK = 0
|
|
3146
|
+
|
|
3147
|
+
BADCERT_EXPIRED = 1
|
|
3148
|
+
|
|
3149
|
+
BADCERT_REVOKED = 2
|
|
3150
|
+
|
|
3151
|
+
BADCERT_CN_MISMATCH = 4
|
|
3152
|
+
|
|
3153
|
+
BADCERT_NOT_TRUSTED = 8
|
|
3154
|
+
|
|
3155
|
+
BADCRL_NOT_TRUSTED = 16
|
|
3156
|
+
|
|
3157
|
+
BADCRL_EXPIRED = 32
|
|
3158
|
+
|
|
3159
|
+
BADCERT_MISSING = 64
|
|
3160
|
+
|
|
3161
|
+
BADCERT_SKIP_VERIFY = 128
|
|
3162
|
+
|
|
3163
|
+
BADCERT_OTHERNATURE = 256
|
|
3164
|
+
|
|
3165
|
+
BADCERT_FUTURE = 512
|
|
3166
|
+
|
|
3167
|
+
BADCRL_FUTURE = 1024
|
|
3168
|
+
|
|
3169
|
+
BADCERT_KEY_USAGE = 2048
|
|
3170
|
+
|
|
3171
|
+
BADCERT_EXT_KEY_USAGE = 4096
|
|
3172
|
+
|
|
3173
|
+
BADCERT_NS_CERT_TYPE = 8192
|
|
3174
|
+
|
|
3175
|
+
BADCERT_BAD_MD = 16384
|
|
3176
|
+
|
|
3177
|
+
BADCERT_BAD_PK = 32768
|
|
3178
|
+
|
|
3179
|
+
BADCERT_BAD_KEY = 65536
|
|
3180
|
+
|
|
3181
|
+
BADCRL_BAD_MD = 131072
|
|
3182
|
+
|
|
3183
|
+
BADCRL_BAD_PK = 262144
|
|
3184
|
+
|
|
3185
|
+
BADCRL_BAD_KEY = 524288
|
|
3186
|
+
|
|
3187
|
+
class KEY_TYPES(enum.Enum):
|
|
3188
|
+
@staticmethod
|
|
3189
|
+
def from_value(arg: int, /) -> x509.KEY_TYPES: ...
|
|
3190
|
+
|
|
3191
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
3192
|
+
|
|
3193
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
3194
|
+
|
|
3195
|
+
def __int__(self) -> int: ...
|
|
3196
|
+
|
|
3197
|
+
NONE = 0
|
|
3198
|
+
|
|
3199
|
+
RSA = 1
|
|
3200
|
+
|
|
3201
|
+
ECKEY = 2
|
|
3202
|
+
|
|
3203
|
+
ECKEY_DH = 3
|
|
3204
|
+
|
|
3205
|
+
ECDSA = 4
|
|
3206
|
+
|
|
3207
|
+
RSA_ALT = 5
|
|
3208
|
+
|
|
3209
|
+
RSASSA_PSS = 6
|
|
3210
|
+
|
|
3211
|
+
class KEY_USAGE(enum.Enum):
|
|
3212
|
+
@staticmethod
|
|
3213
|
+
def from_value(arg: int, /) -> x509.KEY_USAGE: ...
|
|
3214
|
+
|
|
3215
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
3216
|
+
|
|
3217
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
3218
|
+
|
|
3219
|
+
def __int__(self) -> int: ...
|
|
3220
|
+
|
|
3221
|
+
DIGITAL_SIGNATURE = 0
|
|
3222
|
+
|
|
3223
|
+
NON_REPUDIATION = 1
|
|
3224
|
+
|
|
3225
|
+
KEY_ENCIPHERMENT = 2
|
|
3226
|
+
|
|
3227
|
+
DATA_ENCIPHERMENT = 3
|
|
3228
|
+
|
|
3229
|
+
KEY_AGREEMENT = 4
|
|
3230
|
+
|
|
3231
|
+
KEY_CERT_SIGN = 5
|
|
3232
|
+
|
|
3233
|
+
CRL_SIGN = 6
|
|
3234
|
+
|
|
3235
|
+
ENCIPHER_ONLY = 7
|
|
3236
|
+
|
|
3237
|
+
DECIPHER_ONLY = 8
|
|
3238
|
+
|
|
3239
|
+
@overload
|
|
3240
|
+
@staticmethod
|
|
3241
|
+
def parse(path: str) -> list[x509]: ...
|
|
3242
|
+
|
|
3243
|
+
@overload
|
|
3244
|
+
@staticmethod
|
|
3245
|
+
def parse(raw: Sequence[int]) -> list[x509]: ...
|
|
3246
|
+
|
|
3247
|
+
@property
|
|
3248
|
+
def version(self) -> int: ...
|
|
3249
|
+
|
|
3250
|
+
@property
|
|
3251
|
+
def serial_number(self) -> bytes: ...
|
|
3252
|
+
|
|
3253
|
+
@property
|
|
3254
|
+
def signature_algorithm(self) -> str: ...
|
|
3255
|
+
|
|
3256
|
+
@property
|
|
3257
|
+
def valid_from(self) -> list[int]: ...
|
|
3258
|
+
|
|
3259
|
+
@property
|
|
3260
|
+
def valid_to(self) -> list[int]: ...
|
|
3261
|
+
|
|
3262
|
+
@property
|
|
3263
|
+
def issuer(self) -> Union[str, bytes]: ...
|
|
3264
|
+
|
|
3265
|
+
@property
|
|
3266
|
+
def subject(self) -> Union[str, bytes]: ...
|
|
3267
|
+
|
|
3268
|
+
@property
|
|
3269
|
+
def raw(self) -> bytes: ...
|
|
3270
|
+
|
|
3271
|
+
@property
|
|
3272
|
+
def key_type(self) -> x509.KEY_TYPES: ...
|
|
3273
|
+
|
|
3274
|
+
@property
|
|
3275
|
+
def rsa_info(self) -> Optional[RsaInfo]: ...
|
|
3276
|
+
|
|
3277
|
+
@property
|
|
3278
|
+
def key_usage(self) -> list[x509.KEY_USAGE]: ...
|
|
3279
|
+
|
|
3280
|
+
@property
|
|
3281
|
+
def ext_key_usage(self) -> list[str]: ...
|
|
3282
|
+
|
|
3283
|
+
@property
|
|
3284
|
+
def certificate_policies(self) -> list[str]: ...
|
|
3285
|
+
|
|
3286
|
+
@property
|
|
3287
|
+
def is_ca(self) -> bool: ...
|
|
3288
|
+
|
|
3289
|
+
@property
|
|
3290
|
+
def signature(self) -> bytes: ...
|
|
3291
|
+
|
|
3292
|
+
def verify(self, ca: x509) -> x509.VERIFICATION_FLAGS: ...
|
|
3293
|
+
|
|
3294
|
+
def is_trusted_by(self, ca_list: Sequence[x509]) -> x509.VERIFICATION_FLAGS: ...
|
|
3295
|
+
|
|
3296
|
+
def __str__(self) -> str: ...
|
|
3297
|
+
|
|
3298
|
+
class ContentInfo(lief.Object):
|
|
3299
|
+
class Content(lief.Object):
|
|
3300
|
+
@property
|
|
3301
|
+
def content_type(self) -> str: ...
|
|
3302
|
+
|
|
3303
|
+
def copy(self) -> Optional[ContentInfo.Content]: ...
|
|
3304
|
+
|
|
3305
|
+
@property
|
|
3306
|
+
def content_type(self) -> str: ...
|
|
3307
|
+
|
|
3308
|
+
@property
|
|
3309
|
+
def digest(self) -> bytes: ...
|
|
3310
|
+
|
|
3311
|
+
@property
|
|
3312
|
+
def digest_algorithm(self) -> ALGORITHMS: ...
|
|
3313
|
+
|
|
3314
|
+
@property
|
|
3315
|
+
def value(self) -> ContentInfo.Content: ...
|
|
3316
|
+
|
|
3317
|
+
def copy(self) -> ContentInfo: ...
|
|
3318
|
+
|
|
3319
|
+
def __str__(self) -> str: ...
|
|
3320
|
+
|
|
3321
|
+
class GenericContent(ContentInfo.Content):
|
|
3322
|
+
pass
|
|
3323
|
+
|
|
3324
|
+
class SpcIndirectData(ContentInfo.Content):
|
|
3325
|
+
@property
|
|
3326
|
+
def digest_algorithm(self) -> ALGORITHMS: ...
|
|
3327
|
+
|
|
3328
|
+
@property
|
|
3329
|
+
def digest(self) -> memoryview: ...
|
|
3330
|
+
|
|
3331
|
+
@property
|
|
3332
|
+
def file(self) -> str: ...
|
|
3333
|
+
|
|
3334
|
+
def __str__(self) -> str: ...
|
|
3335
|
+
|
|
3336
|
+
class SignerInfo(lief.Object):
|
|
3337
|
+
class it_const_attributes_t:
|
|
3338
|
+
def __getitem__(self, arg: int, /) -> Attribute: ...
|
|
3339
|
+
|
|
3340
|
+
def __len__(self) -> int: ...
|
|
3341
|
+
|
|
3342
|
+
def __iter__(self) -> SignerInfo.it_const_attributes_t: ...
|
|
3343
|
+
|
|
3344
|
+
def __next__(self) -> Attribute: ...
|
|
3345
|
+
|
|
3346
|
+
@property
|
|
3347
|
+
def version(self) -> int: ...
|
|
3348
|
+
|
|
3349
|
+
@property
|
|
3350
|
+
def serial_number(self) -> bytes: ...
|
|
3351
|
+
|
|
3352
|
+
@property
|
|
3353
|
+
def issuer(self) -> Union[str, bytes]: ...
|
|
3354
|
+
|
|
3355
|
+
@property
|
|
3356
|
+
def digest_algorithm(self) -> ALGORITHMS: ...
|
|
3357
|
+
|
|
3358
|
+
@property
|
|
3359
|
+
def encryption_algorithm(self) -> ALGORITHMS: ...
|
|
3360
|
+
|
|
3361
|
+
@property
|
|
3362
|
+
def encrypted_digest(self) -> bytes: ...
|
|
3363
|
+
|
|
3364
|
+
@property
|
|
3365
|
+
def authenticated_attributes(self) -> SignerInfo.it_const_attributes_t: ...
|
|
3366
|
+
|
|
3367
|
+
@property
|
|
3368
|
+
def unauthenticated_attributes(self) -> SignerInfo.it_const_attributes_t: ...
|
|
3369
|
+
|
|
3370
|
+
def get_attribute(self, type: Attribute.TYPE) -> Attribute: ...
|
|
3371
|
+
|
|
3372
|
+
def get_auth_attribute(self, type: Attribute.TYPE) -> Attribute: ...
|
|
3373
|
+
|
|
3374
|
+
def get_unauth_attribute(self, type: Attribute.TYPE) -> Attribute: ...
|
|
3375
|
+
|
|
3376
|
+
@property
|
|
3377
|
+
def cert(self) -> x509: ...
|
|
3378
|
+
|
|
3379
|
+
def __str__(self) -> str: ...
|
|
3380
|
+
|
|
3381
|
+
class CodeIntegrity(lief.Object):
|
|
3382
|
+
def __init__(self) -> None: ...
|
|
3383
|
+
|
|
3384
|
+
flags: int
|
|
3385
|
+
|
|
3386
|
+
catalog: int
|
|
3387
|
+
|
|
3388
|
+
catalog_offset: int
|
|
3389
|
+
|
|
3390
|
+
reserved: int
|
|
3391
|
+
|
|
3392
|
+
def __str__(self) -> str: ...
|
|
3393
|
+
|
|
3394
|
+
class Attribute(lief.Object):
|
|
3395
|
+
class TYPE(enum.Enum):
|
|
3396
|
+
@staticmethod
|
|
3397
|
+
def from_value(arg: int, /) -> Attribute.TYPE: ...
|
|
3398
|
+
|
|
3399
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
3400
|
+
|
|
3401
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
3402
|
+
|
|
3403
|
+
def __int__(self) -> int: ...
|
|
3404
|
+
|
|
3405
|
+
UNKNOWN = 0
|
|
3406
|
+
|
|
3407
|
+
CONTENT_TYPE = 1
|
|
3408
|
+
|
|
3409
|
+
GENERIC_TYPE = 2
|
|
3410
|
+
|
|
3411
|
+
SPC_SP_OPUS_INFO = 4
|
|
3412
|
+
|
|
3413
|
+
MS_COUNTER_SIGN = 6
|
|
3414
|
+
|
|
3415
|
+
MS_SPC_NESTED_SIGN = 7
|
|
3416
|
+
|
|
3417
|
+
MS_SPC_STATEMENT_TYPE = 8
|
|
3418
|
+
|
|
3419
|
+
SPC_RELAXED_PE_MARKER_CHECK = 5
|
|
3420
|
+
|
|
3421
|
+
SIGNING_CERTIFICATE_V2 = 3
|
|
3422
|
+
|
|
3423
|
+
MS_PLATFORM_MANIFEST_BINARY_ID = 9
|
|
3424
|
+
|
|
3425
|
+
PKCS9_AT_SEQUENCE_NUMBER = 10
|
|
3426
|
+
|
|
3427
|
+
PKCS9_COUNTER_SIGNATURE = 11
|
|
3428
|
+
|
|
3429
|
+
PKCS9_MESSAGE_DIGEST = 12
|
|
3430
|
+
|
|
3431
|
+
PKCS9_SIGNING_TIME = 13
|
|
3432
|
+
|
|
3433
|
+
@property
|
|
3434
|
+
def type(self) -> Attribute.TYPE: ...
|
|
3435
|
+
|
|
3436
|
+
def __str__(self) -> str: ...
|
|
3437
|
+
|
|
3438
|
+
class ContentType(Attribute):
|
|
3439
|
+
@property
|
|
3440
|
+
def oid(self) -> str: ...
|
|
3441
|
+
|
|
3442
|
+
class GenericType(Attribute):
|
|
3443
|
+
@property
|
|
3444
|
+
def oid(self) -> str: ...
|
|
3445
|
+
|
|
3446
|
+
@property
|
|
3447
|
+
def raw_content(self) -> memoryview: ...
|
|
3448
|
+
|
|
3449
|
+
class MsSpcNestedSignature(Attribute):
|
|
3450
|
+
@property
|
|
3451
|
+
def signature(self) -> Signature: ...
|
|
3452
|
+
|
|
3453
|
+
class MsSpcStatementType(Attribute):
|
|
3454
|
+
@property
|
|
3455
|
+
def oid(self) -> str: ...
|
|
3456
|
+
|
|
3457
|
+
class MsManifestBinaryID(Attribute):
|
|
3458
|
+
manifest_id: str
|
|
3459
|
+
|
|
3460
|
+
def __str__(self) -> str: ...
|
|
3461
|
+
|
|
3462
|
+
class PKCS9AtSequenceNumber(Attribute):
|
|
3463
|
+
@property
|
|
3464
|
+
def number(self) -> int: ...
|
|
3465
|
+
|
|
3466
|
+
class PKCS9CounterSignature(Attribute):
|
|
3467
|
+
@property
|
|
3468
|
+
def signer(self) -> SignerInfo: ...
|
|
3469
|
+
|
|
3470
|
+
class PKCS9MessageDigest(Attribute):
|
|
3471
|
+
@property
|
|
3472
|
+
def digest(self) -> bytes: ...
|
|
3473
|
+
|
|
3474
|
+
class PKCS9SigningTime(Attribute):
|
|
3475
|
+
@property
|
|
3476
|
+
def time(self) -> list[int]: ...
|
|
3477
|
+
|
|
3478
|
+
class SpcSpOpusInfo(Attribute):
|
|
3479
|
+
@property
|
|
3480
|
+
def program_name(self) -> Union[str, bytes]: ...
|
|
3481
|
+
|
|
3482
|
+
@property
|
|
3483
|
+
def more_info(self) -> Union[str, bytes]: ...
|
|
3484
|
+
|
|
3485
|
+
class MsCounterSign(Attribute):
|
|
3486
|
+
class it_const_crt:
|
|
3487
|
+
def __getitem__(self, arg: int, /) -> x509: ...
|
|
3488
|
+
|
|
3489
|
+
def __len__(self) -> int: ...
|
|
3490
|
+
|
|
3491
|
+
def __iter__(self) -> MsCounterSign.it_const_crt: ...
|
|
3492
|
+
|
|
3493
|
+
def __next__(self) -> x509: ...
|
|
3494
|
+
|
|
3495
|
+
class it_const_signers_t:
|
|
3496
|
+
def __getitem__(self, arg: int, /) -> SignerInfo: ...
|
|
3497
|
+
|
|
3498
|
+
def __len__(self) -> int: ...
|
|
3499
|
+
|
|
3500
|
+
def __iter__(self) -> MsCounterSign.it_const_signers_t: ...
|
|
3501
|
+
|
|
3502
|
+
def __next__(self) -> SignerInfo: ...
|
|
3503
|
+
|
|
3504
|
+
@property
|
|
3505
|
+
def version(self) -> int: ...
|
|
3506
|
+
|
|
3507
|
+
@property
|
|
3508
|
+
def digest_algorithm(self) -> ALGORITHMS: ...
|
|
3509
|
+
|
|
3510
|
+
@property
|
|
3511
|
+
def content_info(self) -> ContentInfo: ...
|
|
3512
|
+
|
|
3513
|
+
@property
|
|
3514
|
+
def certificates(self) -> MsCounterSign.it_const_crt: ...
|
|
3515
|
+
|
|
3516
|
+
@property
|
|
3517
|
+
def signers(self) -> MsCounterSign.it_const_signers_t: ...
|
|
3518
|
+
|
|
3519
|
+
class SpcRelaxedPeMarkerCheck(Attribute):
|
|
3520
|
+
@property
|
|
3521
|
+
def value(self) -> int: ...
|
|
3522
|
+
|
|
3523
|
+
class SigningCertificateV2(Attribute):
|
|
3524
|
+
pass
|
|
3525
|
+
|
|
3526
|
+
class PKCS9TSTInfo(ContentInfo.Content):
|
|
3527
|
+
pass
|
|
3528
|
+
|
|
3529
|
+
class LoadConfiguration(lief.Object):
|
|
3530
|
+
def __init__(self) -> None: ...
|
|
3531
|
+
|
|
3532
|
+
class VERSION(enum.Enum):
|
|
3533
|
+
@staticmethod
|
|
3534
|
+
def from_value(arg: int, /) -> LoadConfiguration.VERSION: ...
|
|
3535
|
+
|
|
3536
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
3537
|
+
|
|
3538
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
3539
|
+
|
|
3540
|
+
def __int__(self) -> int: ...
|
|
3541
|
+
|
|
3542
|
+
UNKNOWN = 0
|
|
3543
|
+
|
|
3544
|
+
SEH = 1
|
|
3545
|
+
|
|
3546
|
+
WIN_8_1 = 2
|
|
3547
|
+
|
|
3548
|
+
WIN_10_0_9879 = 3
|
|
3549
|
+
|
|
3550
|
+
WIN_10_0_14286 = 4
|
|
3551
|
+
|
|
3552
|
+
WIN_10_0_14383 = 5
|
|
3553
|
+
|
|
3554
|
+
WIN_10_0_14901 = 6
|
|
3555
|
+
|
|
3556
|
+
WIN_10_0_15002 = 7
|
|
3557
|
+
|
|
3558
|
+
WIN_10_0_16237 = 8
|
|
3559
|
+
|
|
3560
|
+
WIN_10_0_18362 = 9
|
|
3561
|
+
|
|
3562
|
+
WIN_10_0_19534 = 10
|
|
3563
|
+
|
|
3564
|
+
WIN_10_0_MSVC_2019 = 11
|
|
3565
|
+
|
|
3566
|
+
WIN_10_0_MSVC_2019_16 = 12
|
|
3567
|
+
|
|
3568
|
+
@property
|
|
3569
|
+
def version(self) -> LoadConfiguration.VERSION: ...
|
|
3570
|
+
|
|
3571
|
+
characteristics: int
|
|
3572
|
+
|
|
3573
|
+
@property
|
|
3574
|
+
def size(self) -> int: ...
|
|
3575
|
+
|
|
3576
|
+
timedatestamp: int
|
|
3577
|
+
|
|
3578
|
+
major_version: int
|
|
3579
|
+
|
|
3580
|
+
minor_version: int
|
|
3581
|
+
|
|
3582
|
+
global_flags_clear: int
|
|
3583
|
+
|
|
3584
|
+
global_flags_set: int
|
|
3585
|
+
|
|
3586
|
+
critical_section_default_timeout: int
|
|
3587
|
+
|
|
3588
|
+
decommit_free_block_threshold: int
|
|
3589
|
+
|
|
3590
|
+
decommit_total_free_threshold: int
|
|
3591
|
+
|
|
3592
|
+
lock_prefix_table: int
|
|
3593
|
+
|
|
3594
|
+
maximum_allocation_size: int
|
|
3595
|
+
|
|
3596
|
+
virtual_memory_threshold: int
|
|
3597
|
+
|
|
3598
|
+
process_affinity_mask: int
|
|
3599
|
+
|
|
3600
|
+
process_heap_flags: int
|
|
3601
|
+
|
|
3602
|
+
csd_version: int
|
|
3603
|
+
|
|
3604
|
+
reserved1: int
|
|
3605
|
+
|
|
3606
|
+
dependent_load_flags: int
|
|
3607
|
+
|
|
3608
|
+
editlist: int
|
|
3609
|
+
|
|
3610
|
+
security_cookie: int
|
|
3611
|
+
|
|
3612
|
+
def copy(self) -> LoadConfiguration: ...
|
|
3613
|
+
|
|
3614
|
+
def __str__(self) -> str: ...
|
|
3615
|
+
|
|
3616
|
+
class LoadConfigurationV0(LoadConfiguration):
|
|
3617
|
+
def __init__(self) -> None: ...
|
|
3618
|
+
|
|
3619
|
+
se_handler_table: int
|
|
3620
|
+
|
|
3621
|
+
se_handler_count: int
|
|
3622
|
+
|
|
3623
|
+
def copy(self) -> LoadConfigurationV0: ...
|
|
3624
|
+
|
|
3625
|
+
def __str__(self) -> str: ...
|
|
3626
|
+
|
|
3627
|
+
class LoadConfigurationV1(LoadConfigurationV0):
|
|
3628
|
+
def __init__(self) -> None: ...
|
|
3629
|
+
|
|
3630
|
+
class IMAGE_GUARD(enum.Flag):
|
|
3631
|
+
@staticmethod
|
|
3632
|
+
def from_value(arg: int, /) -> LoadConfigurationV1.IMAGE_GUARD: ...
|
|
3633
|
+
|
|
3634
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
3635
|
+
|
|
3636
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
3637
|
+
|
|
3638
|
+
def __int__(self) -> int: ...
|
|
3639
|
+
|
|
3640
|
+
NONE = 0
|
|
3641
|
+
|
|
3642
|
+
CF_INSTRUMENTED = 256
|
|
3643
|
+
|
|
3644
|
+
CFW_INSTRUMENTED = 512
|
|
3645
|
+
|
|
3646
|
+
CF_FUNCTION_TABLE_PRESENT = 1024
|
|
3647
|
+
|
|
3648
|
+
SECURITY_COOKIE_UNUSED = 2048
|
|
3649
|
+
|
|
3650
|
+
PROTECT_DELAYLOAD_IAT = 4096
|
|
3651
|
+
|
|
3652
|
+
DELAYLOAD_IAT_IN_ITS_OWN_SECTION = 8192
|
|
3653
|
+
|
|
3654
|
+
CF_EXPORT_SUPPRESSION_INFO_PRESENT = 16384
|
|
3655
|
+
|
|
3656
|
+
CF_ENABLE_EXPORT_SUPPRESSION = 32768
|
|
3657
|
+
|
|
3658
|
+
CF_LONGJUMP_TABLE_PRESENT = 65536
|
|
3659
|
+
|
|
3660
|
+
RF_INSTRUMENTED = 131072
|
|
3661
|
+
|
|
3662
|
+
RF_ENABLE = 262144
|
|
3663
|
+
|
|
3664
|
+
RF_STRICT = 524288
|
|
3665
|
+
|
|
3666
|
+
RETPOLINE_PRESENT = 1048576
|
|
3667
|
+
|
|
3668
|
+
EH_CONTINUATION_TABLE_PRESENT = 2097152
|
|
3669
|
+
|
|
3670
|
+
guard_cf_check_function_pointer: int
|
|
3671
|
+
|
|
3672
|
+
guard_cf_dispatch_function_pointer: int
|
|
3673
|
+
|
|
3674
|
+
guard_cf_function_table: int
|
|
3675
|
+
|
|
3676
|
+
guard_cf_function_count: int
|
|
3677
|
+
|
|
3678
|
+
guard_flags: LoadConfigurationV1.IMAGE_GUARD
|
|
3679
|
+
|
|
3680
|
+
def has(self, flag: LoadConfigurationV1.IMAGE_GUARD) -> bool: ...
|
|
3681
|
+
|
|
3682
|
+
@property
|
|
3683
|
+
def guard_cf_flags_list(self) -> list[LoadConfigurationV1.IMAGE_GUARD]: ...
|
|
3684
|
+
|
|
3685
|
+
def __contains__(self, arg: LoadConfigurationV1.IMAGE_GUARD, /) -> bool: ...
|
|
3686
|
+
|
|
3687
|
+
def copy(self) -> LoadConfigurationV1: ...
|
|
3688
|
+
|
|
3689
|
+
def __str__(self) -> str: ...
|
|
3690
|
+
|
|
3691
|
+
class LoadConfigurationV2(LoadConfigurationV1):
|
|
3692
|
+
def __init__(self) -> None: ...
|
|
3693
|
+
|
|
3694
|
+
@property
|
|
3695
|
+
def code_integrity(self) -> CodeIntegrity: ...
|
|
3696
|
+
|
|
3697
|
+
def copy(self) -> LoadConfigurationV2: ...
|
|
3698
|
+
|
|
3699
|
+
def __str__(self) -> str: ...
|
|
3700
|
+
|
|
3701
|
+
class LoadConfigurationV3(LoadConfigurationV2):
|
|
3702
|
+
def __init__(self) -> None: ...
|
|
3703
|
+
|
|
3704
|
+
guard_address_taken_iat_entry_table: int
|
|
3705
|
+
|
|
3706
|
+
guard_address_taken_iat_entry_count: int
|
|
3707
|
+
|
|
3708
|
+
guard_long_jump_target_table: int
|
|
3709
|
+
|
|
3710
|
+
guard_long_jump_target_count: int
|
|
3711
|
+
|
|
3712
|
+
def copy(self) -> LoadConfigurationV3: ...
|
|
3713
|
+
|
|
3714
|
+
def __str__(self) -> str: ...
|
|
3715
|
+
|
|
3716
|
+
class LoadConfigurationV4(LoadConfigurationV3):
|
|
3717
|
+
def __init__(self) -> None: ...
|
|
3718
|
+
|
|
3719
|
+
dynamic_value_reloc_table: int
|
|
3720
|
+
|
|
3721
|
+
hybrid_metadata_pointer: int
|
|
3722
|
+
|
|
3723
|
+
def copy(self) -> LoadConfigurationV4: ...
|
|
3724
|
+
|
|
3725
|
+
def __str__(self) -> str: ...
|
|
3726
|
+
|
|
3727
|
+
class LoadConfigurationV5(LoadConfigurationV4):
|
|
3728
|
+
def __init__(self) -> None: ...
|
|
3729
|
+
|
|
3730
|
+
guard_rf_failure_routine: int
|
|
3731
|
+
|
|
3732
|
+
guard_rf_failure_routine_function_pointer: int
|
|
3733
|
+
|
|
3734
|
+
dynamic_value_reloctable_offset: int
|
|
3735
|
+
|
|
3736
|
+
dynamic_value_reloctable_section: int
|
|
3737
|
+
|
|
3738
|
+
reserved2: int
|
|
3739
|
+
|
|
3740
|
+
def copy(self) -> LoadConfigurationV5: ...
|
|
3741
|
+
|
|
3742
|
+
def __str__(self) -> str: ...
|
|
3743
|
+
|
|
3744
|
+
class LoadConfigurationV6(LoadConfigurationV5):
|
|
3745
|
+
def __init__(self) -> None: ...
|
|
3746
|
+
|
|
3747
|
+
guard_rf_verify_stackpointer_function_pointer: int
|
|
3748
|
+
|
|
3749
|
+
hotpatch_table_offset: int
|
|
3750
|
+
|
|
3751
|
+
def copy(self) -> LoadConfigurationV6: ...
|
|
3752
|
+
|
|
3753
|
+
def __str__(self) -> str: ...
|
|
3754
|
+
|
|
3755
|
+
class LoadConfigurationV7(LoadConfigurationV6):
|
|
3756
|
+
def __init__(self) -> None: ...
|
|
3757
|
+
|
|
3758
|
+
reserved3: int
|
|
3759
|
+
|
|
3760
|
+
addressof_unicode_string: int
|
|
3761
|
+
|
|
3762
|
+
def copy(self) -> LoadConfigurationV7: ...
|
|
3763
|
+
|
|
3764
|
+
def __str__(self) -> str: ...
|
|
3765
|
+
|
|
3766
|
+
class LoadConfigurationV8(LoadConfigurationV7):
|
|
3767
|
+
def __init__(self) -> None: ...
|
|
3768
|
+
|
|
3769
|
+
volatile_metadata_pointer: int
|
|
3770
|
+
|
|
3771
|
+
def copy(self) -> LoadConfigurationV8: ...
|
|
3772
|
+
|
|
3773
|
+
def __str__(self) -> str: ...
|
|
3774
|
+
|
|
3775
|
+
class LoadConfigurationV9(LoadConfigurationV8):
|
|
3776
|
+
def __init__(self) -> None: ...
|
|
3777
|
+
|
|
3778
|
+
guard_eh_continuation_table: int
|
|
3779
|
+
|
|
3780
|
+
guard_eh_continuation_count: int
|
|
3781
|
+
|
|
3782
|
+
def copy(self) -> LoadConfigurationV9: ...
|
|
3783
|
+
|
|
3784
|
+
def __str__(self) -> str: ...
|
|
3785
|
+
|
|
3786
|
+
class LoadConfigurationV10(LoadConfigurationV9):
|
|
3787
|
+
def __init__(self) -> None: ...
|
|
3788
|
+
|
|
3789
|
+
guard_xfg_check_function_pointer: int
|
|
3790
|
+
|
|
3791
|
+
guard_xfg_dispatch_function_pointer: int
|
|
3792
|
+
|
|
3793
|
+
guard_xfg_table_dispatch_function_pointer: int
|
|
3794
|
+
|
|
3795
|
+
def copy(self) -> LoadConfigurationV10: ...
|
|
3796
|
+
|
|
3797
|
+
def __str__(self) -> str: ...
|
|
3798
|
+
|
|
3799
|
+
class LoadConfigurationV11(LoadConfigurationV10):
|
|
3800
|
+
def __init__(self) -> None: ...
|
|
3801
|
+
|
|
3802
|
+
cast_guard_os_determined_failure_mode: int
|
|
3803
|
+
|
|
3804
|
+
def copy(self) -> LoadConfigurationV11: ...
|
|
3805
|
+
|
|
3806
|
+
def __str__(self) -> str: ...
|
|
3807
|
+
|
|
3808
|
+
class Binary(lief.Binary):
|
|
3809
|
+
def __init__(self, type: PE_TYPE) -> None: ...
|
|
3810
|
+
|
|
3811
|
+
class it_section:
|
|
3812
|
+
def __getitem__(self, arg: int, /) -> Section: ...
|
|
3813
|
+
|
|
3814
|
+
def __len__(self) -> int: ...
|
|
3815
|
+
|
|
3816
|
+
def __iter__(self) -> Binary.it_section: ...
|
|
3817
|
+
|
|
3818
|
+
def __next__(self) -> Section: ...
|
|
3819
|
+
|
|
3820
|
+
class it_data_directories:
|
|
3821
|
+
def __getitem__(self, arg: int, /) -> DataDirectory: ...
|
|
3822
|
+
|
|
3823
|
+
def __len__(self) -> int: ...
|
|
3824
|
+
|
|
3825
|
+
def __iter__(self) -> Binary.it_data_directories: ...
|
|
3826
|
+
|
|
3827
|
+
def __next__(self) -> DataDirectory: ...
|
|
3828
|
+
|
|
3829
|
+
class it_relocations:
|
|
3830
|
+
def __getitem__(self, arg: int, /) -> Relocation: ...
|
|
3831
|
+
|
|
3832
|
+
def __len__(self) -> int: ...
|
|
3833
|
+
|
|
3834
|
+
def __iter__(self) -> Binary.it_relocations: ...
|
|
3835
|
+
|
|
3836
|
+
def __next__(self) -> Relocation: ...
|
|
3837
|
+
|
|
3838
|
+
class it_imports:
|
|
3839
|
+
def __getitem__(self, arg: int, /) -> Import: ...
|
|
3840
|
+
|
|
3841
|
+
def __len__(self) -> int: ...
|
|
3842
|
+
|
|
3843
|
+
def __iter__(self) -> Binary.it_imports: ...
|
|
3844
|
+
|
|
3845
|
+
def __next__(self) -> Import: ...
|
|
3846
|
+
|
|
3847
|
+
class it_delay_imports:
|
|
3848
|
+
def __getitem__(self, arg: int, /) -> DelayImport: ...
|
|
3849
|
+
|
|
3850
|
+
def __len__(self) -> int: ...
|
|
3851
|
+
|
|
3852
|
+
def __iter__(self) -> Binary.it_delay_imports: ...
|
|
3853
|
+
|
|
3854
|
+
def __next__(self) -> DelayImport: ...
|
|
3855
|
+
|
|
3856
|
+
class it_symbols:
|
|
3857
|
+
def __getitem__(self, arg: int, /) -> Symbol: ...
|
|
3858
|
+
|
|
3859
|
+
def __len__(self) -> int: ...
|
|
3860
|
+
|
|
3861
|
+
def __iter__(self) -> Binary.it_symbols: ...
|
|
3862
|
+
|
|
3863
|
+
def __next__(self) -> Symbol: ...
|
|
3864
|
+
|
|
3865
|
+
class it_const_signatures:
|
|
3866
|
+
def __getitem__(self, arg: int, /) -> Signature: ...
|
|
3867
|
+
|
|
3868
|
+
def __len__(self) -> int: ...
|
|
3869
|
+
|
|
3870
|
+
def __iter__(self) -> Binary.it_const_signatures: ...
|
|
3871
|
+
|
|
3872
|
+
def __next__(self) -> Signature: ...
|
|
3873
|
+
|
|
3874
|
+
class it_debug:
|
|
3875
|
+
def __getitem__(self, arg: int, /) -> Debug: ...
|
|
3876
|
+
|
|
3877
|
+
def __len__(self) -> int: ...
|
|
3878
|
+
|
|
3879
|
+
def __iter__(self) -> Binary.it_debug: ...
|
|
3880
|
+
|
|
3881
|
+
def __next__(self) -> Debug: ...
|
|
3882
|
+
|
|
3883
|
+
@property
|
|
3884
|
+
def sections(self) -> Binary.it_section: ... # type: ignore
|
|
3885
|
+
|
|
3886
|
+
@property
|
|
3887
|
+
def dos_header(self) -> DosHeader: ...
|
|
3888
|
+
|
|
3889
|
+
@property
|
|
3890
|
+
def header(self) -> Header: ... # type: ignore
|
|
3891
|
+
|
|
3892
|
+
@property
|
|
3893
|
+
def optional_header(self) -> OptionalHeader: ...
|
|
3894
|
+
|
|
3895
|
+
def compute_checksum(self) -> int: ...
|
|
3896
|
+
|
|
3897
|
+
@property
|
|
3898
|
+
def virtual_size(self) -> int: ...
|
|
3899
|
+
|
|
3900
|
+
@property
|
|
3901
|
+
def sizeof_headers(self) -> int: ...
|
|
3902
|
+
|
|
3903
|
+
def rva_to_offset(self, rva_address: int) -> int: ...
|
|
3904
|
+
|
|
3905
|
+
def va_to_offset(self, va_address: int) -> int: ...
|
|
3906
|
+
|
|
3907
|
+
def section_from_offset(self, offset: int) -> Section: ...
|
|
3908
|
+
|
|
3909
|
+
def section_from_rva(self, rva: int) -> Section: ...
|
|
3910
|
+
|
|
3911
|
+
tls: TLS
|
|
3912
|
+
|
|
3913
|
+
rich_header: RichHeader
|
|
3914
|
+
|
|
3915
|
+
@property
|
|
3916
|
+
def has_rich_header(self) -> bool: ...
|
|
3917
|
+
|
|
3918
|
+
@property
|
|
3919
|
+
def has_debug(self) -> bool: ...
|
|
3920
|
+
|
|
3921
|
+
@property
|
|
3922
|
+
def has_tls(self) -> bool: ...
|
|
3923
|
+
|
|
3924
|
+
@property
|
|
3925
|
+
def has_imports(self) -> bool: ...
|
|
3926
|
+
|
|
3927
|
+
@property
|
|
3928
|
+
def has_exports(self) -> bool: ...
|
|
3929
|
+
|
|
3930
|
+
@property
|
|
3931
|
+
def has_resources(self) -> bool: ...
|
|
3932
|
+
|
|
3933
|
+
@property
|
|
3934
|
+
def has_exceptions(self) -> bool: ...
|
|
3935
|
+
|
|
3936
|
+
@property
|
|
3937
|
+
def has_relocations(self) -> bool: ...
|
|
3938
|
+
|
|
3939
|
+
@property
|
|
3940
|
+
def has_configuration(self) -> bool: ...
|
|
3941
|
+
|
|
3942
|
+
@property
|
|
3943
|
+
def has_signatures(self) -> bool: ...
|
|
3944
|
+
|
|
3945
|
+
@property
|
|
3946
|
+
def is_reproducible_build(self) -> bool: ...
|
|
3947
|
+
|
|
3948
|
+
@property
|
|
3949
|
+
def functions(self) -> list[lief.Function]: ...
|
|
3950
|
+
|
|
3951
|
+
@property
|
|
3952
|
+
def exception_functions(self) -> list[lief.Function]: ...
|
|
3953
|
+
|
|
3954
|
+
def predict_function_rva(self, library: str, function: str) -> int: ...
|
|
3955
|
+
|
|
3956
|
+
@property
|
|
3957
|
+
def signatures(self) -> Binary.it_const_signatures: ...
|
|
3958
|
+
|
|
3959
|
+
def authentihash(self, algorithm: ALGORITHMS) -> bytes: ...
|
|
3960
|
+
|
|
3961
|
+
@overload
|
|
3962
|
+
def verify_signature(self, checks: Signature.VERIFICATION_CHECKS = Signature.VERIFICATION_CHECKS.DEFAULT) -> Signature.VERIFICATION_FLAGS: ...
|
|
3963
|
+
|
|
3964
|
+
@overload
|
|
3965
|
+
def verify_signature(self, signature: Signature, checks: Signature.VERIFICATION_CHECKS = Signature.VERIFICATION_CHECKS.DEFAULT) -> Signature.VERIFICATION_FLAGS: ...
|
|
3966
|
+
|
|
3967
|
+
@property
|
|
3968
|
+
def authentihash_md5(self) -> bytes: ...
|
|
3969
|
+
|
|
3970
|
+
@property
|
|
3971
|
+
def authentihash_sha1(self) -> bytes: ...
|
|
3972
|
+
|
|
3973
|
+
@property
|
|
3974
|
+
def authentihash_sha256(self) -> bytes: ...
|
|
3975
|
+
|
|
3976
|
+
@property
|
|
3977
|
+
def authentihash_sha512(self) -> bytes: ...
|
|
3978
|
+
|
|
3979
|
+
@property
|
|
3980
|
+
def debug(self) -> Binary.it_debug: ...
|
|
3981
|
+
|
|
3982
|
+
@property
|
|
3983
|
+
def codeview_pdb(self) -> CodeViewPDB: ...
|
|
3984
|
+
|
|
3985
|
+
@property
|
|
3986
|
+
def load_configuration(self) -> LoadConfiguration: ...
|
|
3987
|
+
|
|
3988
|
+
def get_export(self) -> Export: ...
|
|
3989
|
+
|
|
3990
|
+
@property
|
|
3991
|
+
def symbols(self) -> list[Symbol]: ... # type: ignore
|
|
3992
|
+
|
|
3993
|
+
def get_section(self, section_name: str) -> Section: ...
|
|
3994
|
+
|
|
3995
|
+
def add_section(self, section: Section, type: SECTION_TYPES = SECTION_TYPES.UNKNOWN) -> Section: ...
|
|
3996
|
+
|
|
3997
|
+
@property
|
|
3998
|
+
def relocations(self) -> Binary.it_relocations: ... # type: ignore
|
|
3999
|
+
|
|
4000
|
+
def add_relocation(self, relocation: Relocation) -> Relocation: ...
|
|
4001
|
+
|
|
4002
|
+
def remove_all_relocations(self) -> None: ...
|
|
4003
|
+
|
|
4004
|
+
def remove(self, section: Section, clear: bool = False) -> None: ...
|
|
4005
|
+
|
|
4006
|
+
@property
|
|
4007
|
+
def data_directories(self) -> Binary.it_data_directories: ...
|
|
4008
|
+
|
|
4009
|
+
def data_directory(self, type: DataDirectory.TYPES) -> DataDirectory: ...
|
|
4010
|
+
|
|
4011
|
+
@property
|
|
4012
|
+
def imports(self) -> Binary.it_imports: ...
|
|
4013
|
+
|
|
4014
|
+
def has_import(self, import_name: str) -> bool: ...
|
|
4015
|
+
|
|
4016
|
+
def get_import(self, import_name: str) -> Import: ...
|
|
4017
|
+
|
|
4018
|
+
@property
|
|
4019
|
+
def delay_imports(self) -> Binary.it_delay_imports: ...
|
|
4020
|
+
|
|
4021
|
+
@property
|
|
4022
|
+
def has_delay_imports(self) -> bool: ...
|
|
4023
|
+
|
|
4024
|
+
def has_delay_import(self, import_name: str) -> bool: ...
|
|
4025
|
+
|
|
4026
|
+
def get_delay_import(self, import_name: str) -> DelayImport: ...
|
|
4027
|
+
|
|
4028
|
+
@property
|
|
4029
|
+
def resources_manager(self) -> Union[ResourcesManager, lief.lief_errors]: ...
|
|
4030
|
+
|
|
4031
|
+
@property
|
|
4032
|
+
def resources(self) -> ResourceNode: ...
|
|
4033
|
+
|
|
4034
|
+
@property
|
|
4035
|
+
def overlay(self) -> memoryview: ...
|
|
4036
|
+
|
|
4037
|
+
@property
|
|
4038
|
+
def overlay_offset(self) -> int: ...
|
|
4039
|
+
|
|
4040
|
+
dos_stub: memoryview
|
|
4041
|
+
|
|
4042
|
+
def add_import_function(self, import_name: str, function_name: str) -> ImportEntry: ...
|
|
4043
|
+
|
|
4044
|
+
def add_library(self, import_name: str) -> Import: ...
|
|
4045
|
+
|
|
4046
|
+
def remove_library(self, import_name: str) -> None: ...
|
|
4047
|
+
|
|
4048
|
+
def remove_all_libraries(self) -> None: ...
|
|
4049
|
+
|
|
4050
|
+
def write(self, output_path: str) -> None: ...
|
|
4051
|
+
|
|
4052
|
+
def __str__(self) -> str: ...
|
|
4053
|
+
|
|
4054
|
+
class Builder:
|
|
4055
|
+
def __init__(self, pe_binary: Binary) -> None: ...
|
|
4056
|
+
|
|
4057
|
+
def build(self) -> Union[lief.ok_t, lief.lief_errors]: ...
|
|
4058
|
+
|
|
4059
|
+
def build_imports(self, enable: bool = True) -> Builder: ...
|
|
4060
|
+
|
|
4061
|
+
def patch_imports(self, enable: bool = True) -> Builder: ...
|
|
4062
|
+
|
|
4063
|
+
def build_relocations(self, enable: bool = True) -> Builder: ...
|
|
4064
|
+
|
|
4065
|
+
def build_tls(self, enable: bool = True) -> Builder: ...
|
|
4066
|
+
|
|
4067
|
+
def build_resources(self, enable: bool = True) -> Builder: ...
|
|
4068
|
+
|
|
4069
|
+
def build_overlay(self, enable: bool = True) -> Builder: ...
|
|
4070
|
+
|
|
4071
|
+
def build_dos_stub(self, enable: bool = True) -> Builder: ...
|
|
4072
|
+
|
|
4073
|
+
def write(self, output: str) -> None: ...
|
|
4074
|
+
|
|
4075
|
+
def get_build(self) -> list[int]: ...
|
|
4076
|
+
|
|
4077
|
+
def __str__(self) -> str: ...
|
|
4078
|
+
|
|
4079
|
+
class IMPHASH_MODE(enum.Enum):
|
|
4080
|
+
DEFAULT = 0
|
|
4081
|
+
|
|
4082
|
+
LIEF = 0
|
|
4083
|
+
|
|
4084
|
+
PEFILE = 1
|
|
4085
|
+
|
|
4086
|
+
VT = 1
|
|
4087
|
+
|
|
4088
|
+
def oid_to_string(arg: str, /) -> str: ...
|
|
4089
|
+
|
|
4090
|
+
@overload
|
|
4091
|
+
def get_type(file: str) -> Union[PE_TYPE, lief.lief_errors]: ...
|
|
4092
|
+
|
|
4093
|
+
@overload
|
|
4094
|
+
def get_type(raw: Sequence[int]) -> Union[PE_TYPE, lief.lief_errors]: ...
|
|
4095
|
+
|
|
4096
|
+
def get_imphash(binary: Binary, mode: IMPHASH_MODE = IMPHASH_MODE.DEFAULT) -> str: ...
|
|
4097
|
+
|
|
4098
|
+
def resolve_ordinals(imp: Import, strict: bool = False, use_std: bool = False) -> Union[Import, lief.lief_errors]: ...
|