Skip to content

Commit

Permalink
Added 2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MoistCoder committed Apr 3, 2022
1 parent db6946c commit b0f4459
Show file tree
Hide file tree
Showing 28 changed files with 1,253 additions and 884 deletions.
19 changes: 19 additions & 0 deletions Changelog.MD
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
# 2.2.0

## Additions

* `Chromium` changed to `Blink`, and `Firefox` changed to `Gecko`
* Added `BlinkGrabber` and `GeckoGrabber` which replace `ChromeGrabber` and `FirefoxGrabber`
* Added Firefox Login Decryption
* Added `GrabberException` which replaces `CookieDatabaseNotFoundException`, `LoginDatabaseNotFoundException`, and `LocalStateNotFoundException`

## Improvements

* Fixed the bug where you couldn't call the Method `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)
* Moved the documentation from Readme.md to the Github Wiki
* Added support for mutliple Profiles on gecko based browsers like Firefox
* Changed Timestamps from `long` to `DateTimeOffset`
* Improved the use of the `DynamicJsonConverter`

</br>

# 2.1.0

## Additions
Expand Down
19 changes: 11 additions & 8 deletions CockyGrabber/CockyGrabber/CockyGrabber.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -69,24 +69,27 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Chromium\Chromium.cs" />
<Compile Include="Exceptions\LoginDatabaseNotFoundException.cs" />
<Compile Include="Exceptions\LocalStateDatabaseNotFoundException.cs" />
<Compile Include="Exceptions\CookieDatabaseNotFoundException.cs" />
<Compile Include="EngineModels\Blink.cs" />
<Compile Include="Exceptions\GrabberError.cs" />
<Compile Include="Exceptions\GrabberException.cs" />
<Compile Include="Grabbers\BraveGrabber.cs" />
<Compile Include="Grabbers\FirefoxGrabber.cs" />
<Compile Include="Grabbers\UniversalGrabber.cs" />
<Compile Include="Grabbers\OperaGrabber.cs" />
<Compile Include="Grabbers\EdgeGrabber.cs" />
<Compile Include="Grabbers\VivaldiGrabber.cs" />
<Compile Include="Grabbers\ChromiumGrabber.cs" />
<Compile Include="EngineGrabbers\BlinkGrabber.cs" />
<Compile Include="Grabbers\OperaGxGrabber.cs" />
<Compile Include="Grabbers\ChromeGrabber.cs" />
<Compile Include="Grabbers\FirefoxGrabber.cs" />
<Compile Include="Firefox\Firefox.cs" />
<Compile Include="EngineGrabbers\GeckoGrabber.cs" />
<Compile Include="EngineModels\Gecko.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Utility\FirefoxDecryptor.cs" />
<Compile Include="Utility\DynamicJsonConverter.cs" />
</ItemGroup>
<ItemGroup />
<ItemGroup>
<Folder Include="Firefox\" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="packages.config" />
Expand Down

Large diffs are not rendered by default.

