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

Skip to content

Commit c7bdf27

Browse files
committed
Tribute to all the FUBAR h4x0rs around the world (#4183)
1 parent b334b6b commit c7bdf27

2 files changed

Lines changed: 6 additions & 3 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.4.5.19"
21+
VERSION = "1.4.5.20"
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: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -924,10 +924,13 @@ def _format_action_invocation(self, action):
924924
elif i == 1 and re.search(r"\A(http|www\.|\w[\w.-]+\.\w{2,})", argv[i]) is not None:
925925
argv[i] = "--url=%s" % argv[i]
926926
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])):
927-
dataToStdout("[!] copy-pasting illegal (non-console) quote characters from Internet is, well, illegal (%s)\n" % argv[i])
927+
dataToStdout("[!] copy-pasting illegal (non-console) quote characters from Internet is illegal (%s)\n" % argv[i])
928928
raise SystemExit
929929
elif len(argv[i]) > 1 and u"\uff0c" in argv[i].split('=', 1)[-1]:
930-
dataToStdout("[!] copy-pasting illegal (non-console) comma characters from Internet is, well, illegal (%s)\n" % argv[i])
930+
dataToStdout("[!] copy-pasting illegal (non-console) comma characters from Internet is illegal (%s)\n" % argv[i])
931+
raise SystemExit
932+
elif len(argv[i]) > 1 and ord(argv[i][0]) == 0x2212:
933+
dataToStdout("[!] copy-pasting illegal (non-console) minus character from Internet is illegal (%s)\n" % argv[i])
931934
raise SystemExit
932935
elif re.search(r"\A-\w=.+", argv[i]):
933936
dataToStdout("[!] potentially miswritten (illegal '=') short option detected ('%s')\n" % argv[i])

0 commit comments

Comments
 (0)