blob: c3c5c3a82bdd25e430d90b77c66483a2a48ce9f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/usr/bin/python
import dcerpc
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)
|