DBProtocol.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:FRAPL 作者: FriedAppleTeam 项目源码 文件源码
def showOpenDB(self):
        filePath = AskFile(0, "*.db", "Open DB")
        if filePath is None:
            return

        connect = sqlite3.connect(filePath)
        cursor = connect.cursor()
        cursor.execute('SELECT db_id FROM frl_desc')
        db_id = cursor.fetchone()[0]

        if db_id is None:
            fl_log("FridaLink: DB ID in [%s] is None\n" % filePath)
            return

        if db_id in self.dbList:
            dlg = AskYN(0, "DB ID (%s) from [%s] aleady exists\nReload DB?" % (db_id, filePath))
            if dlg != 1:
                return

        self.dbList[db_id] = DBEntry(db_id, connect)
        fl_log("FridaLink: DB loaded [ %s | %s ]\n" % (db_id, filePath))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号