Metasploit mailing list archives

random NOP sled


From: reydecopas at gmail.com (reydecopas)
Date: Tue, 7 Jul 2009 08:51:14 +0200

self answer sorry...

RTFM
5.5.1     Generating a NOP Sled
The NOP module console interface supports generating a NOP sled of an arbi-
trary size and displaying it in a given format through the generate command.
msf > use x86/opty2
msf nop(opty2) > generate -h
Usage: generate [options] length
Generates a NOP sled of a given length.
OPTIONS:
     -b <opt>    The list of characters to avoid: ?\x00\xff?
     -h          Help banner.
     -s <opt>    The comma separated list of registers to save.
     -t <opt>    The output type: ruby, perl, c, or raw.
msf nop(opty2) >
To generate a 50 byte NOP sled that is displayed as a C-style buffer, the
fol-
lowing command can be run:
msf nop(opty2) > generate -t c 50
unsigned char buf[] =
"\xf5\x3d\x05\x15\xf8\x67\xba\x7d\x08\xd6\x66\x9f\xb8\x2d\xb6"
"\x24\xbe\xb1\x3f\x43\x1d\x93\xb2\x37\x35\x84\xd5\x14\x40\xb4"
"\xb3\x41\xb9\x48\x04\x99\x46\xa9\xb0\xb7\x2f\xfd\x96\x4a\x98"
"\x92\xb5\xd4\x4f\x91";




On Tue, Jul 7, 2009 at 8:41 AM, reydecopas <reydecopas at gmail.com> wrote:

Hi ,

I am trying to generate a random nop sled from console...
how can I do this?
I found this modules... but I don't find any clue...

./modules/nops/x86/opty2.rb
./modules/nops/x86/single_byte.rb


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.metasploit.com/pipermail/framework/attachments/20090707/468f92c7/attachment.htm>


Current thread: