@@ -599,6 +599,7 @@ def __setHTTPProxy():
599599 __scheme = __proxySplit [0 ]
600600 __hostname = __hostnamePort [0 ]
601601 __port = None
602+ __proxyString = ""
602603
603604 if len (__hostnamePort ) == 2 :
604605 try :
@@ -619,9 +620,9 @@ def __setHTTPProxy():
619620 raise sqlmapSyntaxException , errMsg
620621
621622 # Reference: http://stackoverflow.com/questions/34079/how-to-specify-an-authenticated-proxy-for-a-python-http-connection
622- __proxyString = "%s@%s:%d " % ( conf .pCred , __hostname , __port )
623- else :
624- __proxyString = "%s:%d" % (__hostname , __port )
623+ __proxyString = "%s@" % conf .pCred
624+
625+ __proxyString + = "%s:%d" % (__hostname , __port )
625626
626627 # Workaround for http://bugs.python.org/issue1424152 (urllib/urllib2:
627628 # HTTPS over (Squid) Proxy fails) as long as HTTP over SSL requests
@@ -1184,19 +1185,17 @@ def __basicOptionValidation():
11841185 errMsg = "value for --stop (limitStop) option must be an integer value greater than zero (>0)"
11851186 raise sqlmapSyntaxException , errMsg
11861187
1187- if conf .limitStart is not None and isinstance (conf .limitStart , int ) and conf .limitStart > 0 and \
1188+ if conf .limitStart is not None and isinstance (conf .limitStart , int ) and conf .limitStart > 0 and \
11881189 conf .limitStop is not None and isinstance (conf .limitStop , int ) and conf .limitStop > 0 and conf .limitStop <= conf .limitStart :
11891190 errMsg = "value for --start (limitStart) option must be smaller than value for --stop (limitStop) option"
11901191 raise sqlmapSyntaxException , errMsg
11911192
1192- if conf .cpuThrottle is not None and isinstance (conf .cpuThrottle , int ) and (conf .cpuThrottle > 100 or \
1193- conf .cpuThrottle < 0 ):
1193+ if conf .cpuThrottle is not None and isinstance (conf .cpuThrottle , int ) and (conf .cpuThrottle > 100 or conf .cpuThrottle < 0 ):
11941194 errMsg = "value for --cpu-throttle (cpuThrottle) option must be in range [0,100]"
11951195 raise sqlmapSyntaxException , errMsg
11961196
1197- if conf .matchRatio is not None and isinstance (conf .matchRatio , float ) and (conf .matchRatio > 1 or \
1198- conf .cpuThrottle < 0 ):
1199- errMsg = "value for --ratio (matchRatio) option must be in range [0,1]"
1197+ if conf .thold is not None and isinstance (conf .thold , float ) and (conf .thold > 1 or conf .cpuThrottle < 0 ):
1198+ errMsg = "value for --threshold (thold) option must be in range [0,1]"
12001199 raise sqlmapSyntaxException , errMsg
12011200
12021201 if conf .textOnly and conf .useNullConnection :
0 commit comments