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 +4 -4
- data/.rubocop_todo.yml +2 -2
- data/README.md +2 -2
- data/bin/pwn +6 -11
- data/lib/pwn/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f14f114a3dca79bd8257adb25626f48bdc5f172278976c17d32a39a922079b67
|
|
4
|
+
data.tar.gz: ff3c17e726e1ddccf0d5b37725b02c48aadf5576822584d322d437237feb8992
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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:
|
|
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.
|
|
40
|
+
pwn[v0.4.650]:001 >>> PWN.help
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
[](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.
|
|
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
|
-
|
|
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/ ||
|
|
120
|
-
|
|
121
|
-
|
|
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