pwn 0.4.400 → 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: 78763f9e6b9981ecd1e3dcdf76ee3a792a613398ac6aa895b0455daec76efe06
4
- data.tar.gz: 8b8ef42ca58081dd11d918a25039d4c31bd46a2ae1e0200a554812f429789178
3
+ metadata.gz: df5af1174ba725397e50c9d8bc0cee20fcc78b5b3165b1cdbce60214e28b2a20
4
+ data.tar.gz: e974e9c0b3c9fbf469a9763944fe41826b75797d0de81f5f7c0ad420c91c9bd7
5
5
  SHA512:
6
- metadata.gz: c830d6c105b0d3dabe12e01cb2456778cf088925af00ecf36d4c57aef9e0880d87b189bdabcae5cc5742104d120e260d73afc04172536b08f1a0acd779b34f4d
7
- data.tar.gz: 651a2199d0d29d29f6752d2a8945620a3efe25b42a4ea191dba121b1e078da26675797e1fddd60dadd838a0438283ef798427d89a6773158776ffad056d644bc
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.400]: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.400]: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
@@ -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.400'
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.400
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-04 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