fosslight-binary 4.1.26__tar.gz → 4.1.28__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.
Files changed (22) hide show
  1. {fosslight_binary-4.1.26 → fosslight_binary-4.1.28}/PKG-INFO +1 -1
  2. {fosslight_binary-4.1.26 → fosslight_binary-4.1.28}/requirements.txt +1 -1
  3. {fosslight_binary-4.1.26 → fosslight_binary-4.1.28}/setup.py +1 -1
  4. {fosslight_binary-4.1.26 → fosslight_binary-4.1.28}/src/fosslight_binary/binary_analysis.py +13 -3
  5. {fosslight_binary-4.1.26 → fosslight_binary-4.1.28}/src/fosslight_binary.egg-info/PKG-INFO +1 -1
  6. {fosslight_binary-4.1.26 → fosslight_binary-4.1.28}/src/fosslight_binary.egg-info/requires.txt +1 -1
  7. {fosslight_binary-4.1.26 → fosslight_binary-4.1.28}/LICENSE +0 -0
  8. {fosslight_binary-4.1.26 → fosslight_binary-4.1.28}/LICENSES/Apache-2.0.txt +0 -0
  9. {fosslight_binary-4.1.26 → fosslight_binary-4.1.28}/LICENSES/LicenseRef-3rd_party_licenses.txt +0 -0
  10. {fosslight_binary-4.1.26 → fosslight_binary-4.1.28}/MANIFEST.in +0 -0
  11. {fosslight_binary-4.1.26 → fosslight_binary-4.1.28}/README.md +0 -0
  12. {fosslight_binary-4.1.26 → fosslight_binary-4.1.28}/setup.cfg +0 -0
  13. {fosslight_binary-4.1.26 → fosslight_binary-4.1.28}/src/fosslight_binary/__init__.py +0 -0
  14. {fosslight_binary-4.1.26 → fosslight_binary-4.1.28}/src/fosslight_binary/_binary.py +0 -0
  15. {fosslight_binary-4.1.26 → fosslight_binary-4.1.28}/src/fosslight_binary/_binary_dao.py +0 -0
  16. {fosslight_binary-4.1.26 → fosslight_binary-4.1.28}/src/fosslight_binary/_help.py +0 -0
  17. {fosslight_binary-4.1.26 → fosslight_binary-4.1.28}/src/fosslight_binary/_jar_analysis.py +0 -0
  18. {fosslight_binary-4.1.26 → fosslight_binary-4.1.28}/src/fosslight_binary/cli.py +0 -0
  19. {fosslight_binary-4.1.26 → fosslight_binary-4.1.28}/src/fosslight_binary.egg-info/SOURCES.txt +0 -0
  20. {fosslight_binary-4.1.26 → fosslight_binary-4.1.28}/src/fosslight_binary.egg-info/dependency_links.txt +0 -0
  21. {fosslight_binary-4.1.26 → fosslight_binary-4.1.28}/src/fosslight_binary.egg-info/entry_points.txt +0 -0
  22. {fosslight_binary-4.1.26 → fosslight_binary-4.1.28}/src/fosslight_binary.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fosslight_binary
3
- Version: 4.1.26
3
+ Version: 4.1.28
4
4
  Summary: FOSSLight Binary Scanner
5
5
  Home-page: https://github.com/fosslight/fosslight_binary_scanner
6
6
  Author: LG Electronics
@@ -8,5 +8,5 @@ py-tlsh
8
8
  pytz
9
9
  XlsxWriter
10
10
  PyYAML
11
- fosslight_util>=1.4.37
11
+ fosslight_util>=1.4.40
12
12
  dependency-check
@@ -33,7 +33,7 @@ if __name__ == "__main__":
33
33
 
34
34
  setup(
35
35
  name=_PACKAEG_NAME,
36
- version='4.1.26',
36
+ version='4.1.28',
37
37
  package_dir={"": "src"},
38
38
  packages=find_packages(where='src'),
39
39
  description='FOSSLight Binary Scanner',
@@ -19,6 +19,7 @@ from ._binary_dao import get_oss_info_from_db
19
19
  from ._binary import BinaryItem
20
20
  from ._jar_analysis import analyze_jar_file, merge_binary_list
21
21
  from fosslight_util.correct import correct_with_yaml
22
+ from fosslight_util.cover import CoverItem
22
23
 
23
24
  _PKG_NAME = "fosslight_binary"
24
25
  logger = logging.getLogger(constant.LOGGER_NAME)
@@ -43,7 +44,7 @@ BYTES = 2048
43
44
  JAR_VUL_HEADER = {'BIN_FL_Binary': ['ID', 'Source Name or Path', 'OSS Name',
44
45
  'OSS Version', 'License', 'Download Location',
45
46
  'Homepage', 'Copyright Text', 'Exclude',
46
- 'Comment', 'Vulnerability Link', 'TLSH', 'Checksum']}
47
+ 'Comment', 'Vulnerability Link', 'TLSH', 'SHA1']}
47
48
 
48
49
 
49
50
  def init(path_to_find_bin, output_file_name, format):
@@ -138,7 +139,7 @@ def find_binaries(path_to_find_bin, output_dir, format, dburl="", simple_mode=Fa
138
139
  success_to_write = False
139
140
  writing_msg = ""
140
141
  extended_header = {}
141
- hide_header = {'TLSH', "Checksum"}
142
+ hide_header = {'TLSH', "SHA1"}
142
143
  content_list = []
143
144
  result_file = ""
144
145
  bin_list = []
@@ -160,6 +161,9 @@ def find_binaries(path_to_find_bin, output_dir, format, dburl="", simple_mode=Fa
160
161
  if simple_mode:
161
162
  bin_list = [bin.bin_name for bin in return_list]
162
163
  else:
164
+ cover = CoverItem(tool_name=_PKG_NAME,
165
+ start_time=_start_time,
166
+ input_path=path_to_find_bin)
163
167
  try:
164
168
  # Run OWASP Dependency-check
165
169
  if found_jar:
@@ -195,8 +199,12 @@ def find_binaries(path_to_find_bin, output_dir, format, dburl="", simple_mode=Fa
195
199
  else:
196
200
  sheet_list = correct_list
197
201
  logger.info("Success to correct with yaml.")
202
+ cover.comment = f"Total number of binaries: {total_bin_cnt} "
203
+ if total_bin_cnt == 0:
204
+ cover.comment += "(No binaries detected.) "
205
+ cover.comment += f"/ Total number of files: {total_file_cnt}"
198
206
  success_to_write, writing_msg, result_file = write_output_file(result_report, output_extension, sheet_list,
199
- extended_header, hide_header)
207
+ extended_header, hide_header, cover)
200
208
  except Exception as ex:
201
209
  error_occured(error_msg=str(ex), exit=False)
202
210
 
@@ -205,6 +213,8 @@ def find_binaries(path_to_find_bin, output_dir, format, dburl="", simple_mode=Fa
205
213
  logger.info(f"Output file :{result_file}")
206
214
  else:
207
215
  logger.warning(f"{writing_msg}")
216
+ if cover.comment:
217
+ logger.info(cover.comment)
208
218
  else:
209
219
  logger.error(f"Fail to generate result file.:{writing_msg}")
210
220
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fosslight-binary
3
- Version: 4.1.26
3
+ Version: 4.1.28
4
4
  Summary: FOSSLight Binary Scanner
5
5
  Home-page: https://github.com/fosslight/fosslight_binary_scanner
6
6
  Author: LG Electronics
@@ -8,7 +8,7 @@ py-tlsh
8
8
  pytz
9
9
  XlsxWriter
10
10
  PyYAML
11
- fosslight_util>=1.4.37
11
+ fosslight_util>=1.4.40
12
12
  dependency-check
13
13
 
14
14
  [:"darwin" in sys_platform]