Module: PWN::Banner
- Defined in:
- lib/pwn/banner.rb,
lib/pwn/banner/anon.rb,
lib/pwn/banner/ninja.rb,
lib/pwn/banner/bubble.rb,
lib/pwn/banner/matrix.rb,
lib/pwn/banner/pirate.rb,
lib/pwn/banner/jmp_esp.rb,
lib/pwn/banner/radare2.rb,
lib/pwn/banner/cheshire.rb,
lib/pwn/banner/code_cave.rb,
lib/pwn/banner/f_society.rb,
lib/pwn/banner/fork_bomb.rb,
lib/pwn/banner/dont_panic.rb,
lib/pwn/banner/off_the_air.rb,
lib/pwn/banner/white_rabbit.rb
Overview
This file, using the autoload directive loads SP reports into memory only when they’re needed. For more information, see: www.rubyinside.com/ruby-techniques-revealed-autoload-1652.html
Defined Under Namespace
Modules: Anon, Bubble, Cheshire, CodeCave, DontPanic, FSociety, ForkBomb, JmpEsp, Matrix, Ninja, OffTheAir, Pirate, Radare2, WhiteRabbit
Class Method Summary collapse
-
.authors ⇒ Object
- Author(s)
-
0day Inc.
-
.get(opts = {}) ⇒ Object
- Supported Method Parameters
-
PWN::Banner.get( index: ‘optional - defaults to random banner index’ ).
-
.help ⇒ Object
Display Usage for this Module.
-
.welcome ⇒ Object
- Supported Method Parameters
-
PWN::Banner.get( index: ‘optional - defaults to random banner index’ ).
Class Method Details
.authors ⇒ Object
- Author(s)
-
0day Inc. <[email protected]>
85 86 87 88 89 |
# File 'lib/pwn/banner.rb', line 85 public_class_method def self. "AUTHOR(S): 0day Inc. <[email protected]> " end |
.get(opts = {}) ⇒ Object
- Supported Method Parameters
-
PWN::Banner.get(
index: 'optional - defaults to random banner index'
)
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/pwn/banner.rb', line 28 public_class_method def self.get(opts = {}) index = opts[:index].to_i index = Random.rand(1..14) unless index.positive? = '' case index when 1 = PWN::Banner::Anon.get when 2 = PWN::Banner::Bubble.get when 3 = PWN::Banner::Cheshire.get when 4 = PWN::Banner::CodeCave.get when 5 = PWN::Banner::DontPanic.get when 6 = PWN::Banner::ForkBomb.get when 7 = PWN::Banner::FSociety.get when 8 = PWN::Banner::JmpEsp.get when 9 = PWN::Banner::Matrix.get when 10 = PWN::Banner::Ninja.get when 11 = PWN::Banner::OffTheAir.get when 12 = PWN::Banner::Pirate.get when 13 = PWN::Banner::Radare2.get when 14 = PWN::Banner::WhiteRabbit.get else raise 'Invalid Index.' end end |
.help ⇒ Object
Display Usage for this Module
93 94 95 96 97 98 99 100 101 102 103 |
# File 'lib/pwn/banner.rb', line 93 public_class_method def self.help puts "USAGE: banner = #{self}.get( index: 'optional - defaults to random banner index' ) banner = #{self}.welcome #{self}.authors " end |
.welcome ⇒ Object
- Supported Method Parameters
-
PWN::Banner.get(
index: 'optional - defaults to random banner index'
)
74 75 76 77 78 79 80 81 |
# File 'lib/pwn/banner.rb', line 74 public_class_method def self.welcome = PWN::Banner.get = "#{}\nUse the #help command & methods for more options.\n" = "#{}e.g help\n" = "#{}e.g PWN.help\n" = "#{}e.g PWN::Plugins.help\n" = "#{}e.g PWN::Plugins::TransparentBrowser.help\n" end |