标签: python pywinauto
如何查看' msfconsole'的结果?命令?
app_Putty = Application().Start(cmd_line='putty -ssh user@10.10.10.10 ') app_Putty.top_window_().TypeKeys("password {ENTER}") time.sleep(5) command = 'msfconsole' app_Putty.top_window_().TypeKeys(command+"{ENTER}")