browsercookie

package module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

README

browsercookie

Get cookies of browser (only chrome on windows for now) that after decrypted

Installation

This package can be installed with the go get command:

go get github.com/donkw/browsercookie

Usage

import "github.com/donkw/browsercookie/browser"

// when get Chrome AES GCM KEY fail, return error msg
// chrome := browser.NewChrome()
chrome, err := browser.NewChrome()

if err != nil {
  log.Fatalf("error: %+v", err)
}
chrome.GetCookies(".baidu.com")
log.Printf("cookies: %+v", chrome.Cookies)

Documentation

Overview

get browser cookies that after decrypted only support Chrome on Windows for now, if necessary, other browsers will be added in future

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(data []byte) ([]byte, error)

func DecryptWithAESGCM

func DecryptWithAESGCM(key, nonce, encryptedData []byte) ([]byte, error)

func Encrypt

func Encrypt(data []byte) ([]byte, error)

func GetChrome

func GetChrome() (browserer, error)

func NewBlob

func NewBlob(d []byte) *dataBlob

Types

type Cookie struct {
	Name, DecryptedData string
	EncryptedValue      []byte
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL