These are the answers you are looking for.
(05-21-2022, 04:16 AM)dork.master.king Wrote: I'm a total noob in Cookies area and I have a couple of questions ,usually I would read non-stop till I have the needed answers but I'm short on time and have a lot projects on my schedule so any direct answers would be very much appreciated because I'm tight on time...
1-I've got a txt cookie file is there a way to to convert it to Json directly with no headache? Or is that a stupid question to begin with?
2-What does True/False mean? Why is it False/False sometimes and sometimes True/False ?
3-I want to copy paste values manually in EditThisCookie extension (in chrome specifically) but how do I specify true/false values because i don't see such an option.
4-What's the number written after True /False ?
5-Does Importing cookies work with Gmail?
6-For Gmail In a scenario where I have access to the same device do I need to enter all of SIDCC,__Secure-3PSIDCC,OGPC blah blah values to remake the cookie? What about in a scenario where I don't have access to the same device?
Thanks In Advance!
Raven Out.
1. you dont need to convert a cookie file into json. you could for shits and giggles or if you just want a better look at the info I guess.
2. true/false is a boolean, it means on/off, light/dark. it could mean anything. i would need to know the variable that the true and false is being set for.
3. ive never used that extension before, i normally use curl to make a request if i need to use a specific cookie (or someone elses cookie).
4. again, i dont know what you are looking at so i couldnt begin to tell you.
5. cookie files are not magical and normally dont contain any kind of useful information. cookie files CAN be used to impersonate someone. snagging someone's gmail cookie doesnt help much. most of the time when someone logs out the cookie changes. cookies can also have set time to live (timeout). normally stealing cookies only works against weak websites. if i stole your facebook cookie i might be able to impersonate you if i had access to your computer. for example, if i stole your facebook cookie and tried to use it on my computer it definitely would not work. but, i could steal your facebook cookie and access your computer to access your facebook account without logging in... make sense? if not, i suggest learning a language like php and actually creating cookies yourself (
https://www.php.net/manual/en/function.setcookie.php).
6. you dont have to create a cookie or alter it in anyway. once you steal the file with the cookie in it you would make the HTTP request with that specific cookie.
And if you don't know or are not aware not all cookies are the same. I can make my cookie file for my website (my software in general) any way I want. they dont all look the same and each is unique to that specific web service. most are encrypted (or should be) in some fashion or another. I use curl (like mentioned earlier) when i need to use a specific cookie or use a cookie ive stolen.
Code:
-b, --cookie STRING/FILE Read cookies from STRING/FILE (H)
-c, --cookie-jar FILE Write cookies to FILE after operation (H)
-j, --junk-session-cookies Ignore session cookies read from file (H)
to look at some cookies I could make a request with curl and capture the cookie file...
Code:
curl -vL --cookie-jar cookies http://google.com
and the "cookie jar" (cookies file) looks something like this (without all the asterisks of course):
Code:
# Netscape HTTP Cookie File
# http://curl.haxx.se/docs/http-cookies.html
# This file was generated by libcurl! Edit at your own risk.
.google.com TRUE / TRUE 1655979397 1P_JAR 2022-05-24-10
#HttpOnly_.google.com TRUE / TRUE 1668939397 AEC Aakni**********A1TnWU5X3iFVn***e8ZCxFRglvPoy_t089cKWIuW1rQ
#HttpOnly_.google.com TRUE / FALSE 1669198597 NID 511=dYC4Jcd11j8-jIrSbBKFbvWXl2jpVEexIEQGVrlzi2kKNit3xW8ZcEdfEFE66sdiR2*******_t4WiDp6IBbDXdhf6e6X0jrqBdxBu1HA_miCtKnxEIlr-1fJqzg4p3oNuQTN90bF**************77HxQM9AaCRefDtsu0qM
https://policies.google.com/technologies...s?hl=en-US