I'm on the MSF Pro trial and I was wondering if there's anyway to run exploit/windows/local/persistence everytime a new client connects (like a macro). Is there any way to do it??
I think you can use:
set AutoRunScript exploit/windows/local/persistence
Although using it with the Pro Version I am not familiar with.
By "Macro's" I assume you wish to automate multiple processes;In addition to DL Evenden's correct answer on automating a single action you can also do the following to further automate meterpreter.You do so by entering one command per line in a text file, saving it as yourscript.rc and using;
set AutoRunScript multi_console_command -rc /path/to/yourscript.rc
Which will run all your commands 1 by 1 upon starting the meterpreter-shell.
Unfortunately also I am unfamiliar with the workings of MSF Pro.
Retrieving data ...