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

Blank "First Seen" causes a KeyError? #12

Open
TonyLeeVT opened this issue Jun 11, 2019 · 0 comments
Open

Blank "First Seen" causes a KeyError? #12

TonyLeeVT opened this issue Jun 11, 2019 · 0 comments

Comments

@TonyLeeVT
Copy link

Hello, I am running Python 2.7.12 and get the following error. I believe it is caused by a blank "First Seen" field?

python --version
Python 2.7.12
python ./vt.py <some_hash> -s

	Detected by:  0 / 58 
	Sophos Detection: None 
	Kaspersky Detection: None 
	TrendMicro Detection: None 
	Scanned on: 2019-06-07 02:07:31 
	First Seen:
Traceback (most recent call last):
  File "./vt.py", line 128, in <module>
    main()
  File "./vt.py", line 117, in main
    parse(vt.getReport(md5), md5 ,options.verbose, options.jsondump)
  File "./vt.py", line 87, in parse
    print "\n\tResults for MD5: ",it['md5'],"\n\n\tDetected by: ",it['positives'],'/',it['total'],'\n\tSophos Detection:',it['scans']['Sophos']['result'] ,'\n\tKaspersky Detection:',it['scans']['Kaspersky']['result'], '\n\tTrendMicro Detection:',it['scans']['TrendMicro']['result'],'\n\tScanned on:',it['scan_date'],'\n\tFirst Seen:',it['first_seen'],'\n\tLast Seen:',it['last_seen'],'\n\tUnique Sources',it['unique_sources'],'\n\tSubmission Names:'
KeyError: 'first_seen'
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

1 participant