File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1520,6 +1520,7 @@ def setPaths(rootPath):
15201520 paths .MYSQL_XML = os .path .join (paths .SQLMAP_XML_BANNER_PATH , "mysql.xml" )
15211521 paths .ORACLE_XML = os .path .join (paths .SQLMAP_XML_BANNER_PATH , "oracle.xml" )
15221522 paths .PGSQL_XML = os .path .join (paths .SQLMAP_XML_BANNER_PATH , "postgresql.xml" )
1523+ paths .DIGEST_FILE = os .path .join (paths .SQLMAP_ROOT_PATH , "sha256sums.txt" )
15231524
15241525 for path in paths .values ():
15251526 if any (path .endswith (_ ) for _ in (".txt" , ".xml" , ".tx_" )):
@@ -5591,3 +5592,22 @@ def chunkSplitPostData(data):
55915592 retVal += "0\r \n \r \n "
55925593
55935594 return retVal
5595+
5596+ def checkSums ():
5597+ """
5598+ Validate the content of the digest file (i.e. sha256sums.txt)
5599+ """
5600+
5601+ retVal = True
5602+
5603+ for entry in getFileItems (paths .DIGEST_FILE ):
5604+ match = re .search (r"([0-9a-f]+)\s+([^\s]+)" , entry )
5605+ if match :
5606+ expected , filename = match .groups ()
5607+ filepath = os .path .join (paths .SQLMAP_ROOT_PATH , filename )
5608+ checkFile (filepath )
5609+ if not hashlib .sha256 (open (filepath , "rb" ).read ()).hexdigest () == expected :
5610+ retVal &= False
5611+ break
5612+
5613+ return retVal
Original file line number Diff line number Diff line change 2020from thirdparty .six import unichr as _unichr
2121
2222# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23- VERSION = "1.8.3.2 "
23+ VERSION = "1.8.3.3 "
2424TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2525TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2626VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ f9c96cd3fe99578bed9d49a8bdf8d76836d320a7c48c56eb0469f48b36775c35 lib/controller
17317399d0e94dd5fe60137abf48bfa051129fb251f5c40f0f7a270c89fbcb07323730 lib/controller/__init__.py
174174826c33f1105be4c0985e1bbe1d75bdb009c17815ad6552fc8d9bf39090d3c40f lib/core/agent.py
175175b2d69c99632da5c2acd0c0934e70d55862f1380a3f602cbe7456d617fb9c1fc9 lib/core/bigarray.py
176- 8ef410802052ca28b9f3513859ac2de28769aaab12b254337e0eff02b7cd178e lib/core/common.py
176+ 484c6a755451b20a45a2694b168fb279c000fec16ba53489614c90b726d42f98 lib/core/common.py
1771775c26b0f308266bc3a9679ef837439e38d1dc7a69eac6bd3422280f49aaf114d2 lib/core/compat.py
178178b60c96780cad4a257f91a0611b08cfcc52f242908c5d5ab2bf9034ef07869602 lib/core/convert.py
1791795e381515873e71c395c77df00bf1dd8c4592afc6210a2f75cbc20daf384e539f lib/core/data.py
@@ -195,7 +195,7 @@ bf77f9fc4296f239687297aee1fd6113b34f855965a6f690b52e26bd348cb353 lib/core/profi
1951954eff81c639a72b261c8ba1c876a01246e718e6626e8e77ae9cc6298b20a39355 lib/core/replication.py
196196bbd1dcda835934728efc6d68686e9b0da72b09b3ee38f3c0ab78e8c18b0ba726 lib/core/revision.py
197197eed6b0a21b3e69c5583133346b0639dc89937bd588887968ee85f8389d7c3c96 lib/core/session.py
198- 5ee74d3884f2b37f06c8e9b26da439ceedde3b641063b4c97364c2d41f7f65cf lib/core/settings.py
198+ dbf74242ba1b3bf6698e0e844dd1bf272d9786a6ca37cba6fa9ec5d5fbac700a lib/core/settings.py
1991992bec97d8a950f7b884e31dfe9410467f00d24f21b35672b95f8d68ed59685fd4 lib/core/shell.py
200200e90a359b37a55c446c60e70ccd533f87276714d0b09e34f69b0740fd729ddbf8 lib/core/subprocessng.py
20120154f7c70b4c7a9931f7ff3c1c12030180bde38e35a306d5e343ad6052919974cd lib/core/target.py
You can’t perform that action at this time.
0 commit comments