Esempio n. 1
0
 def update_sbg(self):
     try:
         g = Google_Blacklist("malware")
         g.fetch_data()
         g = Google_Blacklist("black")
         g.fetch_data()
         print "Google SafeBrowsing Database- Update finished\n"
         self.config["p_logger"].info("umo module malwareScan - Google SafeBrowsing Database- Update finished")
     except:
         self.config["p_logger"].error('umo module malwareScan - Errors updating Malware and BlackList Google Safebrowsing Database')
Esempio n. 2
0
from safebrowsing.prepare_db import Google_Blacklist

# "malware" and "black" are valid options

g = Google_Blacklist("malware")
g.fetch_data()

g = Google_Blacklist("black")
g.fetch_data()