fosslight-binary 5.1.23__tar.gz → 5.1.24__tar.gz
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.
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/PKG-INFO +2 -2
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/pyproject.toml +2 -2
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/_help.py +6 -10
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/binary_analysis.py +8 -7
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/cli.py +1 -1
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary.egg-info/PKG-INFO +2 -2
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary.egg-info/requires.txt +1 -1
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/LICENSE +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/LICENSES/Apache-2.0.txt +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/LICENSES/LicenseRef-3rd_party_licenses.txt +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/MANIFEST.in +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/README.md +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/setup.cfg +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/__init__.py +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/_binary.py +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/_binary_dao.py +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/_jar_analysis.py +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/_simple_mode.py +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/LICENSE.txt +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/NOTICE.txt +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/README.md +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/bin/completion-for-dependency-check.sh +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/bin/dependency-check.bat +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/bin/dependency-check.sh +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/aho-corasick-double-array-trie-1.2.3.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/android-json-0.0.20131108.vaadin1.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/annotations-26.0.2-1.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/ant-1.10.15.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/bcpg-jdk18on-1.78.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/bcprov-jdk18on-1.78.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/commons-cli-1.10.0.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/commons-codec-1.19.0.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/commons-collections-3.2.2.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/commons-collections4-4.5.0.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/commons-compress-1.27.1.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/commons-dbcp2-2.13.0.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/commons-digester-2.1.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/commons-io-2.20.0.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/commons-jcs3-core-3.2.1.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/commons-lang3-3.19.0.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/commons-logging-1.3.4.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/commons-pool2-2.12.0.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/commons-text-1.14.0.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/commons-validator-1.10.0.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/compiler-0.9.6.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/cpe-parser-3.0.0.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/dependency-check-cli-12.1.7.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/dependency-check-core-12.1.7.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/dependency-check-utils-12.1.7.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/error_prone_annotations-2.41.0.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/failureaccess-1.0.3.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/gson-2.9.0.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/guava-33.5.0-jre.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/h2-2.3.232.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/httpclient5-5.5.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/httpclient5-cache-5.4.3.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/httpcore5-5.3.6.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/httpcore5-h2-5.3.4.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/j2objc-annotations-3.1.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/jackson-annotations-2.20.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/jackson-core-2.20.0.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/jackson-databind-2.20.0.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/jackson-dataformat-yaml-2.20.0.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/jackson-datatype-jsr310-2.20.0.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/jackson-module-blackbird-2.20.0.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/jakarta.json-2.0.1.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/jakarta.transaction-api-1.3.3.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/javax.activation-api-1.2.0.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/javax.inject-1.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/javax.ws.rs-api-2.0.1.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/jaxb-api-2.3.1.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/jcs3-slf4j-1.0.5.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/jdiagnostics-1.0.7.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/jmustache-1.16.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/joda-time-2.14.0.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/jsoup-1.21.2.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/jspecify-1.0.0.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/jsr305-3.0.2.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/jul-to-slf4j-1.7.36.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/logback-classic-1.2.13.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/logback-core-1.2.13.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/lucene-analysis-common-9.12.0.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/lucene-core-9.12.0.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/lucene-facet-9.12.0.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/lucene-queries-9.12.0.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/lucene-queryparser-9.12.0.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/lucene-sandbox-9.12.0.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/minlog-1.3.1.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/open-vulnerability-clients-7.3.2.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/ossindex-service-api-1.8.2.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/ossindex-service-client-1.8.2.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/package-url-java-1.2.0.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/packager-core-0.21.0.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/packager-rpm-0.21.0.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/packageurl-java-1.5.0.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/pecoff4j-0.0.2.1.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/retirejs-core-3.0.4.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/semver4j-5.8.0.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/slf4j-api-1.7.36.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/snakeyaml-2.4.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/spotbugs-annotations-4.9.6.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/toml4j-0.7.2.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/velocity-engine-core-2.4.1.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary/third_party/dependency-check/lib/xz-1.9.jar +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary.egg-info/SOURCES.txt +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary.egg-info/dependency_links.txt +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary.egg-info/entry_points.txt +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary.egg-info/top_level.txt +0 -0
- {fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/tests/test_fosslight_binary.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fosslight_binary
|
|
3
|
-
Version: 5.1.
|
|
3
|
+
Version: 5.1.24
|
|
4
4
|
Summary: FOSSLight Binary Scanner
|
|
5
5
|
Author: LG Electronics
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -18,7 +18,7 @@ Description-Content-Type: text/markdown
|
|
|
18
18
|
License-File: LICENSE
|
|
19
19
|
License-File: LICENSES/Apache-2.0.txt
|
|
20
20
|
License-File: LICENSES/LicenseRef-3rd_party_licenses.txt
|
|
21
|
-
Requires-Dist: binaryornot
|
|
21
|
+
Requires-Dist: binaryornot==0.4.4
|
|
22
22
|
Requires-Dist: chardet<5.0.0
|
|
23
23
|
Requires-Dist: numpy
|
|
24
24
|
Requires-Dist: pandas
|
|
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
|
|
|
7
7
|
|
|
8
8
|
[project]
|
|
9
9
|
name = "fosslight_binary"
|
|
10
|
-
version = "5.1.
|
|
10
|
+
version = "5.1.24"
|
|
11
11
|
description = "FOSSLight Binary Scanner"
|
|
12
12
|
readme = "README.md"
|
|
13
13
|
license = "Apache-2.0"
|
|
@@ -25,7 +25,7 @@ classifiers = [
|
|
|
25
25
|
]
|
|
26
26
|
requires-python = ">=3.10,<3.15"
|
|
27
27
|
dependencies = [
|
|
28
|
-
"binaryornot",
|
|
28
|
+
"binaryornot==0.4.4",
|
|
29
29
|
"chardet<5.0.0",
|
|
30
30
|
"numpy",
|
|
31
31
|
"pandas",
|
|
@@ -8,7 +8,7 @@ from fosslight_util.output_format import SUPPORT_FORMAT
|
|
|
8
8
|
_HELP_MESSAGE_BINARY = f"""
|
|
9
9
|
📖 Usage
|
|
10
10
|
────────────────────────────────────────────────────────────────────
|
|
11
|
-
|
|
11
|
+
fosslight_binary [options] <arguments>
|
|
12
12
|
|
|
13
13
|
📝 Description
|
|
14
14
|
────────────────────────────────────────────────────────────────────
|
|
@@ -26,13 +26,12 @@ _HELP_MESSAGE_BINARY = f"""
|
|
|
26
26
|
(multiple formats can be specified, separated by space)
|
|
27
27
|
-e <pattern> Exclude paths from analysis (files and directories)
|
|
28
28
|
⚠️ IMPORTANT: Always wrap in quotes to avoid shell expansion
|
|
29
|
-
Example:
|
|
29
|
+
Example: fosslight_binary -e "test/" "*.jar"
|
|
30
30
|
-h Show this help message
|
|
31
31
|
-v Show version information
|
|
32
32
|
|
|
33
33
|
🔍 Scanner-Specific Options
|
|
34
34
|
────────────────────────────────────────────────────────────────────
|
|
35
|
-
-s Extract only the binary list in simple mode
|
|
36
35
|
-d <db_url> DB Connection (format: 'postgresql://user:pass@host:port/db')
|
|
37
36
|
--notice Print the open source license notice text
|
|
38
37
|
--no_correction Skip OSS information correction with sbom-info.yaml
|
|
@@ -41,19 +40,16 @@ _HELP_MESSAGE_BINARY = f"""
|
|
|
41
40
|
💡 Examples
|
|
42
41
|
────────────────────────────────────────────────────────────────────
|
|
43
42
|
# Scan current directory
|
|
44
|
-
|
|
43
|
+
fosslight_binary
|
|
45
44
|
|
|
46
45
|
# Scan specific path with exclusions
|
|
47
|
-
|
|
46
|
+
fosslight_binary -p /path/to/binaries -e "test/" "*.so"
|
|
48
47
|
|
|
49
48
|
# Generate output in specific format
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
# Simple mode (extract binary list only)
|
|
53
|
-
fosslight_bin -s -o binary_list.txt
|
|
49
|
+
fosslight_binary -f excel -o results/
|
|
54
50
|
|
|
55
51
|
# Connect to Binary DB for OSS information
|
|
56
|
-
|
|
52
|
+
fosslight_binary -d "postgresql://user:pass@localhost:5432/exampledb"
|
|
57
53
|
"""
|
|
58
54
|
|
|
59
55
|
|
|
@@ -33,8 +33,7 @@ PKG_NAME = "fosslight_binary"
|
|
|
33
33
|
logger = logging.getLogger(constant.LOGGER_NAME)
|
|
34
34
|
|
|
35
35
|
_REMOVE_FILE_EXTENSION = ['json', 'js']
|
|
36
|
-
_REMOVE_FILE_COMMAND_RESULT = [
|
|
37
|
-
'data', 'timezone data', 'apple binary property list']
|
|
36
|
+
_REMOVE_FILE_COMMAND_RESULT = ['timezone data', 'apple binary property list']
|
|
38
37
|
INCLUDE_FILE_COMMAND_RESULT = ['current ar archive']
|
|
39
38
|
|
|
40
39
|
_error_logs = []
|
|
@@ -128,6 +127,8 @@ def init(path_to_find_bin, output_file_name, formats, path_to_exclude=[]):
|
|
|
128
127
|
logger, _result_log = init_log(log_file, True, logging.INFO, logging.DEBUG,
|
|
129
128
|
PKG_NAME, path_to_find_bin, path_to_exclude)
|
|
130
129
|
|
|
130
|
+
logger.info(f"Tool Info : {_result_log['Tool Info']}")
|
|
131
|
+
|
|
131
132
|
if not success:
|
|
132
133
|
error_occured(error_msg=msg,
|
|
133
134
|
result_log=_result_log,
|
|
@@ -308,10 +309,10 @@ def return_bin_only(file_list, need_checksum_tlsh=True):
|
|
|
308
309
|
if need_checksum_tlsh:
|
|
309
310
|
file_item.checksum, file_item.tlsh, error_msg = get_checksum_and_tlsh(file_item.bin_name_with_path)
|
|
310
311
|
if error_msg:
|
|
311
|
-
error_occured(
|
|
312
|
+
error_occured(error_msg=error_msg, exit=False)
|
|
312
313
|
yield file_item
|
|
313
314
|
except Exception as ex:
|
|
314
|
-
logger.debug(f"Exception in
|
|
315
|
+
logger.debug(f"Exception in check_binary: {ex}")
|
|
315
316
|
file_item.comment = "Exclude or delete if it is not binary."
|
|
316
317
|
yield file_item
|
|
317
318
|
|
|
@@ -320,7 +321,7 @@ def check_binary(file_with_path, skip_remove_file_command_result: bool = False):
|
|
|
320
321
|
"""
|
|
321
322
|
:param file_with_path: Path to the file to classify.
|
|
322
323
|
:param skip_remove_file_command_result: If True, do not treat
|
|
323
|
-
_REMOVE_FILE_COMMAND_RESULT magic prefixes
|
|
324
|
+
_REMOVE_FILE_COMMAND_RESULT magic prefixes as non-binary.
|
|
324
325
|
"""
|
|
325
326
|
is_bin_confirmed = False
|
|
326
327
|
file = os.path.basename(file_with_path)
|
|
@@ -336,7 +337,7 @@ def check_binary(file_with_path, skip_remove_file_command_result: bool = False):
|
|
|
336
337
|
file_command_failed = True
|
|
337
338
|
if file_command_failed:
|
|
338
339
|
try:
|
|
339
|
-
file_command_result = magic.from_buffer(open(file_with_path).read(BYTES))
|
|
340
|
+
file_command_result = magic.from_buffer(open(file_with_path, 'rb').read(BYTES))
|
|
340
341
|
except Exception as ex:
|
|
341
342
|
logger.debug(f"Failed to check file type:{file_with_path}, {ex}")
|
|
342
343
|
|
|
@@ -429,6 +430,6 @@ def print_result_log(mode="Normal Mode", success=True, result_log={}, file_cnt="
|
|
|
429
430
|
result_log["Binary list"] = bin_list
|
|
430
431
|
try:
|
|
431
432
|
_str_final_result_log = yaml.safe_dump(result_log, allow_unicode=True, sort_keys=True)
|
|
432
|
-
logger.info(_str_final_result_log)
|
|
433
|
+
logger.info(_str_final_result_log.strip())
|
|
433
434
|
except Exception as ex:
|
|
434
435
|
logger.warning(f"Error to print final log: {ex}")
|
|
@@ -43,7 +43,7 @@ def main():
|
|
|
43
43
|
parser = argparse.ArgumentParser(add_help=False)
|
|
44
44
|
parser.add_argument('-h', '--help', action='store_true', required=False)
|
|
45
45
|
parser.add_argument('-v', '--version', action='store_true', required=False)
|
|
46
|
-
parser.add_argument('-s', '--simple', action='store_true', required=False)
|
|
46
|
+
parser.add_argument('-s', '--simple', action='store_true', required=False, help=argparse.SUPPRESS)
|
|
47
47
|
parser.add_argument('-p', '--path', type=str, required=False)
|
|
48
48
|
parser.add_argument('-o', '--output', type=str, required=False)
|
|
49
49
|
parser.add_argument('-d', '--dburl', type=str, default='', required=False)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fosslight_binary
|
|
3
|
-
Version: 5.1.
|
|
3
|
+
Version: 5.1.24
|
|
4
4
|
Summary: FOSSLight Binary Scanner
|
|
5
5
|
Author: LG Electronics
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -18,7 +18,7 @@ Description-Content-Type: text/markdown
|
|
|
18
18
|
License-File: LICENSE
|
|
19
19
|
License-File: LICENSES/Apache-2.0.txt
|
|
20
20
|
License-File: LICENSES/LicenseRef-3rd_party_licenses.txt
|
|
21
|
-
Requires-Dist: binaryornot
|
|
21
|
+
Requires-Dist: binaryornot==0.4.4
|
|
22
22
|
Requires-Dist: chardet<5.0.0
|
|
23
23
|
Requires-Dist: numpy
|
|
24
24
|
Requires-Dist: pandas
|
|
File without changes
|
|
File without changes
|
{fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/LICENSES/LicenseRef-3rd_party_licenses.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{fosslight_binary-5.1.23 → fosslight_binary-5.1.24}/src/fosslight_binary.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|