Install payload using MSFvenom

With the help of MSFPC, you can quickly create payloads based on the msfvenom module that is part of the Metasploit Framework.

Thus, MSFvenom Payload Creator is a wrapper for creating multiple types of payloads, such as APK (.apk), ASP (.asp), ASPX (.aspx), BASH (.sh), Java (.jsp), Linux (. elf), OSX (.macho), Perl (.pl), PHP (.php), Powershell (.ps1), Python (.py), Tomcat (.war) and Windows (.exe / .dll).

You can even create massive payloads with the command "batch”And create a payload for all modules. Just use “loop".

Installing MSFPC on Kali Linux

MSFPC can be installed via Git Clone by typing the following command:

Command: git clone

Or you can even install the above script via the apt-get command already available on Kali Linux.

Command: apt-get install -y msfpc

Full text of the MSFPC -

Some examples:

  • windows # Windows with manual IP.
  • elf bind eth0 4444 # Linux, IP0 & manual port eth0.
  • stageless cmd py https # Python, stageless command line.
  • verbose loop eth1 # A payload for each type using eth1's IP.
  • msf batch wan # All possible meter payloads using IP WAN.
  • help verbose # Help screen, with even more information.

So let's try to create the payload for the windows machine by typing " bash windows On your console.

In the first step, it will automatically ask you to use the interface (lo, eth0, wan).

If you want to use your payload locally as in VM machines, then go with eth0 ie 2nd option and if you want to use this payload for WAN, then the 3rd number is the right choice.

So, after setting the IP in the msfpc script, it will automatically generate your payload based on the type of Windows and use the default settings, such as PORT is 443 which is the default port and the default payload is “windows / meterpreter / reverse_tcp ”.

If you already know your IP (eth0 or wan), then you can even use the direct command to create the payload:

Command: windows

The file will be saved in the directory / root / mpc .

For Linux, fully automated use of manual interface and port

Mandate: bash elf bind eth0 4444 verbose

For Python, interactive IP menu

Command: bash stageless cmd py tcp

The loop function creates one of everything

Command: ./ loop wan The Best Technology Site in Greecefgns

Subscribe to Blog by Email

Subscribe to this blog and receive notifications of new posts by email.

Written by Anastasis Vasileiadis

Translations are like women. When they are beautiful they are not faithful and when they are faithful they are not beautiful.

Leave a reply

Your email address is not published. Required fields are mentioned with *

Your message will not be published if:
1. Contains insulting, defamatory, racist, offensive or inappropriate comments.
2. Causes harm to minors.
3. It interferes with the privacy and individual and social rights of other users.
4. Advertises products or services or websites.
5. Contains personal information (address, phone, etc.).