virustotal icon indicating copy to clipboard operation
virustotal copied to clipboard

result.join fails if object unknown

Open bontchev opened this issue 8 years ago • 1 comments

If the scanned object (e.g., a hash) is not known to VirusTotal, result is set to None and result.join fails.

bontchev avatar Sep 06 '16 15:09 bontchev

@bontchev

Here's some lines from Python, where 'remotesha' = a SHA256 hash. It's a little workaround, but it works...

        remotesha = sha256.hexdigest()
        report = v.get(remotesha)
        if report is None:
            print bcolors.FAIL,'\n[!] Failed: SHA256 Hash does not exist on Virustotal!\n',bcolors.ENDC
            exit(0)

xakepnz avatar Jan 09 '18 03:01 xakepnz