Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed5599f commit b6fee63Copy full SHA for b6fee63
1 file changed
lib/core/common.py
@@ -3504,10 +3504,15 @@ def resetCookieJar(cookieJar):
3504
handle, filename = tempfile.mkstemp(prefix="sqlmapcj-")
3505
os.close(handle)
3506
3507
+ # Reference: http://www.hashbangcode.com/blog/netscape-http-cooke-file-parser-php-584.html
3508
with open(filename, "w+b") as f:
3509
f.write("%s\n" % NETSCAPE_FORMAT_HEADER_COOKIES)
3510
for line in lines:
- f.write("\n%s" % "\t".join(line.split()))
3511
+ _ = line.split()
3512
+ if len(_) == 7:
3513
+ _[1]= "TRUE" # MozillaCookieJar expects TRUE here
3514
+ _[4] = "9999999999" # The UNIX time that the variable will expire on
3515
+ f.write("\n%s" % "\t".join(_))
3516
3517
cookieJar.filename = filename
3518
0 commit comments