目标设备不需安装python解释器就能让其执行python程序

 

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

# 需要在与目标meterpreter的session中加载python模块

meterpreter > load python ====>先要加载python插件(我猜这个动作是将python解释器顺着木马这个通道传输到了目标设备的内存中)
meterpreter > help ====>加载python插件后help看到多了几个命令


# 多的几个命令说明:
Python Commands
===============

Command Description
------- -----------
python_execute 在目标设备上执行简单的python语句,而不是文件(相当于命令行中的python,例:python_execute "print('test');print('test_2')")
python_import 在目标设备上执行指定的python程序
python_reset 在目标设备上重置python解释器

 

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