Skip to content

Commit 906f298

Browse files
committed
PWN::Banner::WhiteRabbit - knock knock <>...follow the white rabbit.
1 parent 4140ba4 commit 906f298

File tree

4 files changed

+67
-5
lines changed

4 files changed

+67
-5
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $ cd /opt/pwn
3737
$ ./install.sh
3838
$ ./install.sh ruby-gem
3939
$ pwn
40-
pwn[v0.4.950]:001 >>> PWN.help
40+
pwn[v0.4.951]:001 >>> PWN.help
4141
```
4242

4343
[![Installing the pwn Security Automation Framework](https://raw.githubusercontent.com/0dayInc/pwn/master/documentation/pwn_install.png)](https://youtu.be/G7iLUY4FzsI)
@@ -52,7 +52,7 @@ $ rvm use ruby-3.3.0@pwn
5252
$ gem uninstall --all --executables pwn
5353
$ gem install --verbose pwn
5454
$ pwn
55-
pwn[v0.4.950]:001 >>> PWN.help
55+
pwn[v0.4.951]:001 >>> PWN.help
5656
```
5757

5858
If you're using a multi-user install of RVM do:
@@ -62,7 +62,7 @@ $ rvm use ruby-3.3.0@pwn
6262
$ rvmsudo gem uninstall --all --executables pwn
6363
$ rvmsudo gem install --verbose pwn
6464
$ pwn
65-
pwn[v0.4.950]:001 >>> PWN.help
65+
pwn[v0.4.951]:001 >>> PWN.help
6666
```
6767

6868
PWN periodically upgrades to the latest version of Ruby which is reflected in `/opt/pwn/.ruby-version`. The easiest way to upgrade to the latest version of Ruby from a previous PWN installation is to run the following script:

lib/pwn/banner.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ module Banner
1010
autoload :Ninja, 'pwn/banner/ninja'
1111
autoload :OffTheAir, 'pwn/banner/off_the_air'
1212
autoload :Pirate, 'pwn/banner/pirate'
13+
autoload :WhiteRabbit, 'pwn/banner/white_rabbit'
1314

1415
# Supported Method Parameters::
1516
# PWN::Banner.get(
@@ -18,7 +19,7 @@ module Banner
1819

1920
public_class_method def self.get(opts = {})
2021
index = opts[:index].to_i
21-
index = Random.rand(1..5) unless index.positive?
22+
index = Random.rand(1..6) unless index.positive?
2223

2324
banner = ''
2425
case index
@@ -32,6 +33,8 @@ module Banner
3233
banner = PWN::Banner::OffTheAir.get
3334
when 5
3435
banner = PWN::Banner::Pirate.get
36+
when 6
37+
banner = PWN::Banner::WhiteBanner.get
3538
else
3639
raise 'Invalid Index.'
3740
end

lib/pwn/banner/white_rabbit.rb

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# frozen_string_literal: true
2+
3+
require 'colorize'
4+
5+
module PWN
6+
module Banner
7+
# This plugin processes images into readable text
8+
module WhiteRabbit
9+
# Supported Method Parameters::
10+
# PWN::Banner::WhiteRabbit.get
11+
12+
public_class_method def self.get
13+
'
14+
/ \
15+
/ _ \
16+
| / \ |
17+
|| || _______
18+
|| || |\ \
19+
|| || ||\ \
20+
|| || || \ |
21+
|| || || \__/
22+
|| || || ||
23+
\\_/ \_/ \_//
24+
/ _ _ \
25+
/ \
26+
| O O |
27+
| \ ___ / |
28+
/ \ \_/ / \
29+
/ ----- | --\ \
30+
| \__/|\__/ \ |
31+
\ |_|_| /
32+
\_____ _____/
33+
\ /
34+
| |
35+
'.white
36+
rescue StandardError => e
37+
raise e
38+
end
39+
40+
# Author(s):: 0day Inc. <[email protected]>
41+
42+
public_class_method def self.authors
43+
"AUTHOR(S):
44+
0day Inc. <[email protected]>
45+
"
46+
end
47+
48+
# Display Usage for this Module
49+
50+
public_class_method def self.help
51+
puts "USAGE:
52+
#{self}.get
53+
54+
#{self}.authors
55+
"
56+
end
57+
end
58+
end
59+
end

lib/pwn/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module PWN
4-
VERSION = '0.4.950'
4+
VERSION = '0.4.951'
55
end

0 commit comments

Comments
 (0)