AlienVault-OTX / OTX-Python-SDK

The Python SDK for AlienVault OTX
Other
358 stars 162 forks source link

is_malicious.py "ResourceWarning" #71

Open maaaaz opened 1 year ago

maaaaz commented 1 year ago

Hello there,

I would like to report a Python warning:

$ python3 -Wall is_malicious.py -file /etc/passwd
/home/test/is_malicious.py:63: ResourceWarning: unclosed file <_io.BufferedReader name='/etc/passwd'>
  hash = hashlib.md5(open(args['file'], 'rb').read()).hexdigest()
ResourceWarning: Enable tracemalloc to get the object allocation traceback
Unknown or not identified as malicious

Cheers!