pwn 0.5.130 → 0.5.132

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: 814b8e431ed2d2ba7bab981882188ca4d140b0d7326df6fae263cc4a88afe9ee
4
- data.tar.gz: cdd95ca1aedf97f1e14d81892218b6a69b74474f8f78650a3c8d5069eb8ac3dc
3
+ metadata.gz: 0b4f65608aed3b569b5e995db9d22eed7578efb8ef9f2aaa175bb560fe509243
4
+ data.tar.gz: ee47cd381756fd1b5c282e9f15d5801693e085205d0e2e08182db65f8c9a35e2
5
5
  SHA512:
6
- metadata.gz: d2c10d7fcf272329ef1a0189397d62aeee9a470c661ab67ad2bc26bda7659aac1a2a7a98b575e0a80bac0c0ffc207c2ade26363e01bd2e4bc5bd1d6c01f0777d
7
- data.tar.gz: 994b0fbb996c133efee107a15de7ce11b7b57321a94b93f0750928c7892679fe59b854d456ec0c9474931586c988609a498f8a8c9cbabbf2c909d17192cfb0fd
6
+ metadata.gz: 4ee1d67fff8b66848c4131965886531a80ca4f8fabb13a8992cf6be4d553ccd1d72d904b7c0ea23f02d75786774f8a7ff2da2f480505bcc9e12b0cc1a72d1646
7
+ data.tar.gz: 207e4fce57173afb75d6ff1e748a472bb1db7515928bd443556fc221322c8ca92e0f4eee83cab716f56dacd4632d441646ff13b4fbbab3862e0ffe472e592fe7
data/Gemfile CHANGED
@@ -46,7 +46,7 @@ gem 'jwt', '2.8.1'
46
46
  gem 'libusb', '0.7.1'
47
47
  gem 'luhn', '1.0.2'
48
48
  gem 'mail', '2.8.1'
49
- gem 'meshtastic', '0.0.65'
49
+ gem 'meshtastic', '0.0.66'
50
50
  gem 'metasm', '1.0.5'
51
51
  gem 'mongo', '2.20.0'
52
52
  gem 'msfrpc-client', '1.1.2'
@@ -69,14 +69,14 @@ gem 'pry-doc', '1.5.0'
69
69
  gem 'rake', '13.2.1'
70
70
  gem 'rb-readline', '0.5.5'
71
71
  gem 'rbvmomi2', '3.7.1'
72
- gem 'rdoc', '6.6.3.1'
72
+ gem 'rdoc', '6.7.0'
73
73
  gem 'rest-client', '2.1.0'
74
74
  gem 'rex', '2.0.13'
75
75
  gem 'rmagick', '6.0.1'
76
76
  gem 'rqrcode', '2.2.0'
77
77
  gem 'rspec', '3.13.0'
78
78
  gem 'rtesseract', '3.1.3'
79
- gem 'rubocop', '1.63.5'
79
+ gem 'rubocop', '1.64.0'
80
80
  gem 'rubocop-rake', '0.6.0'
81
81
  gem 'rubocop-rspec', '2.29.2'
82
82
  gem 'ruby-audio', '1.6.1'
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.5.130]:001 >>> PWN.help
40
+ pwn[v0.5.132]: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.1@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.5.130]:001 >>> PWN.help
55
+ pwn[v0.5.132]: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.1@pwn
62
62
  $ rvmsudo gem uninstall --all --executables pwn
63
63
  $ rvmsudo gem install --verbose pwn
64
64
  $ pwn
65
- pwn[v0.5.130]:001 >>> PWN.help
65
+ pwn[v0.5.132]: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:
@@ -56,9 +56,7 @@ module PWN
56
56
  @@logger.info(message)
57
57
  next unless block_given?
58
58
 
59
- # Extract the message text from the message
60
- message_text = message.to_s.split[3..-1].join(' ')[1..-1]
61
- yield message_text
59
+ yield message
62
60
  end
63
61
  rescue StandardError => e
64
62
  raise e
@@ -66,15 +64,20 @@ module PWN
66
64
  disconnect(irc_obj: irc_obj)
67
65
  end
68
66
 
67
+ # Supported Method Parameters::
68
+ # PWN::Plugins::IRC.send(
69
+ # irc_obj: 'required - irc_obj returned from #connect method',
70
+ # message: 'required - message to send',
71
+ # response_timeout: 'optional - response timeout in seconds (defaults to 3)'
72
+ # )
69
73
  public_class_method def self.send(opts = {})
70
74
  irc_obj = opts[:irc_obj]
71
75
  message = opts[:message].to_s.scrub
76
+ response_timeout = opts[:response_timeout] || 3
72
77
 
73
- irc_obj.puts message
78
+ irc_obj.puts(message)
74
79
  # Wait for a response from the server
75
- # This is a hack to ensure the message is processed by the server
76
- # before sending another message
77
- irc_obj.gets
80
+ does_respond = irc_obj.wait_readable(response_timeout)
78
81
  irc_obj.flush
79
82
  rescue StandardError => e
80
83
  raise e
@@ -118,7 +121,8 @@ module PWN
118
121
 
119
122
  #{self}.send(
120
123
  irc_obj: 'required - irc_obj returned from #connect method',
121
- message: 'required - message to send'
124
+ message: 'required - message to send',
125
+ response_timeout: 'optional - response timeout in seconds (defaults to 3)'
122
126
  )
123
127
 
124
128
  irc_obj = #{self}.disconnect(
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.5.130'
4
+ VERSION = '0.5.132'
5
5
  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.5.130
4
+ version: 0.5.132
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-22 00:00:00.000000000 Z
11
+ date: 2024-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -478,14 +478,14 @@ dependencies:
478
478
  requirements:
479
479
  - - '='
480
480
  - !ruby/object:Gem::Version
481
- version: 0.0.65
481
+ version: 0.0.66
482
482
  type: :runtime
483
483
  prerelease: false
484
484
  version_requirements: !ruby/object:Gem::Requirement
485
485
  requirements:
486
486
  - - '='
487
487
  - !ruby/object:Gem::Version
488
- version: 0.0.65
488
+ version: 0.0.66
489
489
  - !ruby/object:Gem::Dependency
490
490
  name: metasm
491
491
  requirement: !ruby/object:Gem::Requirement
@@ -800,14 +800,14 @@ dependencies:
800
800
  requirements:
801
801
  - - '='
802
802
  - !ruby/object:Gem::Version
803
- version: 6.6.3.1
803
+ version: 6.7.0
804
804
  type: :development
805
805
  prerelease: false
806
806
  version_requirements: !ruby/object:Gem::Requirement
807
807
  requirements:
808
808
  - - '='
809
809
  - !ruby/object:Gem::Version
810
- version: 6.6.3.1
810
+ version: 6.7.0
811
811
  - !ruby/object:Gem::Dependency
812
812
  name: rest-client
813
813
  requirement: !ruby/object:Gem::Requirement
@@ -898,14 +898,14 @@ dependencies:
898
898
  requirements:
899
899
  - - '='
900
900
  - !ruby/object:Gem::Version
901
- version: 1.63.5
901
+ version: 1.64.0
902
902
  type: :runtime
903
903
  prerelease: false
904
904
  version_requirements: !ruby/object:Gem::Requirement
905
905
  requirements:
906
906
  - - '='
907
907
  - !ruby/object:Gem::Version
908
- version: 1.63.5
908
+ version: 1.64.0
909
909
  - !ruby/object:Gem::Dependency
910
910
  name: rubocop-rake
911
911
  requirement: !ruby/object:Gem::Requirement