同步操作将从 yeqingchen1/sqlmap 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/usr/bin/env python"""Copyright (c) 2006-2019 sqlmap developers (http://sqlmap.org/)See the file 'LICENSE' for copying permission"""import osfrom lib.core.data import conffrom lib.core.data import loggerfrom lib.core.exception import SqlmapFilePathExceptionfrom lib.core.exception import SqlmapUndefinedMethodclass Connector(object):"""This class defines generic dbms protocol functionalities for plugins."""def __init__(self):self.connector = Noneself.cursor = Noneself.hostname = Nonedef initConnection(self):self.user = conf.dbmsUser or ""self.password = conf.dbmsPass or ""self.hostname = conf.hostnameself.port = conf.portself.db = conf.dbmsDbdef printConnected(self):if self.hostname and self.port:infoMsg = "connection to %s server '%s:%d' established" % (conf.dbms, self.hostname, self.port)logger.info(infoMsg)def closed(self):if self.hostname and self.port:infoMsg = "connection to %s server '%s:%d' closed" % (conf.dbms, self.hostname, self.port)logger.info(infoMsg)self.connector = Noneself.cursor = Nonedef initCursor(self):self.cursor = self.connector.cursor()def close(self):try:if self.cursor:self.cursor.close()if self.connector:self.connector.close()except Exception as ex:logger.debug(ex)finally:self.closed()def checkFileDb(self):if not os.path.exists(self.db):errMsg = "the provided database file '%s' does not exist" % self.dbraise SqlmapFilePathException(errMsg)def connect(self):errMsg = "'connect' method must be defined "errMsg += "into the specific DBMS plugin"raise SqlmapUndefinedMethod(errMsg)def fetchall(self):errMsg = "'fetchall' method must be defined "errMsg += "into the specific DBMS plugin"raise SqlmapUndefinedMethod(errMsg)def execute(self, query):errMsg = "'execute' method must be defined "errMsg += "into the specific DBMS plugin"raise SqlmapUndefinedMethod(errMsg)def select(self, query):errMsg = "'select' method must be defined "errMsg += "into the specific DBMS plugin"raise SqlmapUndefinedMethod(errMsg)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。