mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
r2739: Start of torture test for winreg wrappers.
This commit is contained in:
parent
f4a7a3282a
commit
cf9b984b84
23
source/scripting/swig/torture/winreg.py
Executable file
23
source/scripting/swig/torture/winreg.py
Executable file
@ -0,0 +1,23 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
import dcerpc
|
||||
|
||||
def test_OpenHKLM(pipe):
|
||||
|
||||
r = {}
|
||||
r['unknown'] = {}
|
||||
r['unknown']['unknown0'] = 0x84e0
|
||||
r['unknown']['unknown1'] = 0
|
||||
r['access_required'] = 0x02000000
|
||||
|
||||
dcerpc.winreg_OpenHKLM(pipe, r)
|
||||
|
||||
def runtests(binding, domain, username, password):
|
||||
|
||||
print 'Testing WINREG pipe'
|
||||
|
||||
pipe = dcerpc.pipe_connect(binding,
|
||||
dcerpc.DCERPC_WINREG_UUID, dcerpc.DCERPC_WINREG_VERSION,
|
||||
domain, username, password)
|
||||
|
||||
test_OpenHKLM(pipe)
|
Loading…
Reference in New Issue
Block a user