Metasploit mailing list archives

Exploit failed: uninitialized constant Msf::ModuleSet::NDR


From: jrogosky at gmail.com (Justin Rogosky)
Date: Tue, 12 Aug 2008 17:54:48 -0400

I got the ms03 dcom exploit to work with this method as well.
I needed to add require 'rex/encoder/ndr' and added 
NDR = Rex::Encoder::NDR
below the module definition.

Thank you Fabien for solving this.


--Justin Rogosky



On Tue, 2008-08-12 at 12:04 -0500, Fabien Carrion wrote:
If I put the NDR alias (NDR            = Rex::Encoder::NDR) directly
in the exploit (I have been working with lsa_transnames_heap.rb), it
doesn't work and I still get the error message "Exploit failed:
uninitialized constant Msf::ModuleSet::NDR"

If I put the NDR alias (NDR            = Rex::Encoder::NDR) in the
module_manager.rb, in the class ModuleSet, it works.

On Mon, Aug 11, 2008 at 12:39 PM, H D Moore <hdm at metasploit.com> wrote:
The weird part is only a few people can reproduce this, and the NDR
namespace is already set via the 'alias' done inside of the DCERPC mixin.
While that will avoid the aliasing as a problem, it doesn't solve the
real issue of why that aliasing isnt working for some people.

Monday 11 August 2008, Fabien Carrion wrote:
To solve this, I replaced NDR.* by Rex::Encoder::NDR.*


_______________________________________________
http://spool.metasploit.com/mailman/listinfo/framework








Current thread: