Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to retrieve any value, how should I use GetString() method? #35

Open
CaledoniaProject opened this issue Jul 22, 2023 · 0 comments

Comments

@CaledoniaProject
Copy link

Please take a look at this,

package main

import (
	"flag"
	"fmt"
	"log"

	"github.com/0xrawsec/golang-evtx/evtx"
)

func main() {
	flag.Parse()

	for _, filename := range flag.Args() {
		eventFile, err := evtx.OpenDirty(filename)
		if err != nil {
			log.Fatal(err)
		}

		for event := range eventFile.FastEvents() {
			if event.EventID() == 7045 {
				path1 := evtx.Path("/Event/EventData/param1")
				fmt.Println(event.GetString(&path1))
			}
		}
	}
}
@CaledoniaProject CaledoniaProject changed the title Unable to retrieve any value, hwo should I use GetString() method? Unable to retrieve any value, how should I use GetString() method? Jul 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant