Minor bug fix in --update option, updated also Microsoft XML versions file

This commit is contained in:
Bernardo Damele 2009-06-16 15:12:02 +00:00
parent 32067cb676
commit e5a01d500e
3 changed files with 46 additions and 13 deletions

View File

@ -493,8 +493,6 @@ def __setHTTPProxy():
if not conf.proxy:
return
parseTargetUrl()
debugMsg = "setting the HTTP proxy to pass by all HTTP requests"
logger.debug(debugMsg)
@ -516,8 +514,8 @@ def __setHTTPProxy():
# Workaround for http://bugs.python.org/issue1424152 (urllib/urllib2:
# HTTPS over (Squid) Proxy fails) as long as HTTP over SSL requests
# can't be tunneled over an HTTP proxy natively by Python urllib2
# standard library
# can't be tunneled over an HTTP proxy natively by Python (<= 2.5)
# urllib2 standard library
if conf.scheme == "https":
proxyHandler = ProxyHTTPSHandler(__proxyString)
else:
@ -545,8 +543,6 @@ def __setHTTPAuthentication():
errMsg += "but did not provide the type"
raise sqlmapSyntaxException, errMsg
parseTargetUrl()
debugMsg = "setting the HTTP Authentication type and credentials"
logger.debug(debugMsg)
@ -599,9 +595,8 @@ def __setHTTPMethod():
def __setHTTPExtraHeaders():
parseTargetUrl()
conf.httpHeaders.append(("Host", conf.hostname))
if conf.hostname:
conf.httpHeaders.append(("Host", conf.hostname))
if conf.headers:
debugMsg = "setting extra HTTP headers"
@ -987,6 +982,9 @@ def init(inputOptions=advancedDict()):
__setConfAttributes()
__setKnowledgeBaseAttributes()
__cleanupOptions()
parseTargetUrl()
__setHTTPTimeout()
__setHTTPCookies()
__setHTTPReferer()

View File

@ -109,12 +109,15 @@ def __updateMSSQLXML():
servicePack = servicePack[:servicePack.index("-")]
if "*" in servicePack:
servicePack = servicePack[:servicePack.index("*")]
if servicePack.startswith("+"):
servicePack = "0%s" % servicePack
servicePack = servicePack.replace("\t", " ")
servicePack = servicePack.replace(" ", " ")
servicePack = servicePack.replace("No SP", "0")
servicePack = servicePack.replace("RTM", "0")
servicePack = servicePack.replace("SP", "")
servicePack = servicePack.replace("Service Pack", "")
servicePack = servicePack.replace("<a href=\"http:", "")
if servicePack.endswith(" "):

View File

@ -3,15 +3,31 @@
<signatures release="2008">
<signature>
<version>
10.0.2531
10.00.2714
</version>
<servicepack>
0 + Service Pack 1
1 + Cumulative Update 2 for Service Pack 1
</servicepack>
</signature>
<signature>
<version>
10.0.1798.0
10.00.2710
</version>
<servicepack>
1 + Cumulative Update 1 for Service Pack 1
</servicepack>
</signature>
<signature>
<version>
10.00.2531
</version>
<servicepack>
1
</servicepack>
</signature>
<signature>
<version>
10.00.1798
</version>
<servicepack>
0 + Cumulative Update 4
@ -51,7 +67,7 @@
</signature>
<signature>
<version>
10.0.1600.22
10.00.1600.22
</version>
<servicepack>
0
@ -83,6 +99,22 @@
</signature>
</signatures>
<signatures release="2005">
<signature>
<version>
9.00.4220
</version>
<servicepack>
3+Q967909
</servicepack>
</signature>
<signature>
<version>
9.00.4216
</version>
<servicepack>
3+Q967101
</servicepack>
</signature>
<signature>
<version>
9.00.4211