diff --git a/Info.plist b/Info.plist index 4ee5063..9659005 100644 --- a/Info.plist +++ b/Info.plist @@ -9,6 +9,6 @@ CFBundleName blint CFBundleVersion - 2.2.2 + 2.2.3 diff --git a/blint/binary.py b/blint/binary.py index 20c64a0..b841452 100644 --- a/blint/binary.py +++ b/blint/binary.py @@ -912,8 +912,6 @@ def add_elf_dynamic_entries(dynamic_entries, metadata): if entry.tag in [ lief.ELF.DynamicEntry.TAG.SONAME, lief.ELF.DynamicEntry.TAG.NEEDED, - lief.ELF.DynamicEntry.TAG.RUNPATH, - lief.ELF.DynamicEntry.TAG.RPATH, ]: metadata["dynamic_entries"].append( { @@ -922,9 +920,28 @@ def add_elf_dynamic_entries(dynamic_entries, metadata): "value": entry.value, } ) - # Detect dotnet binary if "netcoredeps" in entry.name: metadata["exe_type"] = "dotnetbinary" + if entry.tag in [ + lief.ELF.DynamicEntry.TAG.RUNPATH, + ]: + metadata["dynamic_entries"].append( + { + "name": "runpath", + "tag": str(entry.tag).rsplit(".", maxsplit=1)[-1], + "value": entry.runpath, + } + ) + if entry.tag in [ + lief.ELF.DynamicEntry.TAG.RPATH, + ]: + metadata["dynamic_entries"].append( + { + "name": "rpath", + "tag": str(entry.tag).rsplit(".", maxsplit=1)[-1], + "value": entry.rpath, + } + ) return metadata diff --git a/file_version_info.txt b/file_version_info.txt index c1f458a..01530fb 100644 --- a/file_version_info.txt +++ b/file_version_info.txt @@ -32,12 +32,12 @@ VSVersionInfo( u'040904B0', [StringStruct(u'CompanyName', u'OWASP Foundation'), StringStruct(u'FileDescription', u'blint - The Binary Linter'), - StringStruct(u'FileVersion', u'2.2.2.0'), + StringStruct(u'FileVersion', u'2.2.3.0'), StringStruct(u'InternalName', u'blint'), StringStruct(u'LegalCopyright', u'© OWASP Foundation. All rights reserved.'), StringStruct(u'OriginalFilename', u'blint.exe'), StringStruct(u'ProductName', u'blint'), - StringStruct(u'ProductVersion', u'2.2.2.0')]) + StringStruct(u'ProductVersion', u'2.2.3.0')]) ]), VarFileInfo([VarStruct(u'Translation', [1033, 1200])]) ] diff --git a/pyproject.toml b/pyproject.toml index 8fb24ba..f54f9c6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "blint" -version = "2.2.2" +version = "2.2.3" description = "Linter and SBOM generator for binary files." authors = ["Prabhu Subramanian ", "Caroline Russell "] license = "MIT"