We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d005709 commit 701ded3Copy full SHA for 701ded3
python/unblob/handlers/executable/pe.py
@@ -45,12 +45,16 @@ def is_nsis(self, binary: lief.PE.Binary) -> bool:
45
"""
46
Test if binary appears to be a Nullsoft Installer self-extracting archive
47
48
+ Partially based on file magic's rule:
49
+
50
+ https://github.com/file/file/blob/7ed3febfcd616804a2ec6495b3e5f9ccb6fc5f8f/magic/Magdir/msdos#L383
51
52
TODO: this series of tests is possibly too strict
53
54
55
return binary.has_resources and \
56
binary.resources_manager.has_manifest and \
- "Nullsoft" in binary.resources_manager.manifest
57
+ "Nullsoft " in binary.resources_manager.manifest
58
59
60
0 commit comments