recovery_passwords

package
v0.0.0-...-95728e9 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Local_appdata = os.Getenv("LOCALAPPDATA")
	Appdata       = os.Getenv("APPDATA")
)

Functions

func AESDncrypt

func AESDncrypt(rawData string, key []byte, iv []byte) (string, error)

func AesCBCDncrypt

func AesCBCDncrypt(encryptData, key, iv []byte) ([]byte, error)

func AesGCMDecrypt

func AesGCMDecrypt(crypted, key, nounce []byte) ([]byte, error)

htttps://github.com/cckuailong/HackChrome/blob/master/utils/cipher.go

func CopyFile

func CopyFile(source, dest string) bool

func Decode_with_key

func Decode_with_key(encryptedData []byte, masker_key []byte) (string, error)

func Des3Decrypt

func Des3Decrypt(key, iv []byte, src []byte) ([]byte, error)

func GetAllProfiles

func GetAllProfiles(path string) []string

func GetDirectories

func GetDirectories(path string) []string

遍历文件夹获取文件夹下的文件夹

func GetMozillakey

func GetMozillakey(FirefoxKey4File string) ([]byte, error)

func Get_files_in_dir

func Get_files_in_dir(path string) []string

遍历文件夹获取文件夹下的文件

func Get_item_from_xml

func Get_item_from_xml(xml_str, iteam string) []string

func Get_masker_key

func Get_masker_key(parent_dir string) ([]byte, error)

func Get_substr_by_regexp

func Get_substr_by_regexp(input, regexp_txt string) []string

func Meta

func Meta(globalSalt, masterPwd []byte, pbe MetaPBE) ([]byte, error)

func MozProfilePath

func MozProfilePath(browser_path string) []string

func Nss

func Nss(globalSalt, masterPwd []byte, pbe NssPBE) ([]byte, error)

func PKCS5UnPadding

func PKCS5UnPadding(src []byte) []byte

func PKCS7UnPadding

func PKCS7UnPadding(origData []byte) []byte

使用PKCS7进行填充,IOS也是7

func PaddingZero

func PaddingZero(s []byte, l int) []byte

func PathExists

func PathExists(path string) (bool, error)

判断文件或者文件夹是否存在

func Recovery_passwords_chromes

func Recovery_passwords_chromes() map[string][]Logins_table_struct

func Recovery_passwords_claswmail_decode

func Recovery_passwords_claswmail_decode(plian string, key []byte) string

func Recovery_passwords_claswmails

func Recovery_passwords_claswmails() map[string][]Logins_table_struct

func Recovery_passwords_ftpgetters

func Recovery_passwords_ftpgetters() map[string][]Logins_table_struct

func Recovery_passwords_mailbirds

func Recovery_passwords_mailbirds() map[string][]Logins_table_struct

func Recovery_passwords_mozillas

func Recovery_passwords_mozillas() map[string][]Logins_table_struct

func WinDecypt

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

Types

type Browser_info

type Browser_info struct {
	Browser_path     string
	Need_to_recovery bool
}

type DATA_BLOB

type DATA_BLOB struct {
	// contains filtered or unexported fields
}

func NewBlob

func NewBlob(d []byte) *DATA_BLOB

func (*DATA_BLOB) ToByteArray

func (b *DATA_BLOB) ToByteArray() []byte

type LoginPBE

type LoginPBE struct {
	CipherText []byte
	SequenceLogin
	Encrypted []byte
}

func DecodeLogin

func DecodeLogin(decodeItem []byte) (pbe LoginPBE, err error)

type Logins_json

type Logins_json struct {
	NextId        int
	Logins        []Logins_mozilla
	DisabledHosts []string
	Version       int
}

type Logins_mozilla

type Logins_mozilla struct {
	Id                   int
	Hostname             string
	HttpRealm            string
	FormSubmitURL        string
	UsernameFieid        string
	PasswordFiled        string
	Encryptedusername    string
	EncryptedPassword    string
	Guid                 string
	EncType              int
	TimeCreated          int
	TimeLastused         int
	TimePasswordChanaged int
	Timesused            int
}

type Logins_table_struct

type Logins_table_struct struct {
	Origin_url     string
	Action_url     string
	Username_value string
	Password_value string
	Date_created   string
	Password_type  int
	Times_used     int
}

func GetMozillaFromLogins

func GetMozillaFromLogins(profilePaths []string, applicationName string) []Logins_table_struct

func GetMozillaFromSQlite

func GetMozillaFromSQlite(profilePaths []string, applicationName string) []Logins_table_struct

signons.sqlite

func Recovery_passwords_Mailbird_by_accounts

func Recovery_passwords_Mailbird_by_accounts() []Logins_table_struct

func Recovery_passwords_Mailbird_by_senderIdentities

func Recovery_passwords_Mailbird_by_senderIdentities() []Logins_table_struct

func Recovery_passwords_claswmail

func Recovery_passwords_claswmail() []Logins_table_struct

func Recovery_passwords_ftpgetter

func Recovery_passwords_ftpgetter() []Logins_table_struct

func Recovery_passwords_mozilla

func Recovery_passwords_mozilla(browser_name, browser_path string) []Logins_table_struct

type MetaPBE

type MetaPBE struct {
	SequenceA
	Encrypted []byte
}

func DecodeMeta

func DecodeMeta(decodeItem []byte) (pbe MetaPBE, err error)

type Mysqldb

type Mysqldb struct {
	Sqldb *sql.DB
}

func ConnectDB

func ConnectDB(path string) (*Mysqldb, error)

func (Mysqldb) Close

func (p Mysqldb) Close()

func (Mysqldb) ReadTable_chrome_Logins

func (p Mysqldb) ReadTable_chrome_Logins() ([]Logins_table_struct, error)

func (Mysqldb) ReadTable_mailbird_accounts

func (p Mysqldb) ReadTable_mailbird_accounts() ([]Logins_table_struct, error)

func (Mysqldb) ReadTable_mailbird_senderIdentities

func (p Mysqldb) ReadTable_mailbird_senderIdentities() ([]Logins_table_struct, error)

type NssPBE

type NssPBE struct {
	SequenceA
	Encrypted []byte
}

func DecodeNss

func DecodeNss(nssA11Bytes []byte) (pbe NssPBE, err error)

type SequenceA

type SequenceA struct {
	PKCS5PBES2 asn1.ObjectIdentifier
	SequenceB
}

type SequenceB

type SequenceB struct {
	SequenceC
	SequenceD
}

type SequenceC

type SequenceC struct {
	PKCS5PBKDF2 asn1.ObjectIdentifier
	SequenceE
}

type SequenceD

type SequenceD struct {
	AES256CBC asn1.ObjectIdentifier
	IV        []byte
}

type SequenceE

type SequenceE struct {
	EntrySalt      []byte
	IterationCount int
	KeySize        int
	SequenceF
}

type SequenceF

type SequenceF struct {
	HMACWithSHA256 asn1.ObjectIdentifier
}

type SequenceLogin

type SequenceLogin struct {
	asn1.ObjectIdentifier
	Iv []byte
}

Jump to

Keyboard shortcuts

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