Linux command
msfpc 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Generate Windows payload
msfpc windows [192.168.1.10]
Generate Linux payload
msfpc linux [192.168.1.10]
Generate with specific port
msfpc windows [192.168.1.10] [4444]
Generate Meterpreter payload
msfpc windows msf [192.168.1.10]
Generate staged reverse payload
msfpc windows staged reverse [192.168.1.10]
Generate Python payload
msfpc python [192.168.1.10]
Generate all payload types
msfpc loop [192.168.1.10]
说明
msfpc (MSFvenom Payload Creator) simplifies payload generation. It wraps msfvenom functionality. The tool creates common payloads quickly. Generates handlers and multi-format outputs.
参数
- cmd
- Use standard native command prompt/terminal shell.
- msf
- Use Meterpreter shell (default when available).
- bind
- Open a port on the target for the attacker to connect to.
- reverse
- Make the target connect back to the attacker (default).
- staged
- Split payload into parts (smaller, requires Metasploit).
- stageless
- Complete standalone payload (more stable).
- tcp / http / https
- Protocol for the connection. TCP is default.
- batch
- Generate all possible payloads for the given type.
- loop
- Generate one payload of every type.
- verbose
- Enable verbose output.
FAQ
What is the msfpc command used for?
msfpc (MSFvenom Payload Creator) simplifies payload generation. It wraps msfvenom functionality. The tool creates common payloads quickly. Generates handlers and multi-format outputs.
How do I run a basic msfpc example?
Run `msfpc windows [192.168.1.10]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does cmd do in msfpc?
Use standard native command prompt/terminal shell.