Skip to content

Commit d2b16c5

Browse files
committed
1 parent 9f0c42d commit d2b16c5

File tree

5 files changed

+15
-14
lines changed

5 files changed

+15
-14
lines changed

lib/core/common.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ def getIdentifiedDbms():
465465

466466
if not kb:
467467
pass
468-
elif not kb.testMode and conf.dbmsHandler and getattr(conf.dbmsHandler, "_dbms", None):
468+
elif not kb.get("testMode") and conf.get("dbmsHandler") and getattr(conf.dbmsHandler, "_dbms", None):
469469
dbms = conf.dbmsHandler._dbms
470470
elif Backend.getForcedDbms() is not None:
471471
dbms = Backend.getForcedDbms()
@@ -1497,11 +1497,12 @@ def getLimitRange(count, plusOne=False):
14971497
count = int(count)
14981498
limitStart, limitStop = 1, count
14991499

1500-
if isinstance(conf.limitStop, int) and conf.limitStop > 0 and conf.limitStop < limitStop:
1501-
limitStop = conf.limitStop
1500+
if kb.dumpTable:
1501+
if isinstance(conf.limitStop, int) and conf.limitStop > 0 and conf.limitStop < limitStop:
1502+
limitStop = conf.limitStop
15021503

1503-
if isinstance(conf.limitStart, int) and conf.limitStart > 0 and conf.limitStart <= limitStop:
1504-
limitStart = conf.limitStart
1504+
if isinstance(conf.limitStart, int) and conf.limitStart > 0 and conf.limitStart <= limitStop:
1505+
limitStart = conf.limitStart
15051506

15061507
retVal = xrange(limitStart, limitStop + 1) if plusOne else xrange(limitStart - 1, limitStop)
15071508

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.enums import OS
2020

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

lib/parse/cmdline.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,10 +482,10 @@ def cmdLineParser(argv=None):
482482
help="Use WHERE condition while table dumping")
483483

484484
enumeration.add_option("--start", dest="limitStart", type="int",
485-
help="First query output entry to retrieve")
485+
help="First dump table entry to retrieve")
486486

487487
enumeration.add_option("--stop", dest="limitStop", type="int",
488-
help="Last query output entry to retrieve")
488+
help="Last dump table entry to retrieve")
489489

490490
enumeration.add_option("--first", dest="firstChar", type="int",
491491
help="First query output word character to retrieve")

sqlmap.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -512,13 +512,13 @@ excludeSysDbs = False
512512

513513
# First query output entry to retrieve
514514
# Valid: integer
515-
# Default: 0 (sqlmap will start to retrieve the query output entries from
516-
# the first)
515+
# Default: 0 (sqlmap will start to retrieve the table dump entries from
516+
# first one)
517517
limitStart = 0
518518

519519
# Last query output entry to retrieve
520520
# Valid: integer
521-
# Default: 0 (sqlmap will detect the number of query output entries and
521+
# Default: 0 (sqlmap will detect the number of table dump entries and
522522
# retrieve them until the last)
523523
limitStop = 0
524524

txt/checksum.md5

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ dc386321e8813788f155dc557a78be8d lib/controller/controller.py
2626
310efc965c862cfbd7b0da5150a5ad36 lib/controller/__init__.py
2727
19905ecb4437b94512cf21d5f1720091 lib/core/agent.py
2828
6cc95a117fbd34ef31b9aa25520f0e31 lib/core/bigarray.py
29-
bddba28eea6caf94db25b913e29c4d17 lib/core/common.py
29+
7d9c202d105cc08d2c3785d0f2f45a20 lib/core/common.py
3030
5065a4242a8cccf72f91e22e1007ae63 lib/core/convert.py
3131
a8143dab9d3a27490f7d49b6b29ea530 lib/core/data.py
3232
7936d78b1a7f1f008ff92bf2f88574ba lib/core/datatype.py
@@ -45,7 +45,7 @@ a8143dab9d3a27490f7d49b6b29ea530 lib/core/data.py
4545
d8e9250f3775119df07e9070eddccd16 lib/core/replication.py
4646
785f86e3f963fa3798f84286a4e83ff2 lib/core/revision.py
4747
40c80b28b3a5819b737a5a17d4565ae9 lib/core/session.py
48-
6d28b22630c9386097a754dc548462dd lib/core/settings.py
48+
b06afbda30432e1193289822da317b58 lib/core/settings.py
4949
d91291997d2bd2f6028aaf371bf1d3b6 lib/core/shell.py
5050
2ad85c130cc5f2b3701ea85c2f6bbf20 lib/core/subprocessng.py
5151
afd0636d2e93c23f4f0a5c9b6023ea17 lib/core/target.py
@@ -56,7 +56,7 @@ ad74fc58fc7214802fd27067bce18dd2 lib/core/unescaper.py
5656
4d13ed693401a498b6d073a2a494bd83 lib/core/wordlist.py
5757
310efc965c862cfbd7b0da5150a5ad36 lib/__init__.py
5858
8c4b04062db2245d9e190b413985202a lib/parse/banner.py
59-
942e1d7cb6f777ff198358d43246c40c lib/parse/cmdline.py
59+
54f06c50771ce894a3c6a418d545f4bf lib/parse/cmdline.py
6060
3a31657bc38f277d0016ff6d50bde61f lib/parse/configfile.py
6161
14539f1be714d4f1ed042067d63bc50a lib/parse/handler.py
6262
64e5bb3ecbdd75144500588b437ba8da lib/parse/headers.py

0 commit comments

Comments
 (0)