Metasploit mailing list archives

Encoder(?) problems.


From: reth at smashthestates.net (Reth)
Date: Sun, 1 Jul 2007 14:04:06 +1000

Hello list,

I am having trouble writing an exploit for a wargame I am taking part 
in.

The problem I'm having has to do with the payload decoding. If I use 
payloads generated from msfpayload and encoded with msfencode, and copy 
them into the exploit it works fine.

However, if I try to generate them from the exploit itself, the decoder 
always seems to mess up decoding the payload. In GDB, usually only the 
first half or so of the payload is decoded successfully. I have set 
BadChars to exclude all the problem characters, so that doesn't seem 
to be the cause.

I did search through the trac and list archives, but couldn't find 
anything that was directly related. I've tried both msfcli and 
msfconsole, with the same results. I've tried both 3.0-current and the 
latest copy from (as of yesterday) the subversion server. I've also 
tried multiple payloads.

Any assistance would be great.

-Reth



Current thread: