pwn 0.4.398 → 0.4.401

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: 9b4ebf5cc001c0126e5fc6408fae0ce64f99d79985d57a366d704b3b10b96983
4
- data.tar.gz: 0b68f232f61b082d9245bdeae80de24d4a966eca5db14f0b764c05be4decfd1b
3
+ metadata.gz: df5af1174ba725397e50c9d8bc0cee20fcc78b5b3165b1cdbce60214e28b2a20
4
+ data.tar.gz: e974e9c0b3c9fbf469a9763944fe41826b75797d0de81f5f7c0ad420c91c9bd7
5
5
  SHA512:
6
- metadata.gz: 8c51aceb2a34f91c882a195c370989f3530c7b6348889075695729f07c5eaeddbf3b95191251ed947f8321e4918c497efa08c6ad13180017b4c3ebdd1c611c77
7
- data.tar.gz: c8f1dee8c386ef1508885f17a6f71bbc50e48c61122cf1d201bd08e2f26c195e3c9556ce60ecf06d93784bfb7493ea0659de61f8d9a904fe49e5b7211dee377e
6
+ metadata.gz: 2741cfce43753c589425978fe24cc90e5a8e6d2ee3d6a371b1eb01c361135d4bc14e6078cf2649353827122d2a2e5e33b35a76ba3ab4f2ac8866b2d7b9708d71
7
+ data.tar.gz: d4ab2d9808ef6ec84fd37e8c50165ec7fe85e859e4ed2ec510374657c2408f482f1278a8fc49d416641d6c331d77538e8a6b978ea09a467d83b9eacddf0854d1
data/README.md CHANGED
@@ -37,7 +37,7 @@ $ rvm use ruby-3.1.1@pwn
37
37
  $ rvm list gemsets
38
38
  $ gem install --verbose pwn
39
39
  $ pwn
40
- pwn[v0.4.398]:001 >>> PWN.help
40
+ pwn[v0.4.401]: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.1.1@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.4.398]:001 >>> PWN.help
55
+ pwn[v0.4.401]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
data/bin/pwn CHANGED
@@ -11,10 +11,14 @@ begin
11
11
  def gen_ps1_proc(opts = {})
12
12
  delim = opts[:delim]
13
13
 
14
- title = 'pwn'.red.bold
15
- version = PWN::VERSION.cyan
16
- dchars = '>>>'.green
17
- dchars = '***'.yellow if delim == :splat
14
+ # title = 'pwn'.red.bold
15
+ title = "\001\e[1m\002\001\e[31m\002pwn\001\e[0m\002"
16
+ # version = PWN::VERSION.cyan
17
+ version = "\001\e[36m\002v#{PWN::VERSION}\001\e[0m\002"
18
+ # dchars = '>>>'.green
19
+ dchars = "\001\e[32m\002>>>\001\e[0m\002"
20
+ # dchars = '***'.yellow if delim == :splat
21
+ dchars = "\001\e[33m\002***\001\e[0m\002" if delim == :splat
18
22
 
19
23
  proc do |_target_self, _nest_level, pry|
20
24
  pry.config.pwn_repl_line += 1
@@ -169,6 +169,7 @@ module PWN
169
169
  matrix = "#{matrix}#{matrix_row}\n"
170
170
  end
171
171
 
172
+ matrix = "#{matrix}PWN\n"
172
173
  matrix.green
173
174
  rescue StandardError => e
174
175
  raise e
@@ -20,7 +20,7 @@ module PWN
20
20
  *#*- +%%%#######%%#.
21
21
  :+##=.+%%%%%%%%%=
22
22
  :-+%%%%%%%%%%%%#=
23
- -%%%%%%%%%%%%%%%%%-
23
+ -%%%%%%%%%PWN%%%%%-
24
24
  -%%#:.%%%%%%%%%.:#%%:
25
25
  -##- -%%%%%%%%%- -##:
26
26
  *%%%#+#%%%*::.
@@ -10,28 +10,44 @@ module PWN
10
10
  # PWN::Banner::OffTheAir.get
11
11
 
12
12
  public_class_method def self.get
