Hi I want to do this in my lab environment:
When meterpreter shell is gained, automatically I want to execute console commands such as route add
, jobs -K
or use some other exploit or auxiliary modules. There is multicommand
, multi_console_command
and other ruby scripts to do that using AutoRunScript
option in msf handler. Unfortunately all of those scripts only run commands in meterpreter
session and I want to change this logic. I want to run them in console. Consider this scenario, you want to kill job when session is come and add route then run another auxiliary module.
How to do that?