pywinauto来控制putty.exe

时间:2018-03-17 06:53:09

标签: 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}")

0 个答案:

没有答案