keys

package
v0.0.0-...-75a46ef Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: BSD-3-Clause, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(task structs.Task)

Run - extract key data

Types

type KeyInformation

type KeyInformation interface {
	KeyType() string
	Data() []byte
}

KeyInformation - interface for key data

type Keydetails

type Keydetails struct {
	Name        string            `json:"name"`
	ID          int32             `json:"id"`
	Permissions Permissiondetails `json:"permissions"`
	Keytype     string            `json:"keytype"`
	UID         int               `json:"uid"`
	Valid       bool              `json:"valid"`
	Data        string            `json:"string"`
}

Keydetails - struct that holds information about a key

func ListKeysForProcess

func ListKeysForProcess() ([]Keydetails, error)

func ListKeysForSession

func ListKeysForSession() ([]Keydetails, error)

ListKeysForSession - List all of the keys for the current session

func ListKeysForThreads

func ListKeysForThreads() ([]Keydetails, error)

func ListKeysForUserSession

func ListKeysForUserSession() ([]Keydetails, error)

ListKeysForUserSession - List all of the keys private to the current user

func Searchcurrentsessionkeyring

func Searchcurrentsessionkeyring(name string) ([]Keydetails, error)

func Searchforkeywithtype

func Searchforkeywithtype(name string, typeName string) ([]Keydetails, error)

type Keyresults

type Keyresults struct {
	Results []Keydetails `json:"results"`
}

Keyresults - struct to hold array of keys

type LinuxKeyInformation

type LinuxKeyInformation struct {
	KeyType string
	KeyData []byte
}

KeyContents - struct that represent raw key contents

func (*LinuxKeyInformation) Data

func (l *LinuxKeyInformation) Data() []byte

KeyData - Retrieve the keydata as a raw json string

func (*LinuxKeyInformation) Type

func (l *LinuxKeyInformation) Type() string

Type - The type of key information. Keyring or keychain

type Options

type Options struct {
	Command  string `json:"command"`
	Keyword  string `json:"keyword"`
	Typename string `json:"typename"`
}

Options - options for key data command

type Permissiondetails

type Permissiondetails struct {
	User    string `json:"user"`
	Process string `json:"process"`
	Other   string `json:"other"`
	Group   string `json:"group"`
}

Permissiondetails - struct that holds permission details for a given key

Jump to

Keyboard shortcuts

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