pwn 0.4.979 → 0.4.980

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: d6be3d8ce2ef96735c1b189bda8ecb148da355b2f0ca4c895451549b0c7b15ca
4
- data.tar.gz: 2614c4d5770efe6ae5ed4c83b2d031e0296ddab7103c03c8b6d1335f54addfa0
3
+ metadata.gz: 89550e01a362634e37a007e848bd850735a05bd5a6dcebfcc69820a908ae0b85
4
+ data.tar.gz: 91e8218da188a4d6c36688fd42396e4d8d75190c07cfeb3f424aa3d3135b14eb
5
5
  SHA512:
6
- metadata.gz: e7b7e5a924ec334c7e54599fd353192fc9a3bc96e2d4ddabe324f716900a5add8ff05f8dc571aff900440d3366170ae361b963a7e52f75ddfb6062711f77a400
7
- data.tar.gz: 7cddef4391be9b9d0387fac77a07a89a2cb90c8ee3f0bef9bb8decd4c987eb365fe6dc89167de31b3703c041df8ae65c8d5df3074ef15d7af3f583f0d0ea5be3
6
+ metadata.gz: 342c40b4db0c6a4aec1468a360ce12b032a0471f66eab924340f35a214a8746df90378f60d8e38b7dde8a11545faef4410b123666a1a5f7e783c0172b415282d
7
+ data.tar.gz: c18cf34d7a9f97be6d877588a81bce355871ec412666707bcd628909ee472127609fb0d3ef8df11e914b31ebf10ef7d46ce0bf5d7d9a77e46ed071a72bad2817
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.979]:001 >>> PWN.help
40
+ pwn[v0.4.980]: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.979]:001 >>> PWN.help
55
+ pwn[v0.4.980]: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.979]:001 >>> PWN.help
65
+ pwn[v0.4.980]: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,50 @@
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 CodeCave
9
+ # Supported Method Parameters::
10
+ # PWN::Banner::CodeCave.get
11
+
12
+ public_class_method def self.get
13
+ '
14
+ 00000000: 7f45 4c46 0101 0100 0000 0000 0000 0000 .ELF............
15
+ 00000010: 0200 0300 0100 0000 208e 0408 3400 0000 ........ ...4...
16
+ 00000020: ac00 0000 0000 0000 3400 2000 0100 2800 ........4. ...(.
17
+ 00000030: 0400 0300 0100 0000 0000 0000 0080 0408 ................
18
+ 00000040: 0080 0408 c000 0000 c000 0000 0500 0000 ................
19
+ 00000050: 0010 0000 0100 0000 0000 0000 0080 0408 ................
20
+ 00000060: 0000 0000 0000 0000 0000 0000 0600 0000 ................
21
+ 00000070: 7077 6e00 0000 0000 0000 0000 0000 0000 pwn.............
22
+ 00000080: 0000 0000 0000 0000 0000 0000 0000 0000 ................
23
+ 00000090: 0000 0000 0000 0000 0000 0000 0000 0021 ...............!
24
+ 000000a0: b82a 0000 00b9 1d00 0000 baf4 0000 00ba ..*.............
25
+ 000000b0: 9a86 0408 e970 ffff ff31 c040 cd80 0000 ....p...1.@.....
26
+ '.light_black
27
+ rescue StandardError => e
28
+ raise e
29
+ end
30
+
31
+ # Author(s):: 0day Inc. <request.pentest@0dayinc.com>
32
+
33
+ public_class_method def self.authors
34
+ "AUTHOR(S):
35
+ 0day Inc. <request.pentest@0dayinc.com>
36
+ "
37
+ end
38
+
39
+ # Display Usage for this Module
40
+
41
+ public_class_method def self.help
42
+ puts "USAGE:
43
+ #{self}.get
44
+
45
+ #{self}.authors
46
+ "
47
+ end
48
+ end
49
+ end
50
+ end
@@ -5,12 +5,14 @@ require 'colorize'
5
5
  module PWN
6
6
  module Banner
7
7
  # This plugin processes images into readable text
8
- module JmpEsp
8
+ module ForkBomb
9
9
  # Supported Method Parameters::
10
- # PWN::Banner::JmpEsp.get
10
+ # PWN::Banner::ForkBomb.get
11
11
 
12
12
  public_class_method def self.get
13
- '$ pwn() { pwn | pwn & }; pwn'.blue
13
+ '
14
+ $ pwn() { pwn | pwn & }; pwn
15
+ '.blue
14
16
  rescue StandardError => e
15
17
  raise e
16
18
  end
data/lib/pwn/banner.rb CHANGED
@@ -8,16 +8,16 @@ module PWN
8
8
  autoload :Anon, 'pwn/banner/anon'
9
9
  autoload :Bubble, 'pwn/banner/bubble'
10
10
  autoload :Cheshire, 'pwn/banner/cheshire'
11
+ autoload :CodeCave, 'pwn/banner/code_cave'
11
12
  autoload :DontPanic, 'pwn/banner/dont_panic'
13
+ autoload :ForkBomb, 'pwn/banner/fork_bomb'
12
14
  autoload :FSociety, 'pwn/banner/f_society'
13
15
  autoload :JmpEsp, 'pwn/banner/jmp_esp'
14
- autoload :ForkBomb, 'pwn/banner/fork_bomb'
15
- autoload :FSociety, 'pwn/banner/jmp_esp'
16
16
  autoload :Matrix, 'pwn/banner/matrix'
17
17
  autoload :Ninja, 'pwn/banner/ninja'
18
18
  autoload :OffTheAir, 'pwn/banner/off_the_air'
19
19
  autoload :Pirate, 'pwn/banner/pirate'
20
- autoload :Pirate, 'pwn/banner/radare2'
20
+ autoload :Radare2, 'pwn/banner/radare2'
21
21
  autoload :WhiteRabbit, 'pwn/banner/white_rabbit'
22
22
 
23
23
  # Supported Method Parameters::
@@ -27,7 +27,7 @@ module PWN
27
27
 
28
28
  public_class_method def self.get(opts = {})
29
29
  index = opts[:index].to_i
30
- index = Random.rand(1..12) unless index.positive?
30
+ index = Random.rand(1..14) unless index.positive?
31
31
 
32
32
  banner = ''
33
33
  case index
@@ -38,24 +38,26 @@ module PWN
38
38
  when 3
39
39
  banner = PWN::Banner::Cheshire.get
40
40
  when 4
41
- banner = PWN::Banner::DontPanic.get
41
+ banner = PWN::Banner::CodeCave.get
42
42
  when 5
43
- banner = PWN::Banner::ForkBomb.get
43
+ banner = PWN::Banner::DontPanic.get
44
44
  when 6
45
- banner = PWN::Banner::FSociety.get
45
+ banner = PWN::Banner::ForkBomb.get
46
46
  when 7
47
- banner = PWN::Banner::JmpEsp.get
47
+ banner = PWN::Banner::FSociety.get
48
48
  when 8
49
- banner = PWN::Banner::Matrix.get
49
+ banner = PWN::Banner::JmpEsp.get
50
50
  when 9
51
- banner = PWN::Banner::Ninja.get
51
+ banner = PWN::Banner::Matrix.get
52
52
  when 10
53
- banner = PWN::Banner::OffTheAir.get
53
+ banner = PWN::Banner::Ninja.get
54
54
  when 11
55
- banner = PWN::Banner::Pirate.get
55
+ banner = PWN::Banner::OffTheAir.get
56
56
  when 12
57
- banner = PWN::Banner::Radare2.get
57
+ banner = PWN::Banner::Pirate.get
58
58
  when 13
59
+ banner = PWN::Banner::Radare2.get
60
+ when 14
59
61
  banner = PWN::Banner::WhiteRabbit.get
60
62
  else
61
63
  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.979'
4
+ VERSION = '0.4.980'
5
5
  end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'spec_helper'
4
+
5
+ describe PWN::Banner::CodeCave do
6
+ it 'should cointain a method for banner retrieval' do
7
+ get_response = PWN::Banner::CodeCave
8
+ expect(get_response).to respond_to :get
9
+ end
10
+
11
+ it 'should display information for authors' do
12
+ authors_response = PWN::Banner::CodeCave
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::CodeCave
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.979
4
+ version: 0.4.980
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.
@@ -1706,6 +1706,7 @@ files:
1706
1706
  - lib/pwn/banner/anon.rb
1707
1707
  - lib/pwn/banner/bubble.rb
1708
1708
  - lib/pwn/banner/cheshire.rb
1709
+ - lib/pwn/banner/code_cave.rb
1709
1710
  - lib/pwn/banner/dont_panic.rb
1710
1711
  - lib/pwn/banner/f_society.rb
1711
1712
  - lib/pwn/banner/fork_bomb.rb
@@ -2029,6 +2030,7 @@ files:
2029
2030
  - spec/lib/pwn/banner/anon_spec.rb
2030
2031
  - spec/lib/pwn/banner/bubble_spec.rb
2031
2032
  - spec/lib/pwn/banner/cheshire_spec.rb
2033
+ - spec/lib/pwn/banner/code_cave_spec.rb
2032
2034
  - spec/lib/pwn/banner/dont_panic_spec.rb
2033
2035
  - spec/lib/pwn/banner/f_society_spec.rb
2034
2036
  - spec/lib/pwn/banner/fork_bomb_spec.rb