Using the multiscript module in AutoRunScript option

We can also use a multiscript module instead of the multi_console_command module. Let's create a new post-exploitation script, as follows:

As we can see in the preceding screenshot, we created a new post-exploitation script named multi_scr.rc. We need to make changes to our exploitation script to accommodate the changes, as follows:

We merely replaced multi_console_command with multiscript, and updated the path of our post-exploitation script, as shown in the preceding screenshot. Let's see ...

Get Mastering Metasploit - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.