-
Notifications
You must be signed in to change notification settings - Fork 3.7k
add new eventlog.py to examples #1799
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
base: master
Are you sure you want to change the base?
Conversation
Hi, thanks for the PR. Lets continue working in the context of this PR your ideas. Which other use cases would be great to add? Would it be possible to remove event logs for a specific event ID ? |
in a very basic scenario we can do Query (Predefined and/or Custom), Export and Subscribe logs. also it is possible to list log channels on remote computer. we can add them all one by one |
Doing so from a remote computer is impossible as I know. The remote api EvtRpcClearLog() only gets the log path (not event ID). but we can use other trick(s) to remove specific event ID. Maybe:
I didn't test this before but it should work in theory. Don't forget that the SMB protocol SHOULD be enable for file operations. |
@NtAlexio2 Great example! I wondered how would you do to add the export log feature, i tried to use your code
according to the MS-EVEN6 spec:
but i get the ERROR:root:rpc_x_bad_stub_data |
hey, i tried to execute your tests for EvtRpcExportLog and EvtRpcClearLog (#1798) but while EvtRpcClearLog passed EvtRpcExportLog did not pass, i am using a standard Windows 10 box with a local administrator account for the test
|
…tRpcExportLog signature to accept flags parameter
@marcobarlottini I fixed the code. thanks for your review. there was a misspelling datatype in EvtRpcExportLog type. as you can see now it passes the test:
|
@anadrianmanrique Also I added
Security log successfully exported to disk as you can see. |
This PR adds new file to examples folder. The file is added in order to PR #1798 and user is able to remove remote hosts eventlogs using this script. This is a very basic example of EVEN6 protocol usage. more features/options planned for future and also open to work by others ;)