Skip to content

Commit ab2cae3

Browse files
committed
Implements #3971
1 parent fd8028b commit ab2cae3

File tree

5 files changed

+19
-4
lines changed

5 files changed

+19
-4
lines changed

lib/core/option.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2211,6 +2211,13 @@ def _mergeOptions(inputOptions, overrideOptions):
22112211
if hasattr(conf, key) and conf[key] is None:
22122212
conf[key] = value
22132213

2214+
if conf.unstable:
2215+
if key in ("timeSec", "retries", "timeout"):
2216+
conf[key] *= 2
2217+
2218+
if conf.unstable:
2219+
conf.forcePartial = True
2220+
22142221
lut = {}
22152222
for group in optDict.keys():
22162223
lut.update((_.upper(), _) for _ in optDict[group])

lib/core/optiondict.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,9 @@
239239
"offline": "boolean",
240240
"purge": "boolean",
241241
"tmpDir": "string",
242-
"wizard": "boolean",
242+
"unstable": "boolean",
243243
"updateAll": "boolean",
244+
"wizard": "boolean",
244245
"verbose": "integer",
245246
},
246247

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.10.25"
21+
VERSION = "1.3.10.26"
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)

lib/parse/cmdline.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,9 @@ def cmdLineParser(argv=None):
734734
miscellaneous.add_argument("--tmp-dir", dest="tmpDir",
735735
help="Local directory for storing temporary files")
736736

737+
miscellaneous.add_argument("--unstable", dest="unstable", action="store_true",
738+
help="Adjust options for unstable connections")
739+
737740
miscellaneous.add_argument("--update", dest="updateAll", action="store_true",
738741
help="Update sqlmap")
739742

sqlmap.conf

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -825,14 +825,18 @@ offline = False
825825
# Local directory for storing temporary files.
826826
tmpDir =
827827

828-
# Simple wizard interface for beginner users.
828+
# Adjust options for unstable connections.
829829
# Valid: True or False
830-
wizard = False
830+
unstable = False
831831

832832
# Update sqlmap.
833833
# Valid: True or False
834834
updateAll = False
835835

836+
# Simple wizard interface for beginner users.
837+
# Valid: True or False
838+
wizard = False
839+
836840
# Verbosity level.
837841
# Valid: integer between 0 and 6
838842
# 0: Show only error and critical messages

0 commit comments

Comments
 (0)