Hello everybody,
in this tutorial I am going to show you how you can easily create Payloads.
Let's get started.
Part 1: Install MSFPC
First of all, I would recommend using Kali Linux or Parrot OS as OS, but you can use what you want.
To get started you will need a program called MSFPC, and if you are running Kali Linux or Parrot it is included in the repo's.
Just write
Code
sudo apt install msfpc
If you are using generic Linux it is not that easy. I won't cover it here because I think most of you will use Kali. Anyways you can find the instructions on the GitHub Site.
Code
github(dot)com/g0tmi1k/mpc
Part 2: Use MSFPC
Once you installed MSFPC, you can't really do anything wrong.
The Basic syntax of creating a payload is:
Code
msfpc.sh <TARGET OS>
You see it is not that hard. Once you typed in the command you will have to select your Network Interface, just choose your interface (or type in your IP-Address) and press Enter.
Congratulations, you created a payload!
The payload is nice, but you can't get a connection without a handler. But don't worry MSFPC even covers the handler. When you created the payload MSFPC gave you a path to a ".rc" file, which is our handler.
You can just fire the handler up by typing:
Code
sudo msfconsole -q -r '/path/to/handler/handler-name.rc'
Happy Hacking! :)