Skip to content

Commit d72660e

Browse files
committed
Adding a support for option-less URL arg
1 parent 4833fb3 commit d72660e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

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.9.25"
21+
VERSION = "1.3.10.0"
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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -905,6 +905,8 @@ 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"):
909+
argv[i] = "--url=%s" % argv[i]
908910
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])):
909911
dataToStdout("[!] copy-pasting illegal (non-console) quote characters from Internet is, well, illegal (%s)\n" % argv[i])
910912
raise SystemExit

0 commit comments

Comments
 (0)