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

logging nt kernel logger or windows kernel trace #32

Open
joemikhailgwu opened this issue Oct 21, 2019 · 5 comments
Open

logging nt kernel logger or windows kernel trace #32

joemikhailgwu opened this issue Oct 21, 2019 · 5 comments

Comments

@joemikhailgwu
Copy link

When logging nt kernel logger or windows kernel trace providers, there are no results. Any tips?

@abergl
Copy link
Contributor

abergl commented Oct 21, 2019

Run as administrator.

@joemikhailgwu
Copy link
Author

I am running as administrator. All the other providers work fine.

@SuprHackerSteve
Copy link
Contributor

@joemikhailgwu can you verify this is an issue with pywintrace by trying the same actions on Microsoft Message Analyzer?

@ifUpEth0
Copy link

ifUpEth0 commented Dec 9, 2019

I have encountered the same as above. Running an admin shell on Windows 10. I cannot try and test with MS Message Analyzer as it was deprecated and remove from their sites before November.

Ref Code:
`
#! python3

from log import Log
import time
import etw

def some_func(log):
providers = [etw.ProviderInfo('Microsoft-Windows-Kernel-EventTracing', etw.GUID("{B675EC37-BDB6-4648-BC92-F3FDC74D3CA2}"))]
# create instance of ETW class
job = etw.ETW(providers=providers, event_callback=lambda x: log.Write(f"{x}\n"))
# start capture
job.start()

while 1:
    pass

# stop capture
job.stop()

log = Log()
some_func(log)
`

@ifUpEth0
Copy link

ifUpEth0 commented Dec 9, 2019

Interestingly I found I could test much of this with logman and found many of the kernel level providers did not provide much via it either. For disks at the kernel level I am getting some useful info with, Microsoft-Windows-Kernel-Disk should anyone be interested.

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

4 participants