pwn 0.5.128 → 0.5.130

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: aeee907bfc7c248eeec181361a541d57ba6981e4a783352a7bb229dfa01fda21
4
- data.tar.gz: 5452506b02ee9ab69f48f55963b3a37ad7196c4642bfc3e7f94bda8beb9ab891
3
+ metadata.gz: 814b8e431ed2d2ba7bab981882188ca4d140b0d7326df6fae263cc4a88afe9ee
4
+ data.tar.gz: cdd95ca1aedf97f1e14d81892218b6a69b74474f8f78650a3c8d5069eb8ac3dc
5
5
  SHA512:
6
- metadata.gz: 7289cb78e75f72448dc40f1ca9834e22965789b4f76ec336cdc522fff37538a01469084f017cbf28ffcc0397bfb2d9528217d7ebe21e01df293c23f55e16ecda
7
- data.tar.gz: 858af3ebc0e7f97f4213675adfa6ca17d2a23f92b47a6ea7ed3b8b08dee0ed8f0bd438d8db0667e82c7e1958f22daf5405334c5028b23badb657b89b0ecb86ee
6
+ metadata.gz: d2c10d7fcf272329ef1a0189397d62aeee9a470c661ab67ad2bc26bda7659aac1a2a7a98b575e0a80bac0c0ffc207c2ade26363e01bd2e4bc5bd1d6c01f0777d
7
+ data.tar.gz: 994b0fbb996c133efee107a15de7ce11b7b57321a94b93f0750928c7892679fe59b854d456ec0c9474931586c988609a498f8a8c9cbabbf2c909d17192cfb0fd
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.128]:001 >>> PWN.help
40
+ pwn[v0.5.130]: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.128]:001 >>> PWN.help
55
+ pwn[v0.5.130]: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.128]:001 >>> PWN.help
65
+ pwn[v0.5.130]: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:
@@ -54,11 +54,11 @@ module PWN
54
54
  loop do
55
55
  message = irc_obj.gets
56
56
  @@logger.info(message)
57
- if block_given?
58
- # Extract the message text from the message
59
- message_text = message.split[3..-1].join(' ')[1..-1]
60
- yield message_text
61
- end
57
+ next unless block_given?
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
62
62
  end
63
63
  rescue StandardError => e
64
64
  raise e
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.128'
4
+ VERSION = '0.5.130'
5
5
  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.5.128
4
+ version: 0.5.130
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.