metasploit-framework

https://github.com/rapid7/metasploit-framework

Ruby

Metasploit Framework

Msf::Nop#generate_sled

Stub method for generating a sled with the provided arguments.  Derived
Nop implementations must supply a length and can supply one or more of
the following options:

  - Random (true/false)
    Indicates that the caller desires random NOPs (if supported).
  - SaveRegisters (array)
    The list of registers that should not be clobbered by the NOP
    generator.
  - BadChars (string)
    The list of characters that should be avoided by the NOP
    generator.

Source | Google | Stack overflow

Edit

git clone [email protected]:rapid7/metasploit-framework.git

cd metasploit-framework

open lib/msf/core/nop.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Msf--Nop-generate_sled-for-pr


# Commit to git

git add lib/msf/core/nop.rbgit commit -m "better docs for Msf::Nop#generate_sled"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Msf--Nop-generate_sled-for-pr

hub pull-request


# Celebrate!