data

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package data Created by Teocci. Author: teocci@yandex.com on 2021-Aug-14

Package data Created by Teocci. Author: teocci@yandex.com on 2021-Aug-14

Package data Created by Teocci. Author: teocci@yandex.com on 2021-Aug-14

Package data Created by Teocci. Author: teocci@yandex.com on 2021-Aug-14

Package data Created by Teocci. Author: teocci@yandex.com on 2021-Aug-14

Package data Created by Teocci. Author: teocci@yandex.com on 2021-Aug-12

Package data Created by Teocci. Author: teocci@yandex.com on 2021-Aug-12

Package data Created by Teocci. Author: teocci@yandex.com on 2021-Aug-14

Index

Constants

View Source
const (
	FormatNameJson    = "json"
	FormatNameCSV     = "csv"
	FormatNameConsole = "console"
)
View Source
const (
	ItemNameBookmark   = "bookmark"
	ItemNameCookie     = "cookie"
	ItemNameHistory    = "history"
	ItemNameDownload   = "downloads"
	ItemNamePassword   = "password"
	ItemNameCreditCard = "credit-card"
)
View Source
const (
	ChromeCreditFile   = "Web Data"
	ChromePasswordFile = "Login Data"
	ChromeHistoryFile  = "History"
	ChromeDownloadFile = "History"
	ChromeCookieFile   = "Cookies"
	ChromeBookmarkFile = "Bookmarks"
	FirefoxCookieFile  = "cookies.sqlite"
	FirefoxKey4File    = "key4.db"
	FirefoxLoginFile   = "logins.json"
	FirefoxDataFile    = "places.sqlite"
)
View Source
const (
	QueryChromiumCredit   = `SELECT guid, name_on_card, expiration_month, expiration_year, card_number_encrypted FROM credit_cards`
	QueryChromiumLogin    = `SELECT origin_url, username_value, password_value, date_created FROM logins`
	QueryChromiumHistory  = `SELECT url, title, visit_count, last_visit_time FROM urls`
	QueryChromiumDownload = `SELECT target_path, tab_url, total_bytes, start_time, end_time, mime_type FROM downloads`
	QueryChromiumCookie   = `` /* 136-byte string literal not displayed */
	QueryFirefoxHistory   = `SELECT id, url, last_visit_date, title, visit_count FROM moz_places`
	QueryFirefoxDownload  = `` /* 163-byte string literal not displayed */
	QueryFirefoxBookMarks = `` /* 129-byte string literal not displayed */
	QueryFirefoxCookie    = `SELECT name, value, host, path, creationTime, expiry, isSecure, isHttpOnly FROM moz_cookies`
	QueryMetaData         = `SELECT item1, item2 FROM metaData WHERE id = 'password'`
	QueryNssPrivate       = `SELECT a11, a102 from nssPrivate`
	CloseJournalMode      = `PRAGMA journal_mode=off`
)

Variables

This section is empty.

Functions

func BookMarkType added in v1.0.1

func BookMarkType(a int64) string

func CopyToLocalPath added in v1.0.1

func CopyToLocalPath(src, dst string) error

func GetFormatName added in v1.0.1

func GetFormatName(format OutputFormat) string

func WriteToCsv added in v1.0.1

func WriteToCsv(filename string, data interface{}) error

func WriteToJson added in v1.0.1

func WriteToJson(filename string, data interface{}) error

Types

type Item

type Item interface {
	// ChromeParse parse chrome items, Password and Cookie need secret key
	ChromeParse(key []byte) error

	// FirefoxParse parse firefox items
	FirefoxParse() error

	// OutPut file name and format type
	OutPut(format OutputFormat, browser, dir string) error

	// CopyDB is copy item db file to current dir
	CopyDB() error

	// Release is delete item db file
	Release() error
}

func NewBookmarks

func NewBookmarks(main, sub string) Item

func NewCCards

func NewCCards(main string, sub string) Item

func NewCPasswords

func NewCPasswords(main, sub string) Item

func NewCookies

func NewCookies(main, sub string) Item

func NewDownloads

func NewDownloads(main, sub string) Item

func NewFPasswords

func NewFPasswords(main, sub string) Item

func NewHistoryData

func NewHistoryData(main, sub string) Item

type OutputFormat added in v1.0.1

type OutputFormat int

func GetFormat added in v1.0.1

func GetFormat(formatName string) OutputFormat

Jump to

Keyboard shortcuts

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