alexandreborges / malwoverview

Malwoverview is a first response tool used for threat hunting and offers intel information from Virus Total, Hybrid Analysis, URLHaus, Polyswarm, Malshare, Alien Vault, Malpedia, Malware Bazaar, ThreatFox, Triage, InQuest and it is able to scan Android devices against VT.
https://github.com/alexandreborges/malwoverview
GNU General Public License v3.0
2.85k stars 439 forks source link

Three undefined names in Python code #10

Closed cclauss closed 3 years ago

cclauss commented 3 years ago

flake8 testing of https://github.com/alexandreborges/malwoverview on Python 3.8.3

$ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics

./malwoverview/malwoverview.py:1664:28: F821 undefined name 'polywarm'
                artifact = polywarm.download(DOWN_DIR, sha256)
                           ^
./malwoverview/malwoverview.py:5603:58: F821 undefined name 'package'
            print((mycolors.foreground.green + "%-08s" % package), end=' ')
                                                         ^
./malwoverview/malwoverview.py:6430:9: F821 undefined name 'alien_urls'
        alien_urls(urlalien,argx)
        ^
3     F821 undefined name 'polywarm'
3

https://flake8.pycqa.org/en/latest/user/error-codes.html

On the flake8 test selection, this PR does not focus on "style violations" (the majority of flake8 error codes that psf/black can autocorrect). Instead, these tests are focus on runtime safety and correctness:

alexandreborges commented 3 years ago

Christian,

Good evening. How are you?

Thank you for all suggested fixes (code and typos).

As I'd already submitted some small fixes to the repository before reading your message, so I've preferred including all of your suggestions manually and I've closed two PRs, but kept the third one open.

I liked your suggestion about the os.sep, but I need to make some tests before accepting it.

Finally, I've included your name as responsible for fixes of these version in the history changes. After validating the code change, so I'll include you as a contributor.

Thank you for your time and suggestions, Christian.

Have an excellent day.

Alexandre.