【问题标题】:Using python script to run commands on msfconsole使用 python 脚本在 msfconsole 上运行命令
【发布时间】:2017-11-24 13:40:37
【问题描述】:

即使它较旧,在 python 中,您也可以使用os.system() 在终端中运行命令。

我的问题是,如果您使用 msfconsole 输入 metasploit,那么后续的 os.system() 调用是否会将命令输入到 msfconsole 中?

【问题讨论】:

    标签: python os.system metasploit


    【解决方案1】:

    你需要使用:

    msfconsole -q -x " use exploit/multi/handler; set rhost $targetip;
    set lport $lport ; explot ;
    

    os.system.

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-01-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-01-19
      • 2012-05-31
      • 1970-01-01
      相关资源
      最近更新 更多