BCIS 4630 EXAM 3 STUDY GUIDE
Exploitation - Answer --The process of launching an exploit.
- A wide range of activities, tools, and options.
- Attack vectors may vary from target to target.
payload - Answer -PAYLOAD=code attacker wants the system to execute once
exploited
ex. add new users, install software, open backdoors, change files
shellcode - Answer --A set of instructions used as a payload during exploitation.
- Typically written in assembly language.
- In MSF, typically a shell (command console) or Meterpreter shell will be provided by
shellcode.
Mix-and-Match Approach= - Answer -Mix-and-Match Steps=
- The payloads are interchangeable and not tied to a specific exploit, provided both are
compatible with the system and vulnerability found
- Steps:
1. Identify a target
2. Select an exploit
3. Set exploit options
4. Select a payload
5. Set payload options
6. Exploit
Meterpreter (Meta-Interpreter) is a powerful command shell that was specifically made
for Metasploit: - Answer --command SHELL
-made for metasploit
- It runs entirely in memory and never touches things on the hard drive.
- Thus it achieves a great amount of stealth.
- In contrast, cmd or Linux shell starts a new process on the victim that can be detected.
- It runs with the privileges associated with the program that the exploit attacked.
EXPLOIT=code run to take advantage of vulnerability (gain administrative access) -
Answer -EXPLOITATION=launching of an exploit
(wide range & vary)
-A piece of code is run by an attacker to take advantage of a flaw or vulnerability in a
system or application.
- The goal typically is to gain administrative-level access to the target.
Know the major types of payload in Metasploit and the difference between bind_tcp and
reverse_tcp. - Answer -Metasploit=exploit framework(formal structure)
, Payloads==>
meterpreter/shell/vncinject
bind_tcp =
-creates connection
-from attacker to target
meterpreter/shell/reverse_tcp =
-creates reverse connection
-from hacker to target
adduser & exe
From slide
windows/meterpreter/bind_tcp= Runs Meterpreter on the victim
windows/meterpreter/reverse_tcp= Runs "reverse" version of Meterpreter
windows/adduser = Adds a new user in the local admin group of the victim
windows/exec = Runs an exe on the victim
windows/shell/bind_tcp = Opens a command shell on the victim
windows/shell/reverse_tcp = Victim connects back to the attacker and opens up a
command console on the victim
windows/vncinject/bind_tcp = Installs VNC on the victim and opens up VNC connection
windows/vncinject/reverse_tcp = The "reverse" version of the previous payload
Be able to set some common options for exploits and payloads, e.g., LHOST, RHOST,
LPORT. - Answer -OPTIONS=
-context specific
for exploit & payload
ex.
nsf exploit() > show options
> set lhost 10.1.41.220
show options, exploit, lhost, show options, explot
Hash - Answer --verifies integrity
-one single character change will cause the hash to be dramatically different.
Exploitation - Answer --The process of launching an exploit.
- A wide range of activities, tools, and options.
- Attack vectors may vary from target to target.
payload - Answer -PAYLOAD=code attacker wants the system to execute once
exploited
ex. add new users, install software, open backdoors, change files
shellcode - Answer --A set of instructions used as a payload during exploitation.
- Typically written in assembly language.
- In MSF, typically a shell (command console) or Meterpreter shell will be provided by
shellcode.
Mix-and-Match Approach= - Answer -Mix-and-Match Steps=
- The payloads are interchangeable and not tied to a specific exploit, provided both are
compatible with the system and vulnerability found
- Steps:
1. Identify a target
2. Select an exploit
3. Set exploit options
4. Select a payload
5. Set payload options
6. Exploit
Meterpreter (Meta-Interpreter) is a powerful command shell that was specifically made
for Metasploit: - Answer --command SHELL
-made for metasploit
- It runs entirely in memory and never touches things on the hard drive.
- Thus it achieves a great amount of stealth.
- In contrast, cmd or Linux shell starts a new process on the victim that can be detected.
- It runs with the privileges associated with the program that the exploit attacked.
EXPLOIT=code run to take advantage of vulnerability (gain administrative access) -
Answer -EXPLOITATION=launching of an exploit
(wide range & vary)
-A piece of code is run by an attacker to take advantage of a flaw or vulnerability in a
system or application.
- The goal typically is to gain administrative-level access to the target.
Know the major types of payload in Metasploit and the difference between bind_tcp and
reverse_tcp. - Answer -Metasploit=exploit framework(formal structure)
, Payloads==>
meterpreter/shell/vncinject
bind_tcp =
-creates connection
-from attacker to target
meterpreter/shell/reverse_tcp =
-creates reverse connection
-from hacker to target
adduser & exe
From slide
windows/meterpreter/bind_tcp= Runs Meterpreter on the victim
windows/meterpreter/reverse_tcp= Runs "reverse" version of Meterpreter
windows/adduser = Adds a new user in the local admin group of the victim
windows/exec = Runs an exe on the victim
windows/shell/bind_tcp = Opens a command shell on the victim
windows/shell/reverse_tcp = Victim connects back to the attacker and opens up a
command console on the victim
windows/vncinject/bind_tcp = Installs VNC on the victim and opens up VNC connection
windows/vncinject/reverse_tcp = The "reverse" version of the previous payload
Be able to set some common options for exploits and payloads, e.g., LHOST, RHOST,
LPORT. - Answer -OPTIONS=
-context specific
for exploit & payload
ex.
nsf exploit() > show options
> set lhost 10.1.41.220
show options, exploit, lhost, show options, explot
Hash - Answer --verifies integrity
-one single character change will cause the hash to be dramatically different.