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

Class Method Details

.authorsObject

Author(s)

0day Inc. <[email protected]>



85
86
87
88
89
# File 'lib/pwn/banner.rb', line 85

public_class_method def self.authors
  "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?

  banner = ''
  case index
  when 1
    banner = PWN::Banner::Anon.get
  when 2
    banner = PWN::Banner::Bubble.get
  when 3
    banner = PWN::Banner::Cheshire.get
  when 4
    banner = PWN::Banner::CodeCave.get
  when 5
    banner = PWN::Banner::DontPanic.get
  when 6
    banner = PWN::Banner::ForkBomb.get
  when 7
    banner = PWN::Banner::FSociety.get
  when 8
    banner = PWN::Banner::JmpEsp.get
  when 9
    banner = PWN::Banner::Matrix.get
  when 10
    banner = PWN::Banner::Ninja.get
  when 11
    banner = PWN::Banner::OffTheAir.get
  when 12
    banner = PWN::Banner::Pirate.get
  when 13
    banner = PWN::Banner::Radare2.get
  when 14
    banner = PWN::Banner::WhiteRabbit.get
  else
    raise 'Invalid Index.'
  end

  banner
end

.helpObject

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

.welcomeObject

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
  banner = PWN::Banner.get
  banner = "#{banner}\nUse the #help command & methods for more options.\n"
  banner = "#{banner}e.g help\n"
  banner = "#{banner}e.g PWN.help\n"
  banner = "#{banner}e.g PWN::Plugins.help\n"
  banner = "#{banner}e.g PWN::Plugins::TransparentBrowser.help\n"
end