300 changes: 300 additions & 0 deletions CockyGrabber/CockyGrabber/EngineGrabbers/GeckoGrabber.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,102 +1,106 @@
namespace CockyGrabber
{
public static class Chromium
{
public class Cookie
{
public long CreationUTC { get; set; }
public string TopFrameSiteKey { get; set; }
public string HostKey { get; set; }
public string Name { get; set; }
public string Value { get; set; }
public string EncryptedValue { get; set; }
public string Path { get; set; }
public long ExpiresUTC { get; set; }
public bool IsSecure { get; set; }
public bool IsHttpOnly { get; set; }
public long LastAccessUTC { get; set; }
public bool HasExpires { get; set; }
public bool IsPersistent { get; set; }
public short Priority { get; set; }
public short Samesite { get; set; }
public short SourceScheme { get; set; }
public int SourcePort { get; set; }
public bool IsSameParty { get; set; }
}
public class Login
{
public string OriginUrl { get; set; }
public string ActionUrl { get; set; }
public string UsernameElement { get; set; }
public string UsernameValue { get; set; }
public string PasswordElement { get; set; }
public string PasswordValue { get; set; }
public string SubmitElement { get; set; }
public string SignonRealm { get; set; }
public long DateCreated { get; set; }
public bool IsBlacklistedByUser { get; set; }
public int Scheme { get; set; }
public int PasswordType { get; set; }
public int TimesUsed { get; set; }
public string FormData { get; set; }
public string DisplayName { get; set; }
public string IconUrl { get; set; }
public string FederationUrl { get; set; }
public int SkipZeroClick { get; set; }
public int GenerationUploadStatus { get; set; }
public string PossibleUsernamePairs { get; set; }
public int Id { get; set; }
public long DateLastUsed { get; set; }
public string MovingBlockedFor { get; set; }
public long DatePasswordModified { get; set; }
}
public enum CookieHeader
{
creation_utc,
top_frame_site_key,
host_key,
name,
value,
encrypted_value,
path,
expires_utc,
is_secure,
is_httponly,
last_access_utc,
has_expires,
is_persistent,
priority,
samesite,
source_scheme,
source_port,
is_same_party,
}
public enum LoginHeader
{
origin_url,
action_url,
username_element,
username_value,
password_element,
password_value,
submit_element,
signon_realm,
date_created,
blacklisted_by_user,
scheme,
password_type,
times_used,
form_data,
display_name,
icon_url,
federation_url,
skip_zero_click,
generation_upload_status,
possible_username_pairs,
id,
date_last_used,
moving_blocked_for,
date_password_modified
}
}
using System;

namespace CockyGrabber
{
public static class Blink
{
public class Cookie
{
public DateTimeOffset CreationUTC { get; set; }
public string TopFrameSiteKey { get; set; }
public string HostKey { get; set; }
public string Name { get; set; }
public string Value { get; set; }
public string EncryptedValue { get; set; }
public string DecryptedValue { get; set; }
public string Path { get; set; }
public DateTimeOffset ExpiresUTC { get; set; }
public bool IsSecure { get; set; }
public bool IsHttpOnly { get; set; }
public DateTimeOffset LastAccessUTC { get; set; }
public bool HasExpires { get; set; }
public bool IsPersistent { get; set; }
public short Priority { get; set; }
public short Samesite { get; set; }
public short SourceScheme { get; set; }
public int SourcePort { get; set; }
public bool IsSameParty { get; set; }
}
public class Login
{
public string OriginUrl { get; set; }
public string ActionUrl { get; set; }
public string UsernameElement { get; set; }
public string UsernameValue { get; set; }
public string PasswordElement { get; set; }
public string PasswordValue { get; set; }
public string DecryptedPasswordValue { get; set; }
public string SubmitElement { get; set; }
public string SignonRealm { get; set; }
public DateTimeOffset DateCreated { get; set; }
public bool IsBlacklistedByUser { get; set; }
public int Scheme { get; set; }
public int PasswordType { get; set; }
public int TimesUsed { get; set; }
public string FormData { get; set; }
public string DisplayName { get; set; }
public string IconUrl { get; set; }
public string FederationUrl { get; set; }
public int SkipZeroClick { get; set; }
public int GenerationUploadStatus { get; set; }
public string PossibleUsernamePairs { get; set; }
public int Id { get; set; }
public DateTimeOffset DateLastUsed { get; set; }
public string MovingBlockedFor { get; set; }
public DateTimeOffset DatePasswordModified { get; set; }
}
public enum CookieHeader
{
creation_utc,
top_frame_site_key,
host_key,
name,
value,
encrypted_value,
path,
expires_utc,
is_secure,
is_httponly,
last_access_utc,
has_expires,
is_persistent,
priority,
samesite,
source_scheme,
source_port,
is_same_party,
}
public enum LoginHeader
{
origin_url,
action_url,
username_element,
username_value,
password_element,
password_value,
submit_element,
signon_realm,
date_created,
blacklisted_by_user,
scheme,
password_type,
times_used,
form_data,
display_name,
icon_url,
federation_url,
skip_zero_click,
generation_upload_status,
possible_username_pairs,
id,
date_last_used,
moving_blocked_for,
date_password_modified
}
}
}

0 comments on commit b0f4459

Please sign in to comment.