pwn 0.4.649 → 0.4.650

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: 0bb975f8a9a611bf3ebf207886d6ff732a9256260065f4113e899cb2351f1058
4
- data.tar.gz: 3c24d920cd68004959016e20402a328dc465fb0ed76ff0abafa4979cb6a300e1
3
+ metadata.gz: f14f114a3dca79bd8257adb25626f48bdc5f172278976c17d32a39a922079b67
4
+ data.tar.gz: ff3c17e726e1ddccf0d5b37725b02c48aadf5576822584d322d437237feb8992
5
5
  SHA512:
6
- metadata.gz: d54d1631b8ba697301535d8d00698d0861b75279d93930ae67cfb7a9953f639b3a44997c30d73c90872dac3159ca18fc5c17a3bec1c0513d02f32a85813ba36b
7
- data.tar.gz: 748e285a1f0419b0c4cec38890e08b755892553e9314ae69e211bdccffd8b2da8d274142456d4ce52261c3a1aedcf691a3643c6f88391382f711001631897efc
6
+ metadata.gz: 8dd3d313070006b7cbda229e88ee6ff41202230c4e2d4701ef85bcc16d96ff4a12a1fb7588aec387fd0619856a49a845ebc694d6258c58055c2d89bf4bc94c0d
7
+ data.tar.gz: 7b788eda9ba77f46fe589f6721f452b9949ed4297d097fafa4f1ab4afd7811dad5564cafc702afc3894d9c77cfa6f6ff150b3dc4a4e932c54efd4b29774cbf2e
data/.rubocop_todo.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2023-04-21 20:18:30 UTC using RuboCop version 1.50.2.
3
+ # on 2023-04-21 21:47:04 UTC using RuboCop version 1.50.2.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
@@ -84,7 +84,7 @@ Style/ExplicitBlockArgument:
84
84
  Exclude:
85
85
  - 'lib/pwn/plugins/nmap_it.rb'
86
86
 
87
- # Offense count: 3
87
+ # Offense count: 2
88
88
  # This cop supports safe autocorrection (--autocorrect).
89
89
  Style/IfUnlessModifier:
90
90
  Exclude:
data/README.md CHANGED
@@ -37,7 +37,7 @@ $ rvm use ruby-3.2.2@pwn
37
37
  $ rvm list gemsets
38
38
  $ gem install --verbose pwn
39
39
  $ pwn
40
- pwn[v0.4.649]:001 >>> PWN.help
40
+ pwn[v0.4.650]: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.2.2@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.4.649]:001 >>> PWN.help
55
+ pwn[v0.4.650]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
data/bin/pwn CHANGED
@@ -104,21 +104,18 @@ begin
104
104
  exec_hook :after_read, eval_string, self
105
105
 
106
106
  begin
107
- if config.chat_gpt
108
- complete_expr = true
109
- @eval_string += ';'
110
- else
111
- complete_expr = Pry::Code.complete_expression?(@eval_string)
112
- end
107
+ complete_expr = true if config.chat_gpt
108
+ complete_expr = Pry::Code.complete_expression?(@eval_string) unless config.chat_gpt
113
109
  rescue SyntaxError => e
114
110
  output.puts e.message.gsub(/^.*syntax error, */, "SyntaxError: ")
115
111
  reset_eval_string
116
112
  end
117
113
 
118
114
  if complete_expr
119
- if @eval_string =~ /;\Z/ || @eval_string.empty? || @eval_string =~ /\A *#.*\n\z/
120
- @suppress_output = true
121
- end
115
+ @suppress_output = true if @eval_string =~ /;\Z/ ||
116
+ @eval_string.empty? ||
117
+ @eval_string =~ /\A *#.*\n\z/ ||
118
+ config.chat_gpt
122
119
 
123
120
  # A bug in jruby makes java.lang.Exception not rescued by
124
121
  # `rescue Pry::RescuableException` clause.
@@ -201,8 +198,6 @@ begin
201
198
  def process
202
199
  pi = pry_instance
203
200
  pi.config.chat_gpt ? pi.config.chat_gpt = false : pi.config.chat_gpt = true
204
- pi.config.color = false if pi.config.chat_gpt
205
- pi.config.color = true unless pi.config.chat_gpt
206
201
  end
207
202
  end
208
203
 
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.649'
4
+ VERSION = '0.4.650'
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.4.649
4
+ version: 0.4.650
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.