mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 02:53:46 +03:00
38 lines
1015 B
Python
38 lines
1015 B
Python
#!/usr/bin/env python
|
|
|
|
"""
|
|
$Id$
|
|
|
|
Copyright (c) 2006-2010 sqlmap developers (http://sqlmap.sourceforge.net/)
|
|
See the file 'doc/COPYING' for copying permission
|
|
"""
|
|
|
|
from lib.core.data import kb
|
|
from lib.core.exception import sqlmapUndefinedMethod
|
|
|
|
class Fingerprint:
|
|
"""
|
|
This class defines generic fingerprint functionalities for plugins.
|
|
"""
|
|
|
|
def __init__(self, dbms):
|
|
kb.misc.fpDbms = dbms
|
|
|
|
def getFingerprint(self):
|
|
errMsg = "'getFingerprint' method must be defined "
|
|
errMsg += "into the specific DBMS plugin"
|
|
raise sqlmapUndefinedMethod, errMsg
|
|
|
|
def checkDbms(self):
|
|
errMsg = "'checkDbms' method must be defined "
|
|
errMsg += "into the specific DBMS plugin"
|
|
raise sqlmapUndefinedMethod, errMsg
|
|
|
|
def checkDbmsOs(self, detailed=False):
|
|
errMsg = "'checkDbmsOs' method must be defined "
|
|
errMsg += "into the specific DBMS plugin"
|
|
raise sqlmapUndefinedMethod, errMsg
|
|
|
|
def forceDbmsEnum(self):
|
|
pass
|