Closed rmenessec closed 8 years ago
OpenSSL.SSL.SysCallError: (32, 'EPIPE')
<- is not vt script problem, probably pyOpensslCan't resolv hostname, check your internet conection
, it can't connect to vtThere's no problem with my Internet connection.
I'm sorry, I should have been clearer: I have one file that is failing repeatably on every machine I have with vt installed. For some reason, it's manifesting as two different errors. The host resolution error appears to be bogus.
Can you suggest a reason that host resolution would be working normally, with no Internet connection problems at all, and vt would always fail when attempting to scan one given file?
nop is a very strange error, can you share file to test?
I can't.
I did find the reason vt was failing differently, though: on one of the test machines, the pyOpenSSL system package was being overridden by a locally installed copy. After removing it, the file is causing vt to fail with the same error in all cases, on all machines.
[!] Can't resolv hostname, check your internet conection
Traceback (most recent call last):
File "/usr/local/bin/vt", line 9, in <module>
load_entry_point('vt==2.2.3', 'console_scripts', 'vt')()
File "/usr/local/lib/python2.7/dist-packages/vt/vt.py", line 3038, in main
vt.fileScan(**options)
File "/usr/local/lib/python2.7/dist-packages/vt/vt.py", line 1640, in fileScan
self.simple_print(jdata, simple_list)
File "/usr/local/lib/python2.7/dist-packages/vt/vt.py", line 82, in simple_print
if block.get(key) and block[key]:
AttributeError: 'str' object has no attribute 'get'
your error
except requests.exceptions.ConnectionError:
print '\n[!] Can\'t resolv hostname, check your internet conection\n'
return '', ''
i will add post check to not show the AttributeError
, but without sample i can't help you sorry
https://github.com/doomedraven/VirusTotalApi/commit/3ed9141263827881d66b7a8a37f3793e12566558 this commit wont trigger anymore AttribeError
Unfortunately, I can't provide a sample of the file that's failing. I can only provide Python output. Test environment is Ubuntu 16.04.
On one machine, output is:
On another 16.04 machine, the output is:
Both machines are able to process other files normally.