Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0c5965c

Browse files
committed
Minor patches
1 parent aa21550 commit 0c5965c

8 files changed

Lines changed: 9 additions & 17 deletions

File tree

lib/core/convert.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import re
1212
import StringIO
1313
import sys
14-
import types
1514

1615
from lib.core.settings import IS_WIN
1716
from lib.core.settings import UNICODE_ENCODING

lib/core/settings.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import subprocess
1111
import string
1212
import sys
13-
import time
1413
import types
1514

1615
from lib.core.datatype import AttribDict
@@ -20,7 +19,7 @@
2019
from lib.core.revision import getRevisionNumber
2120

2221
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.0.4.19"
22+
VERSION = "1.0.4.20"
2423
REVISION = getRevisionNumber()
2524
STABLE = VERSION.count('.') <= 2
2625
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")

lib/core/wordlist.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from lib.core.common import getSafeExString
1212
from lib.core.exception import SqlmapDataException
1313
from lib.core.exception import SqlmapInstallationException
14-
from lib.core.settings import UNICODE_ENCODING
1514

1615
class Wordlist(object):
1716
"""

lib/techniques/blind/inference.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@
55
See the file 'doc/COPYING' for copying permission
66
"""
77

8-
import re
98
import threading
109
import time
1110

12-
from extra.safe2bin.safe2bin import safechardecode
1311
from extra.safe2bin.safe2bin import safecharencode
1412
from lib.core.agent import agent
1513
from lib.core.common import Backend
@@ -20,13 +18,11 @@
2018
from lib.core.common import filterControlChars
2119
from lib.core.common import getCharset
2220
from lib.core.common import getCounter
23-
from lib.core.common import getUnicode
2421
from lib.core.common import goGoodSamaritan
2522
from lib.core.common import getPartRun
2623
from lib.core.common import hashDBRetrieve
2724
from lib.core.common import hashDBWrite
2825
from lib.core.common import incrementCounter
29-
from lib.core.common import randomInt
3026
from lib.core.common import safeStringFormat
3127
from lib.core.common import singleTimeWarnMessage
3228
from lib.core.data import conf
@@ -44,7 +40,6 @@
4440
from lib.core.settings import INFERENCE_GREATER_CHAR
4541
from lib.core.settings import INFERENCE_EQUALS_CHAR
4642
from lib.core.settings import INFERENCE_NOT_EQUALS_CHAR
47-
from lib.core.settings import MIN_TIME_RESPONSES
4843
from lib.core.settings import MAX_BISECTION_LENGTH
4944
from lib.core.settings import MAX_TIME_REVALIDATION_STEPS
5045
from lib.core.settings import NULL

lib/utils/search.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
See the file 'doc/COPYING' for copying permission
66
"""
77

8-
import cookielib
98
import httplib
109
import re
1110
import socket
@@ -26,7 +25,6 @@
2625
from lib.core.enums import REDIRECTION
2726
from lib.core.exception import SqlmapBaseException
2827
from lib.core.exception import SqlmapConnectionException
29-
from lib.core.exception import SqlmapGenericException
3028
from lib.core.exception import SqlmapUserQuitException
3129
from lib.core.settings import DUMMY_SEARCH_USER_AGENT
3230
from lib.core.settings import DUCKDUCKGO_REGEX
@@ -35,7 +33,6 @@
3533
from lib.core.settings import HTTP_ACCEPT_ENCODING_HEADER_VALUE
3634
from lib.core.settings import UNICODE_ENCODING
3735
from lib.request.basic import decodePage
38-
from lib.request.httpshandler import HTTPSHandler
3936
from thirdparty.socks import socks
4037

4138

plugins/generic/databases.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,11 @@ def getColumns(self, onlyColNames=False, colTuple=None, bruteForce=None, dumpMod
572572
query = _.query % (unsafeSQLIdentificatorNaming(conf.db.upper()), unsafeSQLIdentificatorNaming(tbl.upper()), unsafeSQLIdentificatorNaming(name.upper()))
573573
else:
574574
query = _.query % (unsafeSQLIdentificatorNaming(conf.db), unsafeSQLIdentificatorNaming(tbl), unsafeSQLIdentificatorNaming(name))
575+
575576
comment = unArrayizeValue(inject.getValue(query, blind=False, time=False))
577+
if not isNoneValue(comment):
578+
infoMsg = "retrieved comment '%s' for column '%s'" % (comment, name)
579+
logger.info(infoMsg)
576580
else:
577581
warnMsg = "on %s it is not " % Backend.getIdentifiedDbms()
578582
warnMsg += "possible to get column comments"
@@ -702,7 +706,11 @@ def getColumns(self, onlyColNames=False, colTuple=None, bruteForce=None, dumpMod
702706
query = _.query % (unsafeSQLIdentificatorNaming(conf.db.upper()), unsafeSQLIdentificatorNaming(tbl.upper()), unsafeSQLIdentificatorNaming(column.upper()))
703707
else:
704708
query = _.query % (unsafeSQLIdentificatorNaming(conf.db), unsafeSQLIdentificatorNaming(tbl), unsafeSQLIdentificatorNaming(column))
709+
705710
comment = unArrayizeValue(inject.getValue(query, union=False, error=False))
711+
if not isNoneValue(comment):
712+
infoMsg = "retrieved comment '%s' for column '%s'" % (comment, column)
713+
logger.info(infoMsg)
706714
else:
707715
warnMsg = "on %s it is not " % Backend.getIdentifiedDbms()
708716
warnMsg += "possible to get column comments"

tamper/commalesslimit.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@
55
See the file 'doc/COPYING' for copying permission
66
"""
77

8-
import os
98
import re
109

11-
from lib.core.common import singleTimeWarnMessage
1210
from lib.core.enums import PRIORITY
1311

1412
__priority__ = PRIORITY.HIGH

tamper/escapequotes.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55
See the file 'doc/COPYING' for copying permission
66
"""
77

8-
import base64
9-
108
from lib.core.enums import PRIORITY
11-
from lib.core.settings import UNICODE_ENCODING
129

1310
__priority__ = PRIORITY.LOWEST
1411

0 commit comments

Comments
 (0)