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

Skip to content

Commit 3f91f02

Browse files
committed
Trivial updates
1 parent 769d0eb commit 3f91f02

7 files changed

Lines changed: 17 additions & 10 deletions

File tree

doc/THANKS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ Tate Hansen, <tate(at)clearnetsec.com>
202202
Mario Heiderich, <mario.heiderich(at)gmail.com>
203203
Christian Matthies, <ch0012(at)gmail.com>
204204
Lars H. Strojny, <lars(at)strojny.net>
205-
* for their great tool PHPIDS included in sqlmap tree as a set of rules for testing payloads against IDS detection, http://php-ids.org
205+
* for their great tool PHPIDS included in sqlmap tree as a set of rules for testing payloads against IDS detection, https://github.com/PHPIDS/PHPIDS
206206

207207
Kristian Erik Hermansen, <kristian.hermansen(at)gmail.com>
208208
* for reporting a bug

lib/core/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,7 @@ def limitQuery(self, num, query, field=None, uniqueField=None):
995995
limitedQuery = limitedQuery.replace("SELECT ", (limitStr % 1), 1)
996996

997997
if " ORDER BY " not in fromFrom:
998-
# Reference: http://vorg.ca/626-the-MS-SQL-equivalent-to-MySQLs-limit-command
998+
# Reference: https://web.archive.org/web/20150218053955/http://vorg.ca/626-the-MS-SQL-equivalent-to-MySQLs-limit-command
999999
if " WHERE " in limitedQuery:
10001000
limitedQuery = "%s AND %s " % (limitedQuery, self.nullAndCastField(uniqueField or field))
10011001
else:

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 import six
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.3.5.73"
21+
VERSION = "1.3.5.74"
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/request/basic.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,11 @@ def checkCharEncoding(encoding, warn=True):
243243
def getHeuristicCharEncoding(page):
244244
"""
245245
Returns page encoding charset detected by usage of heuristics
246-
Reference: http://chardet.feedparser.org/docs/
246+
247+
Reference: https://chardet.readthedocs.io/en/latest/usage.html
248+
249+
>>> getHeuristicCharEncoding(b"<html></html>")
250+
'ascii'
247251
"""
248252

249253
key = hash(page)
@@ -259,6 +263,9 @@ def getHeuristicCharEncoding(page):
259263
def decodePage(page, contentEncoding, contentType):
260264
"""
261265
Decode compressed/charset HTTP response
266+
267+
>>> getText(decodePage(b"<html>foo&amp;bar</html>", None, "text/html; charset=utf-8"))
268+
'<html>foo&bar</html>'
262269
"""
263270

264271
if not page or (conf.nullConnection and len(page) < 2):

lib/utils/hash.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
try:
1717
import multiprocessing
1818

19-
# problems on FreeBSD (Reference: http://www.eggheadcafe.com/microsoft/Python/35880259/multiprocessing-on-freebsd.aspx)
19+
# problems on FreeBSD (Reference: https://web.archive.org/web/20110710041353/http://www.eggheadcafe.com/microsoft/Python/35880259/multiprocessing-on-freebsd.aspx)
2020
_ = multiprocessing.Queue()
2121

2222
# problems with ctypes (Reference: https://github.com/sqlmapproject/sqlmap/issues/2952)
@@ -98,7 +98,7 @@
9898
def mysql_passwd(password, uppercase=True):
9999
"""
100100
Reference(s):
101-
http://csl.sublevel3.org/mysql-password-function/
101+
https://web.archive.org/web/20120215205312/http://csl.sublevel3.org/mysql-password-function/
102102
103103
>>> mysql_passwd(password='testpass', uppercase=True)
104104
'*00E247AC5F9AF26AE0194B41E1E769DEE1429A29'
@@ -113,8 +113,8 @@ def mysql_passwd(password, uppercase=True):
113113
def mysql_old_passwd(password, uppercase=True): # prior to version '4.1'
114114
"""
115115
Reference(s):
116-
http://www.sfr-fresh.com/unix/privat/tpop3d-1.5.5.tar.gz:a/tpop3d-1.5.5/password.c
117-
http://voidnetwork.org/5ynL0rd/darkc0de/python_script/darkMySQLi.html
116+
https://web.archive.org/web/20091205000600/http://www.sfr-fresh.com/unix/privat/tpop3d-1.5.5.tar.gz:a/tpop3d-1.5.5/password.c
117+
https://github.com/pwnieexpress/pwn_plug_sources/blob/master/src/darkmysqli/DarkMySQLi.py
118118
119119
>>> mysql_old_passwd(password='testpass', uppercase=True)
120120
'7DCDA0D57290B453'

plugins/dbms/mssqlserver/filesystem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def stackedReadFile(self, rFile):
9696
logger.debug("loading the content of file '%s' into support table" % rFile)
9797
inject.goStacked("BULK INSERT %s FROM '%s' WITH (CODEPAGE='RAW', FIELDTERMINATOR='%s', ROWTERMINATOR='%s')" % (txtTbl, rFile, randomStr(10), randomStr(10)), silent=True)
9898

99-
# Reference: http://support.microsoft.com/kb/104829
99+
# Reference: https://web.archive.org/web/20120211184457/http://support.microsoft.com/kb/104829
100100
binToHexQuery = """DECLARE @charset VARCHAR(16)
101101
DECLARE @counter INT
102102
DECLARE @hexstr VARCHAR(4096)

thirdparty/gprof2dot/gprof2dot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,7 @@ class CallgrindParser(LineParser):
10391039
"""Parser for valgrind's callgrind tool.
10401040
10411041
See also:
1042-
- http://valgrind.org/docs/manual/cl-Format.html
1042+
- https://web.archive.org/web/20190415231603/http://valgrind.org/docs/manual/cl-Format.html
10431043
"""
10441044

10451045
_call_re = re.compile(r'^calls=\s*(\d+)\s+((\d+|\+\d+|-\d+|\*)\s+)+$')

0 commit comments

Comments
 (0)