当前正在尝试记录传出TCP连接的列表,然后将当前列表与上一个列表进行比较,以查看已建立的连接。然而,TCPView.exe似乎运气不佳。我可以通过以下方式运行应用程序:
def get_tcp_conns():
process = Popen([r"C:\Users\PC\Downloads\TCPView\Tcpview.exe"], stdout=PIPE, shell=True)
for line in io.TextIOWrapper(proc.stdout, encoding="utf-8"):
print(line) # Do whatever here
但是,这不会返回任何文本。我不知道该怎么做,因为我不知道如何在python中读取TCP信息
应该是
相关问题 更多 >
编程相关推荐