blob: 479f447860ec5bb336a5260863b7220254604e07 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/usr/bin/python
import dcerpc
import gc
gc.set_debug(gc.DEBUG_LEAK)
handle = dcerpc.pipe_connect("ncacn_np:win2k3dc",
dcerpc.DCERPC_SAMR_UUID, dcerpc.DCERPC_SAMR_VERSION,
"win2k3dom", "administrator", "penguin")
connect = {"system_name": "win2k3dc", "access_mask": 12345}
print dcerpc.samr_Connect2(handle, connect)
|