pwn 0.4.968 → 0.4.969

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7bcb970aff2e9e2e58af6084909dd83e86a392368f2e390debc121c62ad6639d
4
- data.tar.gz: 9b5138570eca23a5605b2ea24283d5f447cbf5bca685c45a0733b6a901015ca6
3
+ metadata.gz: a6654eeceac4b7c574a8940bc04ff518153a8c66c264940865d9bbe009395316
4
+ data.tar.gz: b7f080c8781a7697f69b0c855dcad4dd726349e7242a4c3089416b955943078d
5
5
  SHA512:
6
- metadata.gz: 58820b631c6955941fa554c31a71fe295dbba71b277c00170520cbaaa72a5692cae256cac903c3045ef93cebe8180cb25972e8c9a17f5156d4d0206bca2e9d35
7
- data.tar.gz: a9c852eb484784422140597b46884a2a4ca0f7e04b97c977a7a7322ef3214d7f2622590c7076588152a857a868dfa276a301dc1e2ce942198a3ed69b38f738f0
6
+ metadata.gz: a7cbe822b60724f43713ef3856ad2658b4d13979b0318bd2a8bd035b27c498cf10b038923f7349813ec7d87b1cf9894e9ff821835cae24d4f1fe4551dd2b0009
7
+ data.tar.gz: 0ea04aa2e470903ad103a76d8c1dc598d6cc9b34816ada2e170f0b07e010d570c8ac810971631b666c2761daf0206958826ad77325ca8ef774e2ef1fa6a7dc4c
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.969]: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.969]: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.969]: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
data/lib/pwn/banner.rb CHANGED
@@ -6,6 +6,7 @@ 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'
9
10
  autoload :Matrix, 'pwn/banner/matrix'
10
11
  autoload :Ninja, 'pwn/banner/ninja'
11
12
  autoload :OffTheAir, 'pwn/banner/off_the_air'
@@ -19,21 +20,23 @@ module PWN
19
20
 
20
21
  public_class_method def self.get(opts = {})
21
22
  index = opts[:index].to_i
22
- index = Random.rand(1..6) unless index.positive?
23
+ index = Random.rand(1..7) unless index.positive?
23
24
 
24
25
  banner = ''
25
26
  case index
26
27
  when 1
27
28
  banner = PWN::Banner::Bubble.get
28
29
  when 2
29
- banner = PWN::Banner::Matrix.get
30
+ banner = PWN::Banner::DontPanic.get
30
31
  when 3
31
- banner = PWN::Banner::Ninja.get
32
+ banner = PWN::Banner::Matrix.get
32
33
  when 4
33
- banner = PWN::Banner::OffTheAir.get
34
+ banner = PWN::Banner::Ninja.get
34
35
  when 5
35
- banner = PWN::Banner::Pirate.get
36
+ banner = PWN::Banner::OffTheAir.get
36
37
  when 6
38
+ banner = PWN::Banner::Pirate.get
39
+ when 7
37
40
  banner = PWN::Banner::WhiteRabbit.get
38
41
  else
39
42
  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.969'
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.969
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