python - 从 Python 向交互式 shell 发送命令

标签 python shell interactive

有没有办法将命令发送到另一个交互式 shell ?我们以metasploit中使用的meterpreter shell为例。一旦我控制了计算机并有一个 meterpreter shell 可以使用,这是否是一种从 python 代码向这个 shell 发出命令的方法?

我的意思是所有这些都来自Python代码。

最佳答案

关于python - 从 Python 向交互式 shell 发送命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7953996/

相关文章:

python - python 如何在乘法后对 float32 数字进行舍入?

python - 将管道放入字典

mysql - 导入具有 `max_allowed_packet` 限制问题且没有管理员访问权限的数据库

python - 使用 Paramiko 在 Python 中通过 ssh 实现交互式 shell?

r - 在 Leaflet Shiny 应用程序中,removeShape() 与 slider 交互性配合时出现问题

Python "cannot import ' ssl' 来自 'urllib3.util.ssl_'“错误

python - 如何在 matplotlib 中旋转 ticklabel_format?

linux - 如果未禁用,则禁用它并再次选择启用

linux - 根据用户输入将文本插入文件最后一行的 Shell 脚本

shell - 如何通过管道将输入和输出传送到交互式 shell?