Ejemplo n.º 1
0
    def refresh_cache_and_update_db(self):
        self.LOGGER.info("Updating CVE data. This will take a few minutes.")
        # refresh the nvd cache
        run_coroutine(self.refresh())

        # if the database isn't open, open it
        self.init_database()
        self.populate_db()
Ejemplo n.º 2
0
 def parse(self):
     return run_coroutine(self.aio_parse())
Ejemplo n.º 3
0
def is_binary(filename):
    return run_coroutine(aio_is_binary(filename))
Ejemplo n.º 4
0
 def extract(self, filename):
     return run_coroutine(self.aio_extract(filename))