예제 #1
0
파일: test_wkst.py 프로젝트: zpaav/impacket
 def test_hNetrWorkstationStatisticsGet(self):
     dce, rpc_transport = self.connect()
     try:
         resp2 = wkst.hNetrWorkstationStatisticsGet(dce, '\x00', 0, 0)
         resp2.dump()
     except Exception as e:
         if str(e).find('ERROR_INVALID_PARAMETER') < 0:
             raise
예제 #2
0
    def test_hNetrWorkstationStatisticsGet(self):
        dce, rpctransport = self.connect()

        try:
            resp2 = wkst.hNetrWorkstationStatisticsGet(dce, '\x00', 0, 0)
            resp2.dump()
        except Exception, e:
            if str(e).find('ERROR_INVALID_PARAMETER') < 0:
                raise