Skip to content

Commit 5bf52c3

Browse files
committed
Trivial patches
1 parent 94709c9 commit 5bf52c3

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

lib/core/settings.py

Lines changed: 3 additions & 3 deletions
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.12.20"
21+
VERSION = "1.4.12.21"
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)
@@ -649,7 +649,7 @@
649649
TRIM_STDOUT_DUMP_SIZE = 256
650650

651651
# Reference: http://stackoverflow.com/a/3168436
652-
# Reference: https://support.microsoft.com/en-us/kb/899149
652+
# Reference: https://web.archive.org/web/20150407141500/https://support.microsoft.com/en-us/kb/899149
653653
DUMP_FILE_BUFFER_SIZE = 1024
654654

655655
# Parse response headers only first couple of times
@@ -874,7 +874,7 @@
874874
# Prefixes used in brute force search for web server document root
875875
BRUTE_DOC_ROOT_PREFIXES = {
876876
OS.LINUX: ("/var/www", "/usr/local/apache", "/usr/local/apache2", "/usr/local/www/apache22", "/usr/local/www/apache24", "/usr/local/httpd", "/var/www/nginx-default", "/srv/www", "/var/www/%TARGET%", "/var/www/vhosts/%TARGET%", "/var/www/virtual/%TARGET%", "/var/www/clients/vhosts/%TARGET%", "/var/www/clients/virtual/%TARGET%"),
877-
OS.WINDOWS: ("/xampp", "/Program Files/xampp", "/wamp", "/Program Files/wampp", "/apache", "/Program Files/Apache Group/Apache", "/Program Files/Apache Group/Apache2", "/Program Files/Apache Group/Apache2.2", "/Program Files/Apache Group/Apache2.4", "/Inetpub/wwwroot", "/Inetpub/wwwroot/%TARGET%", "/Inetpub/vhosts/%TARGET%")
877+
OS.WINDOWS: ("/xampp", "/Program Files/xampp", "/wamp", "/Program Files/wampp", "/Apache/Apache", "/apache", "/Program Files/Apache Group/Apache", "/Program Files/Apache Group/Apache2", "/Program Files/Apache Group/Apache2.2", "/Program Files/Apache Group/Apache2.4", "/Inetpub/wwwroot", "/Inetpub/wwwroot/%TARGET%", "/Inetpub/vhosts/%TARGET%")
878878
}
879879

880880
# Suffixes used in brute force search for web server document root

lib/utils/hashdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def write(self, key, value, serialize=False):
116116
self._write_cache[hash_] = getUnicode(value) if not serialize else serializeObject(value)
117117
self._cache_lock.release()
118118

119-
if getCurrentThreadName() in ('0', 'MainThread'):
119+
if getCurrentThreadName() in ('0', "MainThread"):
120120
self.flush()
121121

122122
def flush(self, forced=False):

lib/utils/pivotdumptable.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def pivotDumpTable(table, colList, count=None, blind=True, alias=None):
113113
break
114114

115115
if not validColumnList:
116-
errMsg = "all column name(s) provided are non-existent"
116+
errMsg = "all provided column name(s) are non-existent"
117117
raise SqlmapNoneDataException(errMsg)
118118

119119
if not validPivotValue:

lib/utils/search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def _search(dork):
130130
url = "https://www.bing.com/search?q=%s&first=%d" % (urlencode(dork, convall=True), (gpage - 1) * 10 + 1)
131131
regex = BING_REGEX
132132
else:
133-
url = "https://duckduckgo.com/html/"
133+
url = "https://html.duckduckgo.com/html/"
134134
data = "q=%s&s=%d" % (urlencode(dork, convall=True), (gpage - 1) * 30)
135135
regex = DUCKDUCKGO_REGEX
136136

sqlmap.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -328,20 +328,20 @@ def main():
328328

329329
elif all(_ in excMsg for _ in ("twophase", "sqlalchemy")):
330330
errMsg = "please update the 'sqlalchemy' package (>= 1.1.11) "
331-
errMsg += "(Reference: https://qiita.com/tkprof/items/7d7b2d00df9c5f16fffe)"
331+
errMsg += "(Reference: 'https://qiita.com/tkprof/items/7d7b2d00df9c5f16fffe')"
332332
logger.critical(errMsg)
333333
raise SystemExit
334334

335335
elif all(_ in excMsg for _ in ("scramble_caching_sha2", "TypeError")):
336336
errMsg = "please downgrade the 'PyMySQL' package (=< 0.8.1) "
337-
errMsg += "(Reference: https://github.com/PyMySQL/PyMySQL/issues/700)"
337+
errMsg += "(Reference: 'https://github.com/PyMySQL/PyMySQL/issues/700')"
338338
logger.critical(errMsg)
339339
raise SystemExit
340340

341341
elif "must be pinned buffer, not bytearray" in excMsg:
342342
errMsg = "error occurred at Python interpreter which "
343343
errMsg += "is fixed in 2.7. Please update accordingly "
344-
errMsg += "(Reference: https://bugs.python.org/issue8104)"
344+
errMsg += "(Reference: 'https://bugs.python.org/issue8104')"
345345
logger.critical(errMsg)
346346
raise SystemExit
347347

@@ -431,7 +431,7 @@ def main():
431431

432432
elif all(_ in excMsg for _ in ("HTTPNtlmAuthHandler", "'str' object has no attribute 'decode'")):
433433
errMsg = "package 'python-ntlm' has a known compatibility issue with the "
434-
errMsg += "Python 3 (Reference: https://github.com/mullender/python-ntlm/pull/61)"
434+
errMsg += "Python 3 (Reference: 'https://github.com/mullender/python-ntlm/pull/61')"
435435
logger.critical(errMsg)
436436
raise SystemExit
437437

tamper/apostrophemask.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ def tamper(payload, **kwargs):
1818
1919
References:
2020
* http://www.utf8-chartable.de/unicode-utf8-table.pl?start=65280&number=128
21-
* http://lukasz.pilorz.net/testy/unicode_conversion/
22-
* http://sla.ckers.org/forum/read.php?13,11562,11850
23-
* http://lukasz.pilorz.net/testy/full_width_utf/index.phps
21+
* https://web.archive.org/web/20130614183121/http://lukasz.pilorz.net/testy/unicode_conversion/
22+
* https://web.archive.org/web/20131121094431/sla.ckers.org/forum/read.php?13,11562,11850
23+
* https://web.archive.org/web/20070624194958/http://lukasz.pilorz.net/testy/full_width_utf/index.phps
2424
2525
>>> tamper("1 AND '1'='1")
2626
'1 AND %EF%BC%871%EF%BC%87=%EF%BC%871'

0 commit comments

Comments
 (0)