pwn 0.4.968 → 0.4.970

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: 7bcb970aff2e9e2e58af6084909dd83e86a392368f2e390debc121c62ad6639d
4
- data.tar.gz: 9b5138570eca23a5605b2ea24283d5f447cbf5bca685c45a0733b6a901015ca6
3
+ metadata.gz: acd21c71231dfb8a51372ba8c0a23575842b77b1a1efee17df5284d9328a89d0
4
+ data.tar.gz: 8094a72835605462472a5facc9894966de2464d4268c3b538752f4fc49cbdf2b
5
5
  SHA512:
6
- metadata.gz: 58820b631c6955941fa554c31a71fe295dbba71b277c00170520cbaaa72a5692cae256cac903c3045ef93cebe8180cb25972e8c9a17f5156d4d0206bca2e9d35
7
- data.tar.gz: a9c852eb484784422140597b46884a2a4ca0f7e04b97c977a7a7322ef3214d7f2622590c7076588152a857a868dfa276a301dc1e2ce942198a3ed69b38f738f0
6
+ metadata.gz: c0fdd2c879370207c6878d1e93439da19c5f990e3f6ece674ba79408fa8ad3f8382323163aa1c52a175d5ea6ed2eebfca95e24d285884b084ae278da0568c100
7
+ data.tar.gz: f8b59f16ef2d1bcc0c389a6f1556a17523677ad2b3cc2030e548560746dd52f58815e2682269f5aec37ba8c5546fc99fd90eab819c06063ca5f60b195df928a5
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.968]:001 >>> PWN.help
40
+ pwn[v0.4.970]: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.968]:001 >>> PWN.help
55
+ pwn[v0.4.970]: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.968]:001 >>> PWN.help
65
+ pwn[v0.4.970]: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,52 @@
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 DontPanic
9
+ # Supported Method Parameters::
10
+ # PWN::Banner::DontPanic.get
11
+
12
+ public_class_method def self.get
13
+ '
14
+ _,.-pwn-.,_
15
+ \||\ ;;;;%%%@@@@@@ \ //,
16
+ V|/ %;;%%%%%@@@@@@@@@@ ===Y//
17
+ 68=== ;;;;%%%%%%@@@@@@@@@@@@ @Y
18
+ ;Y ;;%;%%%%%%@@@@@@@@@@@@@@ Y
19
+ ;Y ;;;+;%%%%%%@@@@@@@@@@@@@@@ Y
20
+ ;Y__;;;+;%%%%%%@@@@@@@@@@@@@@i;;__Y
21
+ iiY"";; "uu%@@@@@@@@@@uu" @"";;;>
22
+ Y "UUUUUUUUU" @@
23
+ `; ___ _ @
24
+ `;. ,====\\=. .;"
25
+ ``""""`==\\=="
26
+ `;=====
27
+ ===
28
+ '.green
29
+ rescue StandardError => e
30
+ raise e
31
+ end
32
+
33
+ # Author(s):: 0day Inc. <request.pentest@0dayinc.com>
34
+
35
+ public_class_method def self.authors
36
+ "AUTHOR(S):
37
+ 0day Inc. <request.pentest@0dayinc.com>
38
+ "
39
+ end
40
+
41
+ # Display Usage for this Module
42
+
43
+ public_class_method def self.help
44
+ puts "USAGE:
45
+ #{self}.get
46
+
47
+ #{self}.authors
48
+ "
49
+ end
50
+ end
51
+ end
52
+ end
@@ -11,23 +11,23 @@ module PWN
11
11
 
12
12
  public_class_method def self.get
13
13
  '
14
- _ _
15
- / \ / \
16
- { } { }
17
- { { } }
18
- \ \ / /
19
- \ Y /
20
- .-"`"`"-.
21
- ,` `.
22
- / \
23
- / \
24
- { ."";, }
25
- { /";`.`,; }
26
- \{ ;`,``;. /
27
- { }`""` } /}
28
- { } { //
29
- {||} { /
30
- `"` pwn
14
+ _ _
15
+ / \ / \
16
+ { } { }
17
+ { { } }
18
+ \ \ / /
19
+ \ Y /
20
+ .-"`"`"-.
21
+ ,` `.
22
+ / \
23
+ / \
24
+ { ."";, }
25
+ { /";`.`,; }
26
+ \{ ;`,``;. /
27
+ { }`""` } /}
28
+ { } { //
29
+ {||} { /
30
+ `"` pwn
31
31
  '.white
32
32
  rescue StandardError => e
33
33
  raise e
data/lib/pwn/banner.rb CHANGED
@@ -6,6 +6,8 @@ module PWN
6
6
  # http://www.rubyinside.com/ruby-techniques-revealed-autoload-1652.html
7
7
  module Banner
8
8
  autoload :Bubble, 'pwn/banner/bubble'
9
+ autoload :DontPanic, 'pwn/banner/dont_panic'
10
+ autoload :FSociety, 'pwn/banner/f_society'
9
11
  autoload :Matrix, 'pwn/banner/matrix'
10
12
  autoload :Ninja, 'pwn/banner/ninja'
11
13
  autoload :OffTheAir, 'pwn/banner/off_the_air'
@@ -19,21 +21,25 @@ module PWN
19
21
 
20
22
  public_class_method def self.get(opts = {})
21
23
  index = opts[:index].to_i
22
- index = Random.rand(1..6) unless index.positive?
24
+ index = Random.rand(1..8) unless index.positive?
23
25
 
24
26
  banner = ''
25
27
  case index
26
28
  when 1
27
29
  banner = PWN::Banner::Bubble.get
28
30
  when 2
29
- banner = PWN::Banner::Matrix.get
31
+ banner = PWN::Banner::DontPanic.get
30
32
  when 3
31
- banner = PWN::Banner::Ninja.get
33
+ banner = PWN::Banner::FSociety.get
32
34
  when 4
33
- banner = PWN::Banner::OffTheAir.get
35
+ banner = PWN::Banner::Matrix.get
34
36
  when 5
35
- banner = PWN::Banner::Pirate.get
37
+ banner = PWN::Banner::Ninja.get
36
38
  when 6
39
+ banner = PWN::Banner::OffTheAir.get
40
+ when 7
41
+ banner = PWN::Banner::Pirate.get
42
+ when 8
37
43
  banner = PWN::Banner::WhiteRabbit.get
38
44
  else
39
45
  raise 'Invalid Index.'
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.968'
4
+ VERSION = '0.4.970'
5
5
  end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'spec_helper'
4
+
5
+ describe PWN::Banner::DontPanic do
6
+ it 'should cointain a method for banner retrieval' do
7
+ get_response = PWN::Banner::DontPanic
8
+ expect(get_response).to respond_to :get
9
+ end
10
+
11
+ it 'should display information for authors' do
12
+ authors_response = PWN::Banner::DontPanic
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::DontPanic
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.968
4
+ version: 0.4.970
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.
@@ -1704,6 +1704,7 @@ files:
1704
1704
  - lib/pwn/aws/x_ray.rb
1705
1705
  - lib/pwn/banner.rb
1706
1706
  - lib/pwn/banner/bubble.rb
1707
+ - lib/pwn/banner/dont_panic.rb
1707
1708
  - lib/pwn/banner/matrix.rb
1708
1709
  - lib/pwn/banner/ninja.rb
1709
1710
  - lib/pwn/banner/off_the_air.rb
@@ -2020,6 +2021,7 @@ files:
2020
2021
  - spec/lib/pwn/aws/x_ray_spec.rb
2021
2022
  - spec/lib/pwn/aws_spec.rb
2022
2023
  - spec/lib/pwn/banner/bubble_spec.rb
2024
+ - spec/lib/pwn/banner/dont_panic_spec.rb
2023
2025
  - spec/lib/pwn/banner/matrix_spec.rb
2024
2026
  - spec/lib/pwn/banner/ninja_spec.rb
2025
2027
  - spec/lib/pwn/banner/off_the_air_spec.rb