Esempio n. 1
0
def runtests(binding, creds):

    print "Testing SAMR pipe"

    pipe = dcerpc.pipe_connect(binding, dcerpc.DCERPC_SAMR_UUID, int(dcerpc.DCERPC_SAMR_VERSION), creds)

    handle = test_Connect(pipe)
    test_ConnectHandle(handle)
def runtests(binding, creds):

    print 'Testing SAMR pipe'

    pipe = dcerpc.pipe_connect(binding, dcerpc.DCERPC_SAMR_UUID,
                               int(dcerpc.DCERPC_SAMR_VERSION), creds)

    handle = test_Connect(pipe)
    test_ConnectHandle(handle)
def runtests(binding, domain, username, password):
    
    print 'Testing SPOOLSS pipe'

    pipe = dcerpc.pipe_connect(binding,
            dcerpc.DCERPC_SPOOLSS_UUID, dcerpc.DCERPC_SPOOLSS_VERSION,
            domain, username, password)

    test_EnumPrinters(pipe)
    test_EnumPrinterDrivers(pipe)
    test_PrintServer(pipe)
Esempio n. 4
0
def runtests(binding, domain, username, password):

    print "Testing SPOOLSS pipe"

    pipe = dcerpc.pipe_connect(
        binding, dcerpc.DCERPC_SPOOLSS_UUID, dcerpc.DCERPC_SPOOLSS_VERSION, domain, username, password
    )

    test_EnumPrinters(pipe)
    test_EnumPrinterDrivers(pipe)
    test_PrintServer(pipe)
Esempio n. 5
0
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)

    handle = test_OpenHKLM(pipe)

    test_Key(pipe, handle, 'HKLM')
Esempio n. 6
0
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)

    handle = test_OpenHKLM(pipe)

    test_Key(pipe, handle, 'HKLM')