13
- '
14
- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
15
- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
16
- @@#####%%%%%%%%%%%%%%%%%%%%@@@@@@@@@@@@@
17
- @%.....=====-::::-=====++++*%%%%%#####@@
18
- @%.....=====-::::-=====++++*%%%%%#####@@
19
- @%.....=====-::::-=====++++*%%%%%#####@@
20
- @%.....=====-::::-=====++++*%%%%%#####@@
21
- @%.....=====-::::-=====++++*%%%%%#####@@
22
- @%.....=====-::::-=====++++*%%%%%#####@@
23
- @%.....=====-::::-=====++++*%%%%%#####@@
24
- @%.....=====-::::-=====++++*%%%%%#####@@
25
- @%.....=====-::::-=====++++*%%%%%#####@@
26
- @%.....=====-::::-=====++++*%%%%%#####@@
27
- @@+++++%%%%%+++++*%%%%*----=@@@@@:::::%@
28
- @@######.... *###%%@@@@@@@@@@@@@%%%%%@@
29
- @@###### *#####%@@@@@@@@@@@@@@@@@@@
30
- @@###### *#####%@@@@@@@@@@@@@@@@@@@
31
- @@@@@@@@######@@@@@@@@@@@@@@@@@@@@@@@@@@
32
- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
33
- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
34
- '
13
+ c1 = '.....'.light_black
14
+ c2 = '====='.yellow
15
+ c3 = ':::::'.light_blue
16
+ c4 = '====='.light_green
17
+ c5 = '+++++'.magenta
18
+ c6 = '%%%%%'.red
19
+ c7 = '#####'.blue
20
+ d1 = '+++++'.blue
21
+ d2 = '%%%%%'.black
22
+ d3 = '+++++'.magenta
23
+ d4 = '%%%%%'.black
24
+ d5 = '-----'.light_blue
25
+ d6 = '@@@@@'.black
26
+ d7 = ':::::'.white
27
+ ee1 = '######'.red
28
+ ee2 = '......'.white
29
+ ee3 = '******'.blue
30
+ ee4 = '::::::'.black
31
+ ee5 = '@@@@@@'.black
32
+ f1 = '%%%%%'.black
33
+
34
+ "
35
+ #{c1}#{c2}#{c3}#{c4}#{c5}#{c6}#{c7}
36
+ #{c1}#{c2}#{c3}#{c4}#{c5}#{c6}#{c7}
37
+ #{c1}#{c2}#{c3}#{c4}#{c5}#{c6}#{c7}
38
+ #{c1}#{c2}#{c3}#{c4}#{c5}#{c6}#{c7}
39
+ #{c1}#{c2}#{c3}#{c4}#{c5}#{c6}#{c7}
40
+ #{c1}#{c2}#{c3}#{c4}#{c5}#{c6}#{c7}
41
+ #{c1}#{c2}#{c3}#{c4}#{c5}#{c6}#{c7}
42
+ #{c1}#{c2}#{c3}#{c4}#{c5}#{c6}#{c7}
43
+ #{c1}#{c2}#{c3}#{c4}#{c5}#{c6}#{c7}
44
+ #{c1}#{c2}#{c3}#{c4}#{c5}#{c6}#{c7}
45
+ #{d1}#{d2}#{d3}#{d4}#{d5}#{d6}#{d7}
46
+ #{ee1}#{ee2}#{ee3}#{ee4}#{ee5}#{f1}
47
+ #{ee1}#{ee2}#{ee3}#{ee4}#{ee5}#{f1}
48
+ #{ee1}#{ee2}#{ee3}#{ee4}#{ee5}#{f1}
49
+ PWN
50
+ "
35
51
  rescue StandardError => e
36
52
  raise e
37
53
  end
@@ -34,6 +34,7 @@ module PWN
34
34
  @@@@@@@@@@@@@@@@@@@@@@@@@@@%%%%%%%@@%%%%%%%%%%%%%%%%%%%%%%%%
35
35
  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%%%%%%%%%%%%%%%%%%%%%%%%%%
36
36
  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%%%%%%%%%%%%%%%%%%%%%%
37
+ PWN
37
38
  '.light_black
38
39
  rescue StandardError => e
39
40
  raise e
@@ -5,9 +5,9 @@ require 'bunny'
5
5
  module PWN
6
6
  module Plugins
7
7
  # This plugin is used to interact w/ RabbitMQ via ruby.
8
- module RabbitMQHole
8
+ module RabbitMQ
9
9
  # Supported Method Parameters::
10
- # PWN::Plugins::RabbitMQHole.open(
10
+ # PWN::Plugins::RabbitMQ.open(
11
11
  # hostname: 'required',
12
12
  # username: 'optional',
13
13
  # password: 'optional'
@@ -15,17 +15,19 @@ module PWN
15
15
 
16
16
  public_class_method def self.open(opts = {})
17
17
  host = opts[:hostname].to_s
18
+ port = opts[:port].to_i
19
+ port = 5672 unless port.positive?
18
20
  user = opts[:username].to_s
19
21
  pass = opts[:password].to_s
20
22
 
