diff --git a/dev/materials/msf3_internals_training/documentation/ruby/RubyCheat.pdf b/dev/materials/msf3_internals_training/documentation/ruby/RubyCheat.pdf new file mode 100644 index 0000000000..8e5af362be Binary files /dev/null and b/dev/materials/msf3_internals_training/documentation/ruby/RubyCheat.pdf differ diff --git a/dev/materials/msf3_internals_training/documentation/ruby/RubyCheat1.png b/dev/materials/msf3_internals_training/documentation/ruby/RubyCheat1.png new file mode 100644 index 0000000000..d1b807531e Binary files /dev/null and b/dev/materials/msf3_internals_training/documentation/ruby/RubyCheat1.png differ diff --git a/dev/materials/msf3_internals_training/documentation/ruby/RubyCheat2.png b/dev/materials/msf3_internals_training/documentation/ruby/RubyCheat2.png new file mode 100644 index 0000000000..1f41d30d96 Binary files /dev/null and b/dev/materials/msf3_internals_training/documentation/ruby/RubyCheat2.png differ diff --git a/dev/materials/msf3_internals_training/documentation/ruby/ruby-doc-bundle.tar.gz b/dev/materials/msf3_internals_training/documentation/ruby/ruby-doc-bundle.tar.gz new file mode 100644 index 0000000000..9e3b2f57a6 Binary files /dev/null and b/dev/materials/msf3_internals_training/documentation/ruby/ruby-doc-bundle.tar.gz differ diff --git a/dev/materials/msf3_internals_training/examples/modules/auxiliary/bh_aux.rb b/dev/materials/msf3_internals_training/examples/modules/auxiliary/bh_aux.rb new file mode 100644 index 0000000000..ec4c7f252d --- /dev/null +++ b/dev/materials/msf3_internals_training/examples/modules/auxiliary/bh_aux.rb @@ -0,0 +1,19 @@ +module Msf + +class Auxiliary::BhAux < Msf::Auxiliary + + def initialize + super( + 'Name' => "BlackHat Training Auxiliary Module", + 'Description' => "Example Auxiliary Module", + 'Author' => "skape", + 'License' => MSF_LICENSE) + end + + def run + print_status("Inside run...") + end + +end + +end diff --git a/dev/materials/msf3_internals_training/examples/modules/encoders/bh_encoder.rb b/dev/materials/msf3_internals_training/examples/modules/encoders/bh_encoder.rb new file mode 100644 index 0000000000..d163d82096 --- /dev/null +++ b/dev/materials/msf3_internals_training/examples/modules/encoders/bh_encoder.rb @@ -0,0 +1,22 @@ +module Msf +module Encoders + +class BlackHatEncoder < Msf::Encoder + + def initialize + super( + 'Name' => 'BlackHat Example Encoder', + 'Version' => '$Revision: 3154 $', + 'Description' => %q{ + Sample encoder that just returns the block it's passed + when encoding occurs. + }, + 'Author' => 'skape', + 'Arch' => ARCH_ALL) + end + + def encode_block(state, buf) + buf + end + +end ;end ;end diff --git a/dev/materials/msf3_internals_training/examples/plugins/bob_plugin.rb b/dev/materials/msf3_internals_training/examples/plugins/bob_plugin.rb new file mode 100644 index 0000000000..c80ea55935 --- /dev/null +++ b/dev/materials/msf3_internals_training/examples/plugins/bob_plugin.rb @@ -0,0 +1,12 @@ +module Msf +class Plugin::Bob < Msf::Plugin + module BobExtension + def bob + "bob" + end + end + def initialize(framework, options) + framework.extend(BobExtension) + end +end +end