
By: S-Connect
October 29, 2015
Understanding the Metasploit Framework

By: S-Connect
October 29, 2015

Basic Library for most tasks
Handles sockets, protocols, text transformation and others
SSL, SMB, HTTP, XOR, Base64, Unicode
Msf: CoreProvides the ‘basic’ API
Defines the Metasploit Framework
Msf: BaseProvides the ‘Friendly’ API
Provides simplified APIs for use in the Framework
ModulesExploits - as Modules that use payloads
Auxiliary - An exploit without a payload
Payloads - Consist of code that runs remotely, Create at run-time with various component
Encoders - Ensure that payloads make it to their destination
Nops - Keep the payload sizes consistent
Mixins and PluginsMixins - 'Include' one class into another; add new features and allows module to have different 'flavors'
PayloadsThree different types of payload module types in Metasploit:i. Protocol-specific (HTTP, SMB)
ii. Behavior-specific (Brute Force)
iii. Connect ()
Plugins - Work directly with the API- Manipulate the framework as a whole
- They automate the specific tasks which would be tedious to do manually
i. Single
ii. Stagers
iii. Stages
SinglePayloads that are self-contained and completely standalone i.e as simple as adding user to the target system or running calc.exe.
StagersSetup a network connection between the attacker and victim and are designed to be small and reliable.StagesPayload components that are downloaded by Stagers modules.Provide advanced features with no size limits such as Meterpreter, VNC Injection and the iPhone 'ipwn' Shell.Note: Payload stages automatically use "middle stagers" MeterpreterMeterpreter is an advanced, dynamically extensible payload that uses in-memory DLL injection stagers and is extended over the network at runtime. Design GoalsSteathly --> Meterpreter resides entirely in memory and writes nothing to disk.No new processes are created, as Meterpreter injects itself into the compromised process and can migrate to other running processes easily.By default, Meterpreter uses encrypted communications.All of these provide limited forensic evidence and impact on the victim machine.Meterpreter utilizes a channelized communication system.Stay Linked!Thanks,Tabish Ali