0xrawsec / golang-evtx

GNU General Public License v3.0
157 stars 26 forks source link

How to use this package? #33

Open irwansyafani opened 1 year ago

irwansyafani commented 1 year ago

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 commented 1 year ago

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