C# library for the collection of browser information such as cookies, logins, bookmarks and more
ToJson()
method to all browser information classes (Cookie
, Login
, Bookmark
, ...) that serializes the class into a JSON stringBlinkGrabber
and GeckoGrabber
classes now have two methods for each browser information that check if the related file that stores that information exists: [name of the data]Exist(string)
and Any[name of the data]Exist()
(e. g: CookiesExist(string)
and AnyCookiesExist()
). The former returns a bool indicating if the, to the information corresponding, file of a specified browser profile exists, and the latter returns a bool indicating if that file exists on any browser profile (given that the browser supports having different profiles).SameSiteType
enum in each of the Blink and Gecko cookie model classes, replacing the return type of the SameSite
fields.Environment.GetFolderPath(Appdata)
instead of C:\\Users\\{Environment.UserName}\\AppData...
) and support other drive letters than C:\
UniversalGrabber
Get-methods by using Parallel.ForEach
instead of foreach
making them faster by a LOT.GetKey()
method of the BlinkGrabber
to virtual so that the user can overwrite it.GetKey()
method of the BlinkGrabber
class that caused it to crash when the JSON object os_crypt
, which stores the value encrypted_key
, contained other values than encrypted_key
. (Changed regex expression from \"os_crypt\"\\s*:\\s*{\\s*\"encrypted_key\"\\s*:\\s*\".*?\"\\s*}
to \"os_crypt\"\s*:\s*\{\s*.*?(?=\"encrypted_key)\"encrypted_key\"\s*:\s*\"(?<encKey>.*?)\"\s*\}
)
GetAllBlink...()
methods are now checking if the related file and the Local State
file, which stores the key, exist before grabbing the information to avoid any errorsGetGeckoCookies()
& GetGeckoCookiesBy()
methods (Their cookie expiry dates used to always be: 01.01.1970 00:00:00 +00:00
)UniversalGrabber
(BlinkGrabbers[]
and GeckoGrabbers[]
) are now public instead of private so that the user can change them if needed (e.g. to add a new browser)UnixTimeInMillisecondsToDate(milliSeconds)
or WebkitTimeStampToDateTime(microSeconds)
in the EngineGrabbers have been moved to the new Time
class in the Utility
namespaceBraveGrabber
; ChromeGrabber
; OperaGrabber
) have changedLocal State
Cookie
, Login
, and Site
can now be converted into strings with the ToString()
method. On conversion, the ToString()
method will return only the most important informationBlinkGrabber
classUniversalGrabber
Chromium
changed to Blink
, and Firefox
changed to Gecko
BlinkGrabber
and GeckoGrabber
which replace ChromeGrabber
and FirefoxGrabber
GrabberException
which replaces CookieDatabaseNotFoundException
, LoginDatabaseNotFoundException
, and LocalStateNotFoundException
GetAllChromiumCookies()
with the UniversalGrabber without it throwing an exception when at least one of the Browsers was not installed (same thing goes for GetAllChromiumLogins()
and their Get-By equvalents)long
to DateTimeOffset
DynamicJsonConverter
UniversalGrabber()
class which can grab multiple items at onceCookieDatabaseNotFoundException()
, LocalStateNotFoundException()
, LoginDatabaseNotFoundException()
Changed some classes, minimized files, added support for more browsers, added login grabber functions, and some other minor stuff.
This is an old, outdated release of CockyGrabber and it used to be called 2.1.0.
This version exists only for archiving reasons.