예제 #1
0
 def test_close_connection(self):
     smb = self.create_connection()
     smb.login(self.username, self.password, self.domain)
     smb_connection_socket = smb.getSMBServer().get_socket()
     self.assertTrue(self.__is_socket_opened(smb_connection_socket) == True)
     smb.close()
     self.assertTrue(self.__is_socket_opened(smb_connection_socket) == False)
     del(smb)
예제 #2
0
파일: test_smb.py 프로젝트: yzpku/impacket
 def test_close_connection(self):
     smb = self.create_connection()
     smb.login(self.username, self.password, self.domain)
     smb_connection_socket = smb.getSMBServer().get_socket()
     self.assertTrue(self.__is_socket_opened(smb_connection_socket) == True)
     smb.close()
     self.assertTrue(self.__is_socket_opened(smb_connection_socket) == False)
     del(smb)