Skip to content

Commit

Permalink
add tests for even6 EvtRpcClearLog and EvtRpcExportLog requests
Browse files Browse the repository at this point in the history
  • Loading branch information
NtAlexio2 committed Sep 3, 2024
1 parent 07057d9 commit a6bfe40
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions tests/dcerpc/test_even6.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,34 @@ class EVEN6Tests(DCERPCTests):
authn = True
authn_level = RPC_C_AUTHN_LEVEL_PKT_PRIVACY

def test_EvtRpcClearLog(self):
dce, rpctransport = self.connect()

resp = even6.hEvtRpcRegisterControllableOperation(dce)
resp.dump()

control_handle = resp['Handle']

resp = even6.hEvtRpcClearLog(dce, control_handle, 'Security\x00')
resp.dump()

resp = even6.hEvtRpcClose(dce, control_handle)
resp.dump()

def test_EvtRpcExportLog(self):
dce, rpctransport = self.connect()

resp = even6.hEvtRpcRegisterControllableOperation(dce)
resp.dump()

control_handle = resp['Handle']

resp = even6.hEvtRpcExportLog(dce, control_handle, 'Security\x00', '*\x00', 'C:\\Security_Log_Exported.evtx\x00')
resp.dump()

resp = even6.hEvtRpcClose(dce, control_handle)
resp.dump()

def test_EvtRpcRegisterLogQuery_EvtRpcQueryNext(self):
dce, rpctransport = self.connect()

Expand Down

0 comments on commit a6bfe40

Please sign in to comment.