-
Book Overview & Buying
-
Table Of Contents
Metasploit Bootcamp
By :
Metasploit offers automation through resource scripts. The resource scripts eliminate the need to set the options manually, setting up everything automatically, thereby saving the large amount of time needed to set up the payload and the module's options.
There are two ways to create a resource script--namely by creating the script manually or using the makerc command. I recommend the makerc command over manual scripting since it eliminates typing errors. The makerc command saves all the previously issued commands in a file, which can be used with the resource command. Let us see an example:

We can see in the preceding screenshot that we launched an exploit handler module by setting up its associated payload and options such as LHOST and LPORT. Issuing the makerc command will save all these commands in a systematic way into a file of our choice, which in this case is multi_hand. We can see that makerc successfully saved the last six commands into the multi_hand...
Change the font size
Change margin width
Change background colour