samreader

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2021 License: GPL-3.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Domain_Account_F

type Domain_Account_F struct {
	Data []byte
	// contains filtered or unexported fields
}

func NewF

func NewF(b []byte) Domain_Account_F

type KeyData

type KeyData struct {
	Key []byte
}

type SAMEntries

type SAMEntries struct {
	Username, FullName, Comment,
	UserComment,

	Homedir,
	HomedirConnect,
	ScriptPath,
	ProfilePath,
	Workstations,
	HoursAllowed,

	LMHash,
	NTLMHash,
	NTLMHistory,
	LMHistory SAMEntry
	// contains filtered or unexported fields
}

type SAMEntry

type SAMEntry struct {
	Offset uint32
	Length uint32
	// contains filtered or unexported fields
}

func (SAMEntry) GetData

func (s SAMEntry) GetData(b []byte) []byte

type SAMHash

type SAMHash struct {
	PekID    uint16
	Revision uint16
	Hash     [16]byte
}

type SAMHashAES

type SAMHashAES struct {
	SAMHashAESInfo
	Hash []byte
}

func NewSamHashAES

func NewSamHashAES(b []byte) SAMHashAES

type SAMHashAESInfo

type SAMHashAESInfo struct {
	PekID      uint16
	Revision   uint16
	DataOffset uint32
	Salt       [16]byte
}

type SAMKeyData

type SAMKeyData struct {
	Revision uint32 //2
	Length   uint32
	Salt     [16]byte
	Key      [16]byte
	Checksum [16]byte
	Reserved [2]uint32
}

type SAMKeyDataAES

type SAMKeyDataAES struct {
	Revision uint32 //3
	Length   uint32
	CheckLen uint32
	DataLen  uint32
	Salt     [16]byte
	Data     [32]byte
}

type SamReader

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

func New

func New(system, sam string) (SamReader, error)

New Creates a new dit dumper

func NewLive

func NewLive() (SamReader, error)

func (SamReader) Dump

func (d SamReader) Dump() error

func (SamReader) GetOutChan

func (d SamReader) GetOutChan() <-chan ditreader.DumpedHash

GetOutChan returns a reference to the objects output channel for read only operations

func (SamReader) GetRids

func (d SamReader) GetRids() ([]uint32, error)

func (SamReader) SysKey

func (d SamReader) SysKey() []byte

type User_Account_V

type User_Account_V struct {
	SAMEntries
	Data []byte
}

func (User_Account_V) UsernameString

func (u User_Account_V) UsernameString() string

Jump to

Keyboard shortcuts

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