mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 08:14:24 +03:00
Updated Microsoft SQL Server signature XML file.
Minor layout adjustments to --update output messages/diff
This commit is contained in:
parent
0e9873fd4f
commit
9340bf59fb
|
@ -28,6 +28,7 @@ import difflib
|
|||
import os
|
||||
import re
|
||||
import shutil
|
||||
import sys
|
||||
import tempfile
|
||||
import urlparse
|
||||
import zipfile
|
||||
|
@ -188,13 +189,8 @@ def __updateMSSQLXML():
|
|||
logger.info(infoMsg)
|
||||
|
||||
# Compare the old XML file with the new one
|
||||
differ = difflib.Differ()
|
||||
differences = list(differ.compare(oldMssqlXmlList, newMssqlXmlList))
|
||||
|
||||
# Show only the different lines
|
||||
for line in differences:
|
||||
if line.startswith("-") or line.startswith("+") or line.startswith("?"):
|
||||
print line.strip("\n")
|
||||
diff = difflib.unified_diff(oldMssqlXmlList, newMssqlXmlList, "%s.bak" % paths.MSSQL_XML, paths.MSSQL_XML)
|
||||
sys.stdout.writelines(diff)
|
||||
else:
|
||||
infoMsg = "no new Microsoft SQL Server versions since the "
|
||||
infoMsg += "last update"
|
||||
|
@ -262,7 +258,7 @@ def __updateSqlmap():
|
|||
logger.info(infoMsg)
|
||||
|
||||
elif sqlmapNewestVersion < VERSION:
|
||||
infoMsg = "if you are running a version of sqlmap more updated than "
|
||||
infoMsg = "you are running a version of sqlmap more updated than "
|
||||
infoMsg += "the latest stable version (%s)" % sqlmapNewestVersion
|
||||
logger.info(infoMsg)
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
10.00.1750
|
||||
</version>
|
||||
<servicepack>
|
||||
0+Q956718
|
||||
+Q956718
|
||||
</servicepack>
|
||||
</signature>
|
||||
<signature>
|
||||
|
@ -43,6 +43,30 @@
|
|||
</signature>
|
||||
</signatures>
|
||||
<signatures release="2005">
|
||||
<signature>
|
||||
<version>
|
||||
9.00.4035
|
||||
</version>
|
||||
<servicepack>
|
||||
+3
|
||||
</servicepack>
|
||||
</signature>
|
||||
<signature>
|
||||
<version>
|
||||
9.00.3301
|
||||
</version>
|
||||
<servicepack>
|
||||
2+Q958735
|
||||
</servicepack>
|
||||
</signature>
|
||||
<signature>
|
||||
<version>
|
||||
9.00.3295
|
||||
</version>
|
||||
<servicepack>
|
||||
2+Q959132
|
||||
</servicepack>
|
||||
</signature>
|
||||
<signature>
|
||||
<version>
|
||||
9.00.3294
|
||||
|
@ -51,6 +75,14 @@
|
|||
2+Q956854
|
||||
</servicepack>
|
||||
</signature>
|
||||
<signature>
|
||||
<version>
|
||||
9.00.3291
|
||||
</version>
|
||||
<servicepack>
|
||||
2+Q956889
|
||||
</servicepack>
|
||||
</signature>
|
||||
<signature>
|
||||
<version>
|
||||
9.00.3282
|
||||
|
@ -67,6 +99,14 @@
|
|||
2+Q954607
|
||||
</servicepack>
|
||||
</signature>
|
||||
<signature>
|
||||
<version>
|
||||
9.00.3261
|
||||
</version>
|
||||
<servicepack>
|
||||
2+Q955754
|
||||
</servicepack>
|
||||
</signature>
|
||||
<signature>
|
||||
<version>
|
||||
9.00.3260
|
||||
|
|
Loading…
Reference in New Issue
Block a user