> For the complete documentation index, see [llms.txt](https://ed4m4s.blog/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ed4m4s.blog/metasploit/msfvenom-tutorial.md).

# Msfvenom tutorial

Simple commands

#### Msfvenom Start

```
msfconsole

msfdb run         <--- This will start database and msfconsole at once. 
```

#### Msfvenom Help

```
msfvenom -h
```

#### Msfvenom Formats

```
msfvenom --help-formats
msfvenom -l formats
```

#### Msfvenom Payloads

```
msfvenom -l payloads
```

**Add Module from Exploit-DB**

```
searchsploit exploit_name
mkdir -p ~/.msf4/modules/exploits/name_of_the_exploit/exploit
searchsploit -m path/of/the/exploit.rb
msfconsole
search exploit
```

**SearchSploit tool**

```
searchsploit -u                                <-- Update searchsploit
searchsploit -m path/to/the/exploit            <-- Copy to cwd
searchsploit -x exploit                        <-- Look at the exploit contents
```
