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/radare2_ai.rb,
lib/pwn/banner/off_the_air.rb,
lib/pwn/banner/white_rabbit.rb
Overview
This file, using the autoload directive loads Banner modules 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, Radare2AI, 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]>
88 89 90 91 92 |
# File 'lib/pwn/banner.rb', line 88 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')
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 68 69 70 |
# File 'lib/pwn/banner.rb', line 29 public_class_method def self.get(opts = {}) index = opts[:index].to_i index = Random.rand(1..15) 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::Radare2AI.get when 15 = PWN::Banner::WhiteRabbit.get else raise 'Invalid Index.' end end |
.help ⇒ Object
Display Usage for this Module
96 97 98 99 100 101 102 103 104 105 106 |
# File 'lib/pwn/banner.rb', line 96 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')
77 78 79 80 81 82 83 84 |
# File 'lib/pwn/banner.rb', line 77 public_class_method def self.welcome = PWN::Banner.get = "#{banner}\nUse the #help command & methods for more options.\n" = "#{banner}e.g help\n" = "#{banner}e.g PWN.help\n" = "#{banner}e.g PWN::Plugins.help\n" = "#{banner}e.g PWN::Plugins::TransparentBrowser.help\n" end |