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

Skip to content

Commit 5f41d94

Browse files
committed
Minor update
1 parent c8a4e63 commit 5f41d94

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

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.3"
21+
VERSION = "1.3.10.4"
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ def _format_action_invocation(self, action):
905905
longOptions = set(re.findall(r"\-\-([^= ]+?)=", parser.format_help()))
906906
if argv[i] == "-hh":
907907
argv[i] = "-h"
908-
elif i == 1 and argv[i].startswith("http"):
908+
elif i == 1 and re.search(r"\A(http|www\.|\w[\w.-]+\.\w{2,})", argv[i]) is not None:
909909
argv[i] = "--url=%s" % argv[i]
910910
elif len(argv[i]) > 1 and all(ord(_) in xrange(0x2018, 0x2020) for _ in ((argv[i].split('=', 1)[-1].strip() or ' ')[0], argv[i][-1])):
911911
dataToStdout("[!] copy-pasting illegal (non-console) quote characters from Internet is, well, illegal (%s)\n" % argv[i])

0 commit comments

Comments
 (0)