21
- this_amqp_obj = Bunny.new("amqp://#{user}:#{pass}@#{host}")
23
+ this_amqp_obj = Bunny.new("amqp://#{user}:#{pass}@#{host}:#{port}")
22
24
  this_amqp_obj.start
23
25
  rescue StandardError => e
24
26
  raise e
25
27
  end
26
28
 
27
29
  # Supported Method Parameters::
28
- # PWN::Plugins::RabbitMQHole.close(
30
+ # PWN::Plugins::RabbitMQ.close(
29
31
  # amqp_oject: amqp_conn1
30
32
  # )
31
33
 
@@ -50,6 +52,7 @@ module PWN
50
52
  puts %{USAGE:
51
53
  amqp_conn1 = #{self}.open(
52
54
  hostname: 'required',
55
+ port: 'optional - defaults to 5672',
53
56
  username: 'optional',
54
57
  password: 'optional'
55
58
  )
data/lib/pwn/plugins.rb CHANGED
@@ -42,7 +42,7 @@ module PWN
42
42
  autoload :Packet, 'pwn/plugins/packet'
43
43
  autoload :PDFParse, 'pwn/plugins/pdf_parse'
44
44
  autoload :Pony, 'pwn/plugins/pony'
45
- autoload :RabbitMQHole, 'pwn/plugins/rabbit_mq_hole'
45
+ autoload :RabbitMQ, 'pwn/plugins/rabbit_mq'
46
46
  autoload :RFIDler, 'pwn/plugins/rfidler'
47
47
  autoload :Serial, 'pwn/plugins/serial'
48
48
  autoload :Shodan, 'pwn/plugins/shodan'
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.398'
4
+ VERSION = '0.4.401'
5
5
  end
@@ -2,14 +2,14 @@
2
2
 
3
3
  require 'spec_helper'
4
4
 
5
- describe PWN::Plugins::RabbitMQHole do
5
+ describe PWN::Plugins::RabbitMQ do
6
6
  it 'should display information for authors' do
7
- authors_response = PWN::Plugins::RabbitMQHole
7
+ authors_response = PWN::Plugins::RabbitMQ
8
8
  expect(authors_response).to respond_to :authors
9
9
  end
10
10
 
11
11
  it 'should display information for existing help method' do
12
- help_response = PWN::Plugins::RabbitMQHole
12
+ help_response = PWN::Plugins::RabbitMQ
13
13
  expect(help_response).to respond_to :help
14
14
  end
15
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pwn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.398
4
+ version: 0.4.401
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-03 00:00:00.000000000 Z
11
+ date: 2022-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -1498,7 +1498,7 @@ files:
1498
1498
  - lib/pwn/plugins/pdf_parse.rb
1499
1499
  - lib/pwn/plugins/pony.rb
1500
1500
  - lib/pwn/plugins/pwn_logger.rb
1501
- - lib/pwn/plugins/rabbit_mq_hole.rb
1501
+ - lib/pwn/plugins/rabbit_mq.rb
1502
1502
  - lib/pwn/plugins/rfidler.rb
1503
1503
  - lib/pwn/plugins/serial.rb
1504
1504
  - lib/pwn/plugins/shodan.rb
@@ -1791,7 +1791,7 @@ files:
1791
1791
  - spec/lib/pwn/plugins/packet_spec.rb
1792
1792
  - spec/lib/pwn/plugins/pdf_parse_spec.rb
1793
1793
  - spec/lib/pwn/plugins/pony_spec.rb
1794
- - spec/lib/pwn/plugins/rabbit_mq_hole_spec.rb
1794
+ - spec/lib/pwn/plugins/rabbit_mq_spec.rb
1795
1795
  - spec/lib/pwn/plugins/rfidler_spec.rb
1796
1796
  - spec/lib/pwn/plugins/serial_spec.rb
1797
1797
  - spec/lib/pwn/plugins/shodan_spec.rb
@@ -2058,7 +2058,7 @@ test_files:
2058
2058
  - spec/lib/pwn/plugins/packet_spec.rb
2059
2059
  - spec/lib/pwn/plugins/pdf_parse_spec.rb
2060
2060
  - spec/lib/pwn/plugins/pony_spec.rb
2061
- - spec/lib/pwn/plugins/rabbit_mq_hole_spec.rb
2061
+ - spec/lib/pwn/plugins/rabbit_mq_spec.rb
2062
2062
  - spec/lib/pwn/plugins/rfidler_spec.rb
2063
2063
  - spec/lib/pwn/plugins/serial_spec.rb
2064
2064
  - spec/lib/pwn/plugins/shodan_spec.rb