initzerCreations / virustotal_malware_analysis

Simple script that analyze PE files using the virus total API
2 stars 1 forks source link

AttributeError: module 'vt' has no attribute 'Client' #1

Open 1uc4X opened 2 years ago

1uc4X commented 2 years ago

Hi, I really don't know why this error occurs, if you could help me please

Windows: python3 malware_identifier.py files Traceback (most recent call last): File "C:\Users\X\Documents\virustotal_malware_analysis-main\malware_identifier.py", line 11, in <module> client = vt.Client("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx") AttributeError: module 'vt' has no attribute 'Client'

Linux python3 malware_identifier.py files Traceback (most recent call last): File "/home/x/tools/virustotal_malware_analysis/malware_identifier.py", line 11, in <module> client = vt.Client("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx") AttributeError: module 'vt' has no attribute 'Client'

initzerCreations commented 2 years ago

Hello, there is a similar error reported related with the vt module.

Maybe you find this solution helpful: https://github.com/VirusTotal/vt-py/issues/14

1uc4X commented 2 years ago

i unistall vt and reinstall vt-py then occurs this:

C:\Users\X\Documents\virustotal_malware_analysis-main>python3 malware_identifier.py files Traceback (most recent call last): File "C:\Users\X\Documents\virustotal_malware_analysis-main\malware_identifier.py", line 61, in <module> pe = pefile.PE(item) File "C:\Users\X\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\pefile.py", line 2743, in __init__ self.__parse__(name, data, fast_load) File "C:\Users\X\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\pefile.py", line 2851, in __parse__ raise PEFormatError("DOS Header magic not found.") pefile.PEFormatError: 'DOS Header magic not found.'

really dont know whats wrong...