# Path: ovizart/modules/md5/handler.py
# class Handler:
#     def __init__(self):
#         self._file_name = None
# 
#     def set_file(self, file_name):
#         self._file_name = file_name
# 
#     def get_hash(self, file_name):
#         self._file_name = file_name
#         md5 = hashlib.md5()
#         with open(self._file_name, 'rb') as f:
#             for chunk in iter(lambda: f.read(8192), b''):
#                 md5.update(chunk)
#         return md5.hexdigest()


import simplejson
import urllib
import urllib2
import os
from ovizart.modules.malware.virustotal import postfile
from ovizart.modules.md5.handler import Handler as MD5Handler
#!/usr/bin/env python
#-*- coding: UTF-8 -*-



RESCAN_URL = "https://www.virustotal.com/vtapi/v2/file/rescan"
API_KEY = "891c2810d3931fac5af1a2861ac9db18e508a972bb1eaa03d0b43428938d4b93"
HOST = "www.virustotal.com"
SCAN_URL = "https://www.virustotal.com/vtapi/v2/file/scan"
REPORT_URL = "https://www.virustotal.com/vtapi/v2/file/report"

class Handler:

    def __init__(self):

# Path: ovizart/modules/md5/handler.py
# class Handler:
#     def __init__(self):
#         self._file_name = None
# 
#     def set_file(self, file_name):
#         self._file_name = file_name
# 
#     def get_hash(self, file_name):
#         self._file_name = file_name
#         md5 = hashlib.md5()
#         with open(self._file_name, 'rb') as f:
#             for chunk in iter(lambda: f.read(8192), b''):
#                 md5.update(chunk)
#         return md5.hexdigest()


# Path: ovizart/modules/malware/virustotal/handler.py
import simplejson
import urllib
import urllib2
import os
from ovizart.modules.malware.virustotal import postfile
from ovizart.modules.md5.handler import Handler as MD5Handler

#!/usr/bin/env python
#-*- coding: UTF-8 -*-



RESCAN_URL = "https://www.virustotal.com/vtapi/v2/file/rescan"
API_KEY = "891c2810d3931fac5af1a2861ac9db18e508a972bb1eaa03d0b43428938d4b93"
HOST = "www.virustotal.com"
SCAN_URL = "https://www.virustotal.com/vtapi/v2/file/scan"
REPORT_URL = "https://www.virustotal.com/vtapi/v2/file/report"

class Handler:

    def __init__(self):

        self.md5_handler = MD5Handler()