hackbrowserlib

package module
v0.0.0-...-3888d98 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package hackbrowserlib provides functionality to extract browser data from Windows browsers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListSupportedBrowsers

func ListSupportedBrowsers() []string

ListSupportedBrowsers returns a list of supported browsers

Types

type Browser

type Browser interface {
	// Name returns the browser's name
	Name() string
	// BrowsingData returns all browsing data in the browser
	BrowsingData(isFullExport bool) (*browserdata.BrowserData, error)
}

Browser represents a browser instance that can extract data

type BrowserResult

type BrowserResult struct {
	Browser Browser
	Data    *browserdata.BrowserData
}

BrowserResult stores extracted browser data and supporting methods

func ExtractBrowserData

func ExtractBrowserData(browserType BrowserType, customProfilePath string, isFullExport bool) ([]*BrowserResult, error)

ExtractBrowserData extracts data from the specified browser

func (*BrowserResult) ExportData

func (r *BrowserResult) ExportData(outputDir string, outputFormat string) error

ExportData exports the browser data to the specified directory in the specified format

type BrowserType

type BrowserType string

BrowserType represents supported browser types

const (
	Chrome       BrowserType = "chrome"
	Edge         BrowserType = "edge"
	Chromium     BrowserType = "chromium"
	ChromeBeta   BrowserType = "chrome-beta"
	Opera        BrowserType = "opera"
	OperaGX      BrowserType = "opera-gx"
	Vivaldi      BrowserType = "vivaldi"
	CocCoc       BrowserType = "coccoc"
	Brave        BrowserType = "brave"
	Yandex       BrowserType = "yandex"
	Speed360     BrowserType = "360"
	QQBrowser    BrowserType = "qq"
	DCBrowser    BrowserType = "dc"
	SogouBrowser BrowserType = "sogou"
	Firefox      BrowserType = "firefox"
	AllBrowsers  BrowserType = "all"
)

Directories

Path Synopsis
Package browserdata is responsible for initializing all the necessary components that handle different types of browser data extraction.
Package browserdata is responsible for initializing all the necessary components that handle different types of browser data extraction.
utils

Jump to

Keyboard shortcuts

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