这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@jstucke
Copy link
Collaborator

@jstucke jstucke commented Aug 23, 2018

No description provided.

@jstucke jstucke requested a review from weidenba August 23, 2018 15:09
@codecov-io
Copy link

codecov-io commented Aug 23, 2018

Codecov Report

Merging #157 into master will increase coverage by <.01%.
The diff coverage is 87.62%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #157      +/-   ##
==========================================
+ Coverage   95.75%   95.76%   +<.01%     
==========================================
  Files         307      307              
  Lines       15115    15115              
==========================================
+ Hits        14474    14475       +1     
+ Misses        641      640       -1
Impacted Files Coverage Δ
src/helperFunctions/compare_sets.py 98.24% <ø> (ø) ⬆️
src/helperFunctions/config.py 97.67% <ø> (ø) ⬆️
...alysis/ip_and_uri_finder/code/ip_and_uri_finder.py 94.54% <100%> (ø) ⬆️
...ins/analysis/string_evaluation/code/string_eval.py 100% <100%> (ø) ⬆️
src/plugins/analysis/oms/code/oms.py 58.33% <100%> (ø) ⬆️
...tection/test/test_plugin_architecture_detection.py 100% <100%> (ø) ⬆️
...users_and_passwords/code/password_file_analyzer.py 94.33% <100%> (ø) ⬆️
src/intercom/back_end_binding.py 99.23% <100%> (ø) ⬆️
src/plugins/analysis/binwalk/code/binwalk.py 100% <100%> (ø) ⬆️
src/test/unit/scheduler/test_analysis.py 100% <100%> (ø) ⬆️
... and 33 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2900dc6...de30238. Read the comment docs.

<ul>
<li>Added software components statistics</li>
<li>Added REST endpoint for binary search (YARA)</li>
<li>Added unified mime-type-based analysis blacklist feature</li>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about the white lists

{% if firmware.processed_analysis[selected_analysis]['skipped'] %}
<tr>
<td class="warning">Analysis was skipped</td>
<td class="active">Reason: {{ firmware.processed_analysis[selected_analysis]['skipped'] }}</td>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove "Reason:"

return blacklist, whitelist

def _get_blacklist_and_whitelist_from_config(self, analysis_plugin: str) -> Tuple[List, List]:
blacklist = self.config.get(analysis_plugin, 'mime_blacklist', fallback='').split(', ')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be a helper function parsing the list
"a,b" should be as valid as "a, b"

@jstucke jstucke merged commit cc8c133 into master Aug 24, 2018
weidenba pushed a commit that referenced this pull request Oct 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants