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

How to use this package? #33

Open
irwansyafani opened this issue Feb 1, 2023 · 1 comment
Open

How to use this package? #33

irwansyafani opened this issue Feb 1, 2023 · 1 comment

Comments

@irwansyafani
Copy link

I'm not Go developer, but need to use this package to read .evtx file until create a json file. I already create 1 to learn how to use this package but still confused. Can anybody help?

package main

import (
	"fmt"
	"os"

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

func main() {
	data, _ := os.ReadFile("something.evtx")
	fmt.Printf(evtx.ToJSON(data))
}
@CaledoniaProject
Copy link

The evtxdump binary does exactly what you want. You action is unnecessary. https://github.com/0xrawsec/golang-evtx/tree/master/tools/evtxdump

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

2 participants