
Metasploit mailing list archives
Using encoders directly
From: mmiller at hick.org (mmiller at hick.org)
Date: Wed, 27 Dec 2006 20:59:57 -0800
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.
Current thread:
- Using encoders directly Krpata, Tyler (Dec 21)
- Using encoders directly mmiller at hick.org (Dec 27)
- <Possible follow-ups>
- Using encoders directly Krpata, Tyler (Dec 27)
- Using encoders directly mmiller at hick.org (Dec 27)