pwn 0.4.950 → 0.4.951

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 826e33cd0c8fdb78a184544abe26536044b53c1653362847f492372be23e2f05
4
- data.tar.gz: 4d2eb657c2f530df7960070f48e69b636740cfd02296bde9a8e10e3135fa9da9
3
+ metadata.gz: 6245bf29510dec647038ef89c20faec52f1f64cf5cf98a37de2e46c20e57242d
4
+ data.tar.gz: 051454c001ad8fb609aca0ad7bc5f9d1b3e8054b69ae47deb3f352539e40037e
5
5
  SHA512:
6
- metadata.gz: 5d6da5e6d4d532e4d2bae580b83751a69b9e9ab8ecf7ada1a97f40a914bb4a60143b4ecf98f8945ddf207fa75ed46e7a73a372c1736c2ac5bbed62acf03165e0
7
- data.tar.gz: '09935951d4a16424bf68485e3f16a76eb96a2cf4b5e8429002e77ac7bcf5608f581093848d025aed2e4bbefcc8649e6380a9a390a33ef495f64e52d2446e1190'
6
+ metadata.gz: cf129f37d953f9fc236191a2826e07beed1336082e87fa5739a344a0b334acd096d377a6868b45686f9dcea0d908271f5c86634f4ce45601d3d0b3c917c11879
7
+ data.tar.gz: 3d1c48194fef12854db464fb99dac99802978ad04f09853b255d727d9742c3961c9a730a274d0018995f7cb1b6a5862f9062696cffe8c152e0ab0c571f36f572
data/README.md CHANGED
@@ -37,7 +37,7 @@ $ cd /opt/pwn
37
37
  $ ./install.sh
38
38
  $ ./install.sh ruby-gem
39
39
  $ pwn
40
- pwn[v0.4.950]:001 >>> PWN.help
40
+ pwn[v0.4.951]:001 >>> PWN.help
41
41
  ```
42
42
 
43
43
  [![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
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.4.950]:001 >>> PWN.help
55
+ pwn[v0.4.951]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
  If you're using a multi-user install of RVM do:
@@ -62,7 +62,7 @@ $ rvm use ruby-3.3.0@pwn
62
62
  $ rvmsudo gem uninstall --all --executables pwn
63
63
  $ rvmsudo gem install --verbose pwn
64
64
  $ pwn
65
- pwn[v0.4.950]:001 >>> PWN.help
65
+ pwn[v0.4.951]:001 >>> PWN.help
66
66
  ```
67
67
 
68
68
  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:
@@ -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. <request.pentest@0dayinc.com>
41
+
42
+ public_class_method def self.authors
43
+ "AUTHOR(S):
44
+ 0day Inc. <request.pentest@0dayinc.com>
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
data/lib/pwn/banner.rb CHANGED
@@ -10,6 +10,7 @@ module PWN
10
10
  autoload :Ninja, 'pwn/banner/ninja'
11
11
  autoload :OffTheAir, 'pwn/banner/off_the_air'
12
12
  autoload :Pirate, 'pwn/banner/pirate'
13
+ autoload :WhiteRabbit, 'pwn/banner/white_rabbit'
13
14
 
14
15
  # Supported Method Parameters::
15
16
  # PWN::Banner.get(
@@ -18,7 +19,7 @@ module PWN
18
19
 
19
20
  public_class_method def self.get(opts = {})
20
21
  index = opts[:index].to_i
21
- index = Random.rand(1..5) unless index.positive?
22
+ index = Random.rand(1..6) unless index.positive?
22
23
 
23
24
  banner = ''
24
25
  case index
@@ -32,6 +33,8 @@ module PWN
32
33
  banner = PWN::Banner::OffTheAir.get
33
34
  when 5
34
35
  banner = PWN::Banner::Pirate.get
36
+ when 6
37
+ banner = PWN::Banner::WhiteBanner.get
35
38
  else
36
39
  raise 'Invalid Index.'
37
40
  end
data/lib/pwn/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PWN
4
- VERSION = '0.4.950'
4
+ VERSION = '0.4.951'
5
5
  end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'spec_helper'
4
+
5
+ describe PWN::Banner::WhiteRabbit do
6
+ it 'should cointain a method for banner retrieval' do
7
+ get_response = PWN::Banner::WhiteRabbit
8
+ expect(get_response).to respond_to :get
9
+ end
10
+
11
+ it 'should display information for authors' do
12
+ authors_response = PWN::Banner::WhiteRabbit
13
+ expect(authors_response).to respond_to :authors
14
+ end
15
+
16
+ it 'should display information for existing help method' do
17
+ help_response = PWN::Banner::WhiteRabbit
18
+ expect(help_response).to respond_to :help
19
+ end
20
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pwn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.950
4
+ version: 0.4.951
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.
@@ -1721,6 +1721,7 @@ files:
1721
1721
  - lib/pwn/banner/ninja.rb
1722
1722
  - lib/pwn/banner/off_the_air.rb
1723
1723
  - lib/pwn/banner/pirate.rb
1724
+ - lib/pwn/banner/white_rabbit.rb
1724
1725
  - lib/pwn/ffi.rb
1725
1726
  - lib/pwn/plugins.rb
1726
1727
  - lib/pwn/plugins/android.rb
@@ -2036,6 +2037,7 @@ files:
2036
2037
  - spec/lib/pwn/banner/ninja_spec.rb
2037
2038
  - spec/lib/pwn/banner/off_the_air_spec.rb
2038
2039
  - spec/lib/pwn/banner/pirate_spec.rb
2040
+ - spec/lib/pwn/banner/white_rabbit_spec.rb
2039
2041
  - spec/lib/pwn/banner_spec.rb
2040
2042
  - spec/lib/pwn/ffi_spec.rb
2041
2043
  - spec/lib/pwn/plugins/android_spec.rb