๐ฏ Targets
๐ง What Are Targets?
Targets define specific OS/software combinations for which an exploit is designed.
Choosing the correct target ensures the payload and return addresses work as intended.
๐ ๏ธ show targets
Command
show targets
CommandUsed within an exploit module to list all available target configurations.
Run outside a module = error: "No exploit module selected."
๐ Target Structure Example
Many modules have:
๐งช Target Selection
You can manually set the exploit's target using:
If left as
0
(Automatic), Metasploit attempts to detect the version during exploitation.
๐ View Module Info Before Targeting
Learn what the exploit does and its known vulnerable targets.
Best practice: Read
info
before using unknown exploits.
โ๏ธ Return Address Relevance
Targets differ in:
OS version
Service pack
Language
DLL versions
These affect:
jmp esp
pop pop ret
Other return address logic.
๐ ๏ธ Tools for Target Research
๐งพ Comments in exploit code often provide insights into target requirements.
๐ Use
msfpescan
to find return addresses in binaries (for exploit dev work).
๐ Summary Commands
Last updated