mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 05:01:30 +00:00
minor update
This commit is contained in:
@@ -152,7 +152,12 @@ def __urllib2Opener():
|
|||||||
conf.cj = cookielib.CookieJar()
|
conf.cj = cookielib.CookieJar()
|
||||||
else:
|
else:
|
||||||
conf.cj = cookielib.MozillaCookieJar()
|
conf.cj = cookielib.MozillaCookieJar()
|
||||||
conf.cj.load(conf.loC)
|
try:
|
||||||
|
conf.cj.load(conf.loC)
|
||||||
|
except cookielib.LoadError, msg:
|
||||||
|
errMsg = "there was a problem loading "
|
||||||
|
errMsg += "cookies file ('%s')" % msg
|
||||||
|
raise sqlmapGenericException, errMsg
|
||||||
|
|
||||||
handlers.append(urllib2.HTTPCookieProcessor(conf.cj))
|
handlers.append(urllib2.HTTPCookieProcessor(conf.cj))
|
||||||
|
|
||||||
@@ -1889,6 +1894,11 @@ def __basicOptionValidation():
|
|||||||
errMsg += "supported charsets"
|
errMsg += "supported charsets"
|
||||||
raise sqlmapSyntaxException, errMsg
|
raise sqlmapSyntaxException, errMsg
|
||||||
|
|
||||||
|
if conf.loC:
|
||||||
|
if not os.path.exists(conf.loC):
|
||||||
|
errMsg = "cookies file '%s' does not exist" % conf.loC
|
||||||
|
raise sqlmapFilePathException, errMsg
|
||||||
|
|
||||||
def __resolveCrossReferences():
|
def __resolveCrossReferences():
|
||||||
lib.core.threads.readInput = readInput
|
lib.core.threads.readInput = readInput
|
||||||
lib.core.common.getPageTemplate = getPageTemplate
|
lib.core.common.getPageTemplate = getPageTemplate
|
||||||
|
|||||||
Reference in New Issue
Block a user