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

Skip to content

Commit bc5b643

Browse files
committed
One more improvement for #3587
1 parent 282d4b2 commit bc5b643

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

lib/core/settings.py

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

1919
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
20-
VERSION = "1.3.4.22"
20+
VERSION = "1.3.4.23"
2121
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2222
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2323
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: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -855,6 +855,14 @@ def _(self, *args):
855855
elif argv[i] == "-H":
856856
if i + 1 < len(argv):
857857
extraHeaders.append(argv[i + 1])
858+
elif argv[i] == "-r":
859+
for j in xrange(i + 2, len(argv)):
860+
value = argv[j]
861+
if os.path.isfile(value):
862+
argv[i + 1] += ",%s" % value
863+
argv[j] = ''
864+
else:
865+
break
858866
elif re.match(r"\A\d+!\Z", argv[i]) and argv[max(0, i - 1)] == "--threads" or re.match(r"\A--threads.+\d+!\Z", argv[i]):
859867
argv[i] = argv[i][:-1]
860868
conf.skipThreadCheck = True

0 commit comments

Comments
 (0)