Comments (9)
Hi,
I think I would need your evtx file to understand where the issue is. Do you think you could share it with me?
from golang-evtx.
yep of cuz,I'll upload it to transfer.sh
the problem is when evtx file contains chinese ( actully I cant confirm what character set is ) , dump it to json format , the chinese will be converted like this \ufffd/\ufffd
the evtx file download url is https://transfer.sh/Tph0T/chinese.evtx
from golang-evtx.
BTW golang-evtx is a very useful lib more than libevtx , thx for ur hardwork ;)
from golang-evtx.
Thanks, I am glad this lib and tools help people. Actually I decided to start the development facing the limitations of libevtx and other evtx parsing libs. I have retrieved your evtx file and I will have a look in the coming days.
from golang-evtx.
Hi,This is the result of my investigation today
a event record of json format:
{
"Event": {
"EventData": {
"param1": "VMware Log Browser",
"param2": "70308",
"param3": "60000",
"param4": "1",
"param5": "Ͱ/\ufffd\r\ufffd" //this string should be "重新启动服务"
},
"System": {
"Channel": "System",
"Computer": "ETYY-WSPX",
"Correlation": {},
"EventID": {
"Qualifiers": "49152",
"Value": "7031"
},
"EventRecordID": "2365472",
"Execution": {
"ProcessID": "512",
"ThreadID": "3092"
},
"Keywords": "0x8080000000000000",
"Level": "2",
"Opcode": "0",
"Provider": {
"EventSourceName": "Service Control Manager",
"Guid": "{555908d1-a6d7-4695-8e1e-26931d2012f4}",
"Name": "Service Control Manager"
},
"Security": {},
"Task": "0",
"TimeCreated": {
"SystemTime": "2017-07-13T02:47:06Z"
},
"Version": "0"
}
}
}
I insert some code into line 797 of file "structs.go"
if (i == 4) {
fmt.Printf("===> ValDesc: %v - Val: %T - I: %d \n",tid.ValDescs[i],tid.Values[i],i)
}
fmt.Printf("ValDesc: %v - Val: %v - Err: %v \n",tid.ValDescs[i],tid.Values[i],err)
and console shows that
ValDesc: Size: 36 ValType: 0x01 Unk: 0x00 - Val: VMware Log Browser - Err: <nil>
ValDesc: Size: 10 ValType: 0x01 Unk: 0x00 - Val: 70309 - Err: <nil>
ValDesc: Size: 10 ValType: 0x01 Unk: 0x00 - Val: 60000 - Err: <nil>
ValDesc: Size: 2 ValType: 0x01 Unk: 0x00 - Val: 1 - Err: <nil>
===> ValDesc: Size: 12 ValType: 0x01 Unk: 0x00 - Val: *evtx.ValueString - I: 4
� - Err: <nil>
so I trace the call stack , and I think the problem is probably because of Parse function about ValueString.
the Parse function located at line 348 of the file "values.go", the original character 重新启动服务
which in utf16 should be \u91CD \u65B0 \u542F \u52A8 \u670D \u52A1]
.
but after executed these two lines
s.value = make(UTF16String, s.Size/2)
return encoding.UnmarshaInitSlice(reader, &s.value, Endianness)
the s.value will be [cd91 b065 2f54 a852 0d67 a152]
from golang-evtx.
Hi,
I found out the issue. I will push the update tomorrow evening, the time for me to propagate the changes. Thank you very much for your help, it allowed me to save some time.
Cheers,
from golang-evtx.
Hi,
I committed the changes, could you try that it works as you expect.
From what I saw in my tests, it looks correct.
Cheers,
from golang-evtx.
OK I'll try to test it and give u a quick replay soon.
updated:
Now it looks like golang-evtx works very well in anticipation
We can close this issue now
Thx very much again ;)
from golang-evtx.
Thanks to you for the time spent debugging and testing :)
from golang-evtx.
Related Issues (20)
- PANIC - Not initialized slice: parsing *evtx.ValueText HOT 11
- Error checking on corrupt EVTX files HOT 1
- Better precision in SystemTime using evtxdump HOT 3
- Clarification on datetime HOT 3
- bit 0 of the flag in evtx can not be read? HOT 2
- Question: Can I use evtxmon to read from evtx file paths that are active? HOT 1
- Bad TimeStamp On Windows 10 HOT 1
- Some new logs cannot be dumped with archive logs HOT 5
- Live-monitoring seems not to be working HOT 3
- *evtx.File.Events() method seems to be broken HOT 1
- Data race HOT 5
- Change base in GoEvtxMap.GetInt
- Get Events by Type
- BackupSeeker of evtx.File? HOT 2
- Bookmarking
- How to use this package? HOT 1
- What exactly does ModeCarving do? HOT 2
- Unable to retrieve any value, how should I use GetString() method?
- Dockerfile not working
- panic: Index out of range
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from golang-evtx.