Skip to content

📇 A Windows registry (regf) io/fs file system

License

Notifications You must be signed in to change notification settings

forensicanalysis/regffs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

regffs

doc

Read Windows registry files (regf) as io/fs.FS.

Example

func main() {
	f, _ := os.Open("testdata/SYSTEM")

	// init file system
	fsys, _ := regffs.New(f)

	// print all paths
	b, _ := fs.ReadFile(fsys, "ControlSet001/Control/ComputerName/ComputerName/ComputerName")
	s, _ := regffs.DecodeRegSz(b)
	fmt.Println(s)
	// Output: WKS-WIN732BITA
}

License

testdata is from https://github.com/log2timeline/plaso and therefore licenced under Apache License 2.0. The remaining files are MIT licensed.