| Module | Msf::Simple::Payload |
| In: |
lib/msf/base/simple/payload.rb
|
Simple payload wrapper class for performing generation.
Generate a payload with the mad skillz. The payload can be generated in a number of ways.
opts can have:
Encoder => A encoder module name.
BadChars => A string of bad characters.
Format => The format to represent the data as: ruby, perl, c, raw
Options => A hash of options to set.
OptionStr => A string of options in VAR=VAL form separated by
whitespace.
NoComment => Disables prepention of a comment
NopSledSize => The number of NOPs to use
MaxSize => The maximum size of the payload.
raises:
BadcharError => If the supplied encoder fails to encode the payload NoKeyError => No valid encoder key could be found ArgumentParseError => Options were supplied improperly