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 ...