Just noticed that the "LastVersion" file in the profile folder, as the name suggests, gets updated when the profile is opened with (another version of) BAS e.g. from 114.0.5735.91 to 117.0.5938.63. Therefore it's not suitable for our need to determine the original version of which a profile was created.
But at least can be said what was the latest BAS version that worked with it ;)
How bas process cookies ?
-
Just want to know how bas restores cookie ? When we save cookies, they are saved in this format
format 1
{"cookies":[{"creation":{"day_of_month":"17","day_of_week":"6","hour":"10","millisecond":"747","minute":"35","month":"3","second":"2","year":"2018"},"domain":".xxxxxxx.com","expires":{"day_of_month":"15","day_of_week":"4","hour":"22","millisecond":"747","minute":"28","month":"11","second":"2","year":"2018"},"has_expires":"1","httponly":"1","last_access":{"day_of_month":"17","day_of_week":"6","hour":"10","millisecond":"747","minute":"35","month":"3","second":"2","year":"2018"},"name":"VISITOR_INFO1_LIVE","path":"/","secure":"0","value":"7vi5mUUlm_Y"} and more ..But when we restore cookies in http client/browser, cookies are sent in header in format below
format 2
Cookie: VISITOR_INFO1_LIVE=7vi5mUUlm_Y AND MORE ..How can i save cookies in format 2 or how do i convert from format 1 to format 2 ? Does bas has function for this or do i need to convert it using regex ?