使用meterpreter让没有安装python解释器的肉鸡设备执行任意python程序


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

 

# 需要在与目标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解释器

 

posted @ 2019-02-25 15:39  白桦林_HK  阅读(555)  评论(0编辑  收藏  举报