pwn 0.4.972 → 0.4.973

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: dd90e1848f43a6910bebe67d68bcc3d0003eefdb6b8652787f232da31869f1b6
4
- data.tar.gz: 596e7491b195163cc68253b0b94c1b20c2880b812f941914732da942a049ac50
3
+ metadata.gz: c3f2b9b288bb4566b52761577cb8f9dafb857cc2d86839789de06ee1b057894f
4
+ data.tar.gz: 3a8239c83c44f2df5c9503fe405c344aae7632558e158a4b87c5b47cd0ea2c94
5
5
  SHA512:
6
- metadata.gz: 7621c08fa85c4e28b8a7b57bc03f894f11003fc43ab8265896de89a0ba2d80055f98f7357e2faaf7fdf349af8f73368ffeecebacf415850aebc839b7fabf4fb6
7
- data.tar.gz: 002dc2668a9ca660157235a18f2ed4342322af908710b9e1b8710df0993ca129511c45284897ff224a10db77a2b226bf587b4545ac6b6b785c3fae88062b0f4a
6
+ metadata.gz: 82ace3672069486dbd2c5a856987b5dd293b5e8c5bdfa30b7b17a678169a215f3f019686f59f0fa26c7e9f61c681597593d4a0c930cce57f9e68589983a0286b
7
+ data.tar.gz: 7bb7116a662d02e2117dfd1acb2e6ff95b145748e0c1a186afad9f1ba42b14e1b06515dc758c72a1cc14a38c2e1bf3110b61b9bb7de6dd543f9f18d304136e28
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.972]:001 >>> PWN.help
40
+ pwn[v0.4.973]: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.972]:001 >>> PWN.help
55
+ pwn[v0.4.973]: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.972]:001 >>> PWN.help
65
+ pwn[v0.4.973]: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,58 @@
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 Cheshire
9
+ # Supported Method Parameters::
10
+ # PWN::Banner::Cheshire.get
11
+
12
+ public_class_method def self.get
13
+ '
14
+ ⠀⠀⠀⠀⠀⠀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡀⠀⠀⠀⠀⣀⣴⣦⡀⠀⠀⠀⢶⣦⣄⡀⠀⠀⠀⠀⠀⠀⠀
15
+ ⠀⠀⠀⠀⢠⣾⢧⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⢿⣦⠀⠀⢾⣿⣿⣿⣷⡀⠀⠀⢸⣿⣿⣿⡆⠀⠀⠀⠀⠀⠀
16
+ ⠀⠀⠀⢀⣿⠃⠀⢣⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⠊⠀⢻⣧⠀⠀⠙⢿⣿⣿⣧⠀⠀⠀⣿⣿⣿⠇⠀⣶⣄⠀⠀⠀
17
+ ⠀⠀⠀⢸⣿⠀⠀⠀⠑⠄⠀⠀⠀⠀⠀⠀⠀⠔⠁⠀⠀⢸⣿⠀⠀⠀⠀⠻⣿⣿⡆⠀⠀⣿⣿⣿⠀⢸⣿⣿⣦⠀⠀
18
+ ⠀⠀⠀⠀⠛⢁⠔⠒⣶⠲⣄⠀⠀⠀⠀⢀⡴⢲⡖⠒⢄⠘⠋⠀⠀⠀⠀⠀⢹⣿⡇⠀⠀⣿⣿⡏⢠⣿⣿⣿⠃⠀⠀
19
+ ⠀⠀⠀⠀⠀⡁⠀⢸⣿⡇⠈⢣⠀⠀⠀⠊⠀⣿⣿⠀⠀⡑⠀⠀⠀⠀⠀⠀⠀⣿⠇⠀⠀⣿⡟⢀⣾⣿⡟⠁⢀⣶⡀
20
+ ⠀⠀⠀⢀⡀⠈⠂⠄⠻⠡⠐⠈⣀⢀⣀⠐⠠⠹⠏⠀⠊⠀⣀⠄⠀⠀⠀⠀⠀⠸⠀⠀⢰⠟⢀⣾⡿⠋⢀⣴⣿⣿⡇
21
+ ⠀⠀⠀⠘⡅⡇⣆⣄⣀⡀⠀⠀⠉⠛⠁⠀⠀⣀⡀⡄⠆⡳⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠁⠠⠟⠉⢀⣴⣿⡿⠟⢉⡄
22
+ ⠀⠀⠀⠀⠀⠃⠿⣿⣟⣞⣿⡾⣟⣟⣿⣾⡟⣾⣿⡟⠇⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠠⠖⠛⠉⢁⣤⣶⣿⠁
23
+ ⠀⠀⠀mmm⠀⠈⠉⠛⠚⠛⠻⠿⠛⠛⠚⠋⠁⠀⠀ mmm mmmm.pwn⣾⣿⣿⣿⡏⠀
24
+ ⠀⠀⠀⠀⠀⠀⠀⢀⣀⡀⠀⠀⠀⠀⠀⢶⣾⣿⣿⣿⡆⠀⠀⣤⣄⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⠀⠀⠀
25
+ ⠀⠀⠀⠀⢀⣤⣾⣿⣿⣿⣄⠀⠀⠀⠀⠈⢿⣿⣿⣿⡇⠀⠀⢹⣿⣿⣿⡇⠀⠀⣤⣀⣀⡀⢤⣤⣶⣾⡿⠋⠀⠀⠀
26
+ ⠀⠀⠀⠀⢻⣿⣿⣿⣿⣿⣿⣷⣄⠀⠀⠀⠀⠉⠉⠉⠁⠀⠀⠀⠙⠛⠻⠧⠀⠀⣿⣿⣿⣷⡀⠙⠿⠋⠀⠀⠀⠀⠀
27
+ ⠀⠀⠀⠀⠀⠙⠻⢿⣿⣿⣿⠿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠉⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀
28
+ ⢠⣦⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
29
+ ⣼⣿⣿⣿⣶⣤⣤⣤⣴⣶⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
30
+ ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
31
+ ⠹⣿⣿⣿⣿⣿⣿⠿⠟⠛⠁⢀⣼⣿⣶⣶⣶⣶⠆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
32
+ ⠀⠀⠈⠉⠀⠀⠀⠀⠀⣀⣴⣿⣿⣿⣿⡿⠛⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
33
+ ⠀⠀⠀⠀⠀⠀⠐⠚⠿⠿⠿⠿⠟⠛⠉
34
+ '.magenta
35
+ rescue StandardError => e
36
+ raise e
37
+ end
38
+
39
+ # Author(s):: 0day Inc. <request.pentest@0dayinc.com>
40
+
41
+ public_class_method def self.authors
42
+ "AUTHOR(S):
43
+ 0day Inc. <request.pentest@0dayinc.com>
44
+ "
45
+ end
46
+
47
+ # Display Usage for this Module
48
+
49
+ public_class_method def self.help
50
+ puts "USAGE:
51
+ #{self}.get
52
+
53
+ #{self}.authors
54
+ "
55
+ end
56
+ end
57
+ end
58
+ end
data/lib/pwn/banner.rb CHANGED
@@ -7,6 +7,7 @@ module PWN
7
7
  module Banner
