Modules And Locations

From Metasploit Unleashed
Jump to: navigation, search

Metasploit, as presented to the user, is composed of modules.

Exploits

  • Defined as modules that use payloads
  • An exploit without a payload is an Auxiliary module


Payloads, Encoders, Nops

  • Payloads consist of code that runs remotely
  • Encoders ensure that payloads make it to their destination
  • Nops keep the payload sizes consistent.


Modules Locations

Primary Module Tree

  • Located under /usr/share/metasploit-framework/modules/


User-Specified Module Tree

  • Located under ~/.msf4/modules/
  • This location is ideal for private module sets


Loading Additional Trees at Runtime

  • Pass the -m option when running msfconsole (msfconsole -m)
  • Use the loadpath command within msfconsole




Introduction > Metasploit Architecture > Modules And Locations