@@ -180,7 +180,7 @@ def _urllib2Opener():
180180 if conf .proxy :
181181 warnMsg += "with HTTP(s) proxy"
182182 logger .warn (warnMsg )
183- elif conf .aType :
183+ elif conf .authType :
184184 warnMsg += "with authentication methods"
185185 logger .warn (warnMsg )
186186 else :
@@ -1011,8 +1011,8 @@ def _setHTTPProxy():
10111011 errMsg = "proxy value must be in format '(%s)://url:port'" % "|" .join (_ [0 ].lower () for _ in getPublicTypeMembers (PROXY_TYPE ))
10121012 raise SqlmapSyntaxException (errMsg )
10131013
1014- if conf .pCred :
1015- _ = re .search ("^(.*?):(.*?)$" , conf .pCred )
1014+ if conf .proxyCred :
1015+ _ = re .search ("^(.*?):(.*?)$" , conf .proxyCred )
10161016 if not _ :
10171017 errMsg = "Proxy authentication credentials "
10181018 errMsg += "value must be in format username:password"
@@ -1025,9 +1025,9 @@ def _setHTTPProxy():
10251025 socks .setdefaultproxy (socks .PROXY_TYPE_SOCKS5 if scheme == PROXY_TYPE .SOCKS5 else socks .PROXY_TYPE_SOCKS4 , hostname , port , username = username , password = password )
10261026 socks .wrapmodule (urllib2 )
10271027 else :
1028- if conf .pCred :
1028+ if conf .proxyCred :
10291029 # Reference: http://stackoverflow.com/questions/34079/how-to-specify-an-authenticated-proxy-for-a-python-http-connection
1030- proxyString = "%s@" % conf .pCred
1030+ proxyString = "%s@" % conf .proxyCred
10311031 else :
10321032 proxyString = ""
10331033
@@ -1097,24 +1097,24 @@ def _setHTTPAuthentication():
10971097
10981098 global authHandler
10991099
1100- if not conf .aType and not conf .aCred and not conf .aCert :
1100+ if not conf .authType and not conf .authCred and not conf .authCert :
11011101 return
11021102
1103- elif conf .aType and not conf .aCred and not conf .aCert :
1103+ elif conf .authType and not conf .authCred and not conf .authCert :
11041104 errMsg = "you specified the HTTP authentication type, but "
11051105 errMsg += "did not provide the credentials"
11061106 raise SqlmapSyntaxException (errMsg )
11071107
1108- elif not conf .aType and conf .aCred :
1108+ elif not conf .authType and conf .authCred :
11091109 errMsg = "you specified the HTTP authentication credentials, "
11101110 errMsg += "but did not provide the type"
11111111 raise SqlmapSyntaxException (errMsg )
11121112
1113- if not conf .aCert :
1113+ if not conf .authCert :
11141114 debugMsg = "setting the HTTP authentication type and credentials"
11151115 logger .debug (debugMsg )
11161116
1117- aTypeLower = conf .aType .lower ()
1117+ aTypeLower = conf .authType .lower ()
11181118
11191119 if aTypeLower not in (AUTH_TYPE .BASIC , AUTH_TYPE .DIGEST , AUTH_TYPE .NTLM , AUTH_TYPE .CERT ):
11201120 errMsg = "HTTP authentication type value must be "
@@ -1133,7 +1133,7 @@ def _setHTTPAuthentication():
11331133 errMsg += "usage of option `--auth-cert`"
11341134 raise SqlmapSyntaxException (errMsg )
11351135
1136- aCredRegExp = re .search (regExp , conf .aCred )
1136+ aCredRegExp = re .search (regExp , conf .authCred )
11371137
11381138 if not aCredRegExp :
11391139 raise SqlmapSyntaxException (errMsg )
@@ -1165,7 +1165,7 @@ def _setHTTPAuthentication():
11651165 debugMsg = "setting the HTTP(s) authentication certificate"
11661166 logger .debug (debugMsg )
11671167
1168- aCertRegExp = re .search ("^(.+?),\s*(.+?)$" , conf .aCert )
1168+ aCertRegExp = re .search ("^(.+?),\s*(.+?)$" , conf .authCert )
11691169
11701170 if not aCertRegExp :
11711171 errMsg = "HTTP authentication certificate option "
0 commit comments