[framework] Using encoders directly

mmiller at hick.org mmiller at hick.org
Wed Dec 27 22:59:57 CST 2006


On Wed, Dec 27, 2006 at 03:09:33PM -0500, Krpata, Tyler wrote:
> Sorry, didn't realize I hadn't included the message. The message I get
> without messing with the encoder file at all is:
> 	Exploit failed: wrong number of arguments (1 for 2)
> 
> In generic.rb under lib/rex/encoder/alpha2, the Generic.encode method
> calls encode_byte with one argument, where it expects a second
> "badchars" argument. 
> 
> If I change the call in the encode method to:
> 	encoded += encode_byte(block, "")
> I get the message:
> 	Exploit failed: Negative
> Which seems to be an exception raised by the encode_byte method. The
> "second" value looks like it is derived from the gen_second method in
> unicode_mixed.rb. 

I think there are a few bugs in the Generic class at the moment (the
encode method was obviously never used).  There's another design issue
related to the way @@accepted_chars is used.  I'll make some updates and
commit them later tonight if possible.



More information about the framework mailing list