예제 #1
0
    def test_hNetrpGetFileSecurity_hNetrpSetFileSecurity(self):
        dce, rpctransport = self.connect()
        resp = srvs.hNetrpGetFileSecurity(dce, 'C$\x00',  '\\Windows\x00', OWNER_SECURITY_INFORMATION)
        #hexdump(resp)

        resp = srvs.hNetrpSetFileSecurity(dce,'C$\x00',  '\\Windows\x00', OWNER_SECURITY_INFORMATION, resp )
        resp.dump()
예제 #2
0
    def test_hNetrpGetFileSecurity_hNetrpSetFileSecurity(self):
        dce, rpctransport = self.connect()
        resp = srvs.hNetrpGetFileSecurity(dce, 'C$\x00',  '\\Windows\x00', OWNER_SECURITY_INFORMATION)
        #hexdump(resp)

        resp = srvs.hNetrpSetFileSecurity(dce,'C$\x00',  '\\Windows\x00', OWNER_SECURITY_INFORMATION, resp )
        resp.dump()