July 2011
Intermediate to advanced
328 pages
9h 1m
English
Resource files are script files that automate commands within msfconsole. They contain a list of commands that are executed from msfconsole and run sequentially. Resource files can greatly reduce testing and development times, allowing you to automate many repetitive tasks, including exploitation.
Resource files can be loaded from msfconsole with the resource command, or they can be passed as a command-line argument with the -r switch.
The simple example shown next creates a resource file that displays our Metasploit version and then loads the sounds plug-in:
root@bt:/opt/framework3/msf3/echo version > resource.rcroot@bt:/opt/framework3/msf3/ ...
Read now
Unlock full access