Пример #1
0
    def __loaddb(self, dbpath):
        if not dbpath.endswith('.db'):
            dbpath = dbpath+'.db'
        if not os.path.exists(dbpath):
            raise RopperError('db does not exist: '+dbpath)

        dao = GadgetDAO(dbpath, self.__cprinter)

        self.binary.gadgets = dao.load(self.binary)
        self.binary.loaded = True
Пример #2
0
    def __loaddb(self, dbpath):
        if not dbpath.endswith('.db'):
            dbpath = dbpath + '.db'
        if not os.path.exists(dbpath):
            raise RopperError('db does not exist: ' + dbpath)

        dao = GadgetDAO(dbpath, self.__cprinter)

        self.binary.gadgets = dao.load(self.binary)
        self.binary.loaded = True