mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-05-30 10:43:12 +03:00
minor update
This commit is contained in:
parent
9ca8bc4d51
commit
2c87d061e9
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user