Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

result.join fails if object unknown #9

Open
bontchev opened this issue Sep 6, 2016 · 1 comment
Open

result.join fails if object unknown #9

bontchev opened this issue Sep 6, 2016 · 1 comment

Comments

@bontchev
Copy link

bontchev commented Sep 6, 2016

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

@xakepnz
Copy link

xakepnz commented Jan 9, 2018

@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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants