Skip to content

Commit 257fa3e

Browse files
committed
Minor refactoring
1 parent f8e9f9c commit 257fa3e

File tree

14 files changed

+19
-19
lines changed

14 files changed

+19
-19
lines changed

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.3.5.155"
21+
VERSION = "1.3.5.156"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

plugins/dbms/access/enumeration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def getCurrentDb(self):
2323
warnMsg = "on Microsoft Access it is not possible to get name of the current database"
2424
logger.warn(warnMsg)
2525

26-
def isDba(self):
26+
def isDba(self, *args, **kwargs):
2727
warnMsg = "on Microsoft Access it is not possible to test if current user is DBA"
2828
logger.warn(warnMsg)
2929

@@ -39,7 +39,7 @@ def getPasswordHashes(self):
3939

4040
return {}
4141

42-
def getPrivileges(self, *args):
42+
def getPrivileges(self, *args, **kwargs):
4343
warnMsg = "on Microsoft Access it is not possible to enumerate the user privileges"
4444
logger.warn(warnMsg)
4545

plugins/dbms/h2/enumeration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def getBanner(self):
2929

3030
return kb.data.banner
3131

32-
def getPrivileges(self, *args):
32+
def getPrivileges(self, *args, **kwargs):
3333
warnMsg = "on H2 it is not possible to enumerate the user privileges"
3434
logger.warn(warnMsg)
3535

plugins/dbms/hsqldb/enumeration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def getBanner(self):
2929

3030
return kb.data.banner
3131

32-
def getPrivileges(self, *args):
32+
def getPrivileges(self, *args, **kwargs):
3333
warnMsg = "on HSQLDB it is not possible to enumerate the user privileges"
3434
logger.warn(warnMsg)
3535

plugins/dbms/maxdb/enumeration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def getColumns(self, onlyColNames=False, colTuple=None, bruteForce=None, dumpMod
217217

218218
return kb.data.cachedColumns
219219

220-
def getPrivileges(self, *args):
220+
def getPrivileges(self, *args, **kwargs):
221221
warnMsg = "on SAP MaxDB it is not possible to enumerate the user privileges"
222222
logger.warn(warnMsg)
223223

plugins/dbms/mssqlserver/enumeration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
from thirdparty import six
3434

3535
class Enumeration(GenericEnumeration):
36-
def getPrivileges(self, *args):
36+
def getPrivileges(self, *args, **kwargs):
3737
warnMsg = "on Microsoft SQL Server it is not possible to fetch "
3838
warnMsg += "database users privileges, sqlmap will check whether "
3939
warnMsg += "or not the database users are database administrators"

plugins/dbms/sqlite/enumeration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def getCurrentDb(self):
1818
warnMsg = "on SQLite it is not possible to get name of the current database"
1919
logger.warn(warnMsg)
2020

21-
def isDba(self):
21+
def isDba(self, *args, **kwargs):
2222
warnMsg = "on SQLite the current user has all privileges"
2323
logger.warn(warnMsg)
2424

@@ -36,7 +36,7 @@ def getPasswordHashes(self):
3636

3737
return {}
3838

39-
def getPrivileges(self, *args):
39+
def getPrivileges(self, *args, **kwargs):
4040
warnMsg = "on SQLite it is not possible to enumerate the user privileges"
4141
logger.warn(warnMsg)
4242

plugins/dbms/sybase/enumeration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def getUsers(self):
5353

5454
return kb.data.cachedUsers
5555

56-
def getPrivileges(self, *args):
56+
def getPrivileges(self, *args, **kwargs):
5757
warnMsg = "on Sybase it is not possible to fetch "
5858
warnMsg += "database users privileges, sqlmap will check whether "
5959
warnMsg += "or not the database users are database administrators"

plugins/generic/custom.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ def sqlQuery(self, query):
5454

5555
return output
5656
elif not isStackingAvailable() and not conf.direct:
57-
warnMsg = "execution of non-query SQL statements is only "
58-
warnMsg += "available when stacked queries are supported"
59-
logger.warn(warnMsg)
57+
warnMsg = "execution of non-query SQL statements is only "
58+
warnMsg += "available when stacked queries are supported"
59+
logger.warn(warnMsg)
6060

61-
return None
61+
return None
6262
else:
6363
if sqlType:
6464
debugMsg = "executing %s query: '%s'" % (sqlType if sqlType is not None else "SQL", query)

tamper/bluecoat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def process(match):
4343
retVal = payload
4444

4545
if payload:
46-
retVal = re.sub(r"\b(?P<word>[A-Z_]+)(?=[^\w(]|\Z)", lambda match: process(match), retVal)
46+
retVal = re.sub(r"\b(?P<word>[A-Z_]+)(?=[^\w(]|\Z)", process, retVal)
4747
retVal = re.sub(r"\s*=\s*", " LIKE ", retVal)
4848
retVal = retVal.replace("%09 ", "%09")
4949

0 commit comments

Comments
 (0)