# This is to delete the pinning database each day to avoid that an evil # site perform MITM attacks over our connections That's why because in our # code we save the pinning each time that we visite a site. But if this # site is evil we are saving bad pinning so we have to delete the database # to ensure that evil site has been deleted. You can change the seconds # in the configuration file #scheduler.add_job(drop, 'interval', seconds=config.DB_TIME_REMOVE) #scheduler.start() # configure logger with open(os.path.expanduser(config.LOG_FILE)) as log: config_log = json.load(log) logging.config.dictConfig(config_log) # Configure type of notifications if sys.platform == "darwin": from notification.notification_osx import NotificationOSX MITMNotification.register(NotificationOSX()) print '[+] Downloading SSL blacklist' proc = Process(target=init_ssl_blacklist, args=()) proc.start() print '[+] Sniffing' s = Sniff() s.sniff()