• Close
  • Back to search

    MS06-040 Microsoft Server Service NetpwPathCanonicalize Overflow

    This module exploits a stack buffer overflow in the NetApi32 CanonicalizePathName() function using the NetpwPathCanonicalize RPC call in the Server Service. It is likely that other RPC calls could be used to exploit this service. This exploit will result in a denial of service on Windows XP SP2 or Windows 2003 SP1. A failed exploit attempt will likely result in a complete reboot on Windows 2000 and the termination of all SMB-related services on Windows XP. The default target for this exploit should succeed on Windows NT 4.0, Windows 2000 SP0-SP4+, Windows XP SP0-SP1 and Windows 2003 SP0.

    Free Metasploit Download

    Get your copy of the world's leading penetration testing tool

     Download Now

    Module Name



    • hdm <x [at] hdm.io>



    • (wcscpy) Automatic (NT 4.0, 2000 SP0-SP4, XP SP0-SP1)
    • (wcscpy) Windows NT 4.0 / Windows 2000 SP0-SP4
    • (wcscpy) Windows XP SP0/SP1
    • (stack) Windows XP SP1 English
    • (stack) Windows XP SP1 Italian
    • (wcscpy) Windows 2003 SP0


    • windows



    Module Options

    To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

    msf > use exploit/windows/smb/ms06_040_netapi msf exploit(ms06_040_netapi) > show targets ...targets... msf exploit(ms06_040_netapi) > set TARGET <target-id> msf exploit(ms06_040_netapi) > show options ...show and set options... msf exploit(ms06_040_netapi) > exploit

    Related Vulnerabilities