8
8
  autoload :Anon, 'pwn/banner/anon'
9
9
  autoload :Bubble, 'pwn/banner/bubble'
10
+ autoload :Cheshire, 'pwn/banner/cheshire'
10
11
  autoload :DontPanic, 'pwn/banner/dont_panic'
11
12
  autoload :FSociety, 'pwn/banner/f_society'
12
13
  autoload :Matrix, 'pwn/banner/matrix'
@@ -22,7 +23,7 @@ module PWN
22
23
 
23
24
  public_class_method def self.get(opts = {})
24
25
  index = opts[:index].to_i
25
- index = Random.rand(1..9) unless index.positive?
26
+ index = Random.rand(1..10) unless index.positive?
26
27
 
27
28
  banner = ''
28
29
  case index
@@ -31,18 +32,20 @@ module PWN
31
32
  when 2
32
33
  banner = PWN::Banner::Bubble.get
33
34
  when 3
34
- banner = PWN::Banner::DontPanic.get
35
+ banner = PWN::Banner::Cheshire.get
35
36
  when 4
36
- banner = PWN::Banner::FSociety.get
37
+ banner = PWN::Banner::DontPanic.get
37
38
  when 5
38
- banner = PWN::Banner::Matrix.get
39
+ banner = PWN::Banner::FSociety.get
39
40
  when 6
40
- banner = PWN::Banner::Ninja.get
41
+ banner = PWN::Banner::Matrix.get
41
42
  when 7
42
- banner = PWN::Banner::OffTheAir.get
43
+ banner = PWN::Banner::Ninja.get
43
44
  when 8
44
- banner = PWN::Banner::Pirate.get
45
+ banner = PWN::Banner::OffTheAir.get
45
46
  when 9
47
+ banner = PWN::Banner::Pirate.get
48
+ when 10
46
49
  banner = PWN::Banner::WhiteRabbit.get
47
50
  else
48
51
  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.972'
4
+ VERSION = '0.4.973'
5
5
  end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'spec_helper'
4
+
5
+ describe PWN::Banner::Cheshire do
6
+ it 'should cointain a method for banner retrieval' do
7
+ get_response = PWN::Banner::Cheshire
8
+ expect(get_response).to respond_to :get
9
+ end
10
+
11
+ it 'should display information for authors' do
12
+ authors_response = PWN::Banner::Cheshire
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::Cheshire
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.972
4
+ version: 0.4.973
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.
@@ -1705,6 +1705,7 @@ files:
1705
1705
  - lib/pwn/banner.rb
1706
1706
  - lib/pwn/banner/anon.rb
1707
1707
  - lib/pwn/banner/bubble.rb
1708
+ - lib/pwn/banner/cheshire.rb
1708
1709
  - lib/pwn/banner/dont_panic.rb
1709
1710
  - lib/pwn/banner/f_society.rb
1710
1711
  - lib/pwn/banner/matrix.rb
@@ -2024,6 +2025,7 @@ files:
2024
2025
  - spec/lib/pwn/aws_spec.rb
2025
2026
  - spec/lib/pwn/banner/anon_spec.rb
2026
2027
  - spec/lib/pwn/banner/bubble_spec.rb
2028
+ - spec/lib/pwn/banner/cheshire_spec.rb
2027
2029
  - spec/lib/pwn/banner/dont_panic_spec.rb
2028
2030
  - spec/lib/pwn/banner/f_society_spec.rb
2029
2031
  - spec/lib/pwn/banner/matrix_spec.rb