2008-10-15 19:38:22 +04:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
"""
|
2008-10-15 19:56:32 +04:00
|
|
|
$Id$
|
2008-10-15 19:38:22 +04:00
|
|
|
|
2010-10-14 18:41:14 +04:00
|
|
|
Copyright (c) 2006-2010 sqlmap developers (http://sqlmap.sourceforge.net/)
|
|
|
|
See the file doc/COPYING for copying permission.
|
2008-10-15 19:38:22 +04:00
|
|
|
"""
|
|
|
|
|
|
|
|
from lib.core.exception import sqlmapUndefinedMethod
|
|
|
|
|
|
|
|
class Fingerprint:
|
|
|
|
"""
|
|
|
|
This class defines generic fingerprint functionalities for plugins.
|
|
|
|
"""
|
|
|
|
|
2010-03-23 01:57:57 +03:00
|
|
|
def __init__(self):
|
|
|
|
pass
|
2008-10-15 19:38:22 +04:00
|
|
|
|
|
|
|
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
|
2010-03-18 20:20:54 +03:00
|
|
|
|
2010-03-23 01:57:57 +03:00
|
|
|
def checkDbmsOs(self, detailed=False):
|
|
|
|
errMsg = "'checkDbmsOs' method must be defined "
|
|
|
|
errMsg += "into the specific DBMS plugin"
|
|
|
|
raise sqlmapUndefinedMethod, errMsg
|
|
|
|
|
2010-03-18 20:20:54 +03:00
|
|
|
def forceDbmsEnum(self):
|
|
|
|
pass
|