File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -278,6 +278,14 @@ def check_PE_subsystem_version(binary) -> bool:
278
278
return True
279
279
return False
280
280
281
+ def check_PE_application_manifest (binary ) -> bool :
282
+ if not binary .has_resources :
283
+ # No resources at all.
284
+ return False
285
+
286
+ rm = binary .resources_manager
287
+ return rm .has_manifest
288
+
281
289
def check_ELF_interpreter (binary ) -> bool :
282
290
expected_interpreter = ELF_INTERPRETER_NAMES [binary .header .machine_type ][binary .abstract .header .endianness ]
283
291
@@ -307,6 +315,7 @@ def check_ELF_ABI(binary) -> bool:
307
315
lief .EXE_FORMATS .PE : [
308
316
('DYNAMIC_LIBRARIES' , check_PE_libraries ),
309
317
('SUBSYSTEM_VERSION' , check_PE_subsystem_version ),
318
+ ('APPLICATION_MANIFEST' , check_PE_application_manifest ),
310
319
]
311
320
}
312
321
You can’t perform that action at this time.
0 commit comments