Vulnerability & Exploit Database

Back to search

MS06-025 Microsoft RRAS Service RASMAN Registry Overflow

This module exploits a registry-based stack buffer overflow in the Windows Routing and Remote Access Service. Since the service is hosted inside svchost.exe, a failed exploit attempt can cause other system services to fail as well. A valid username and password is required to exploit this flaw on Windows 2000. When attacking XP SP1, the SMBPIPE option needs to be set to 'SRVSVC'. Exploiting this flaw involves two distinct steps - creating the registry key and then triggering an overwrite based on a read of this key. Once the key is created, it cannot be recreated. This means that for any given system, you only get one chance to exploit this flaw. Picking the wrong target will require a manual removal of the following registry key before you can try again: HKEY_USERS\.DEFAULT\Software\Microsoft\RAS Phonebook

Free Metasploit Download

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

 Download Now

Module Name



  • pusscat <pusscat [at]>
  • hdm <x [at]>



  • Windows 2000 SP4


  • 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_025_rasmans_reg msf exploit(ms06_025_rasmans_reg) > show targets ...targets... msf exploit(ms06_025_rasmans_reg) > set TARGET <target-id> msf exploit(ms06_025_rasmans_reg) > show options and set options... msf exploit(ms06_025_rasmans_reg) > exploit

Related Vulnerabilities

Related Modules