pwn 0.4.504 → 0.4.505
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 +20 -9
- data/README.md +2 -2
- data/Vagrantfile +1 -1
- data/bin/pwn_arachni_rest +2 -2
- data/lib/pwn/plugins/owasp_zap.rb +3 -3
- 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: 1449f3192170ba71f7171eb6ff54470dd276324cbc66de13771533e7ac7a2f2f
|
|
4
|
+
data.tar.gz: bffe598f24a9324a88dc8dd4bc283cca69b5745ed1f72fbafb3ac68920e14082
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 79e245b36a1f8debc684f5d32fe72eea16a4876b0b4abfa43da82fb061c2d595111d7d25358e610bc7b4d22eb65f69ef24c7f8d5b053bf70daf512fec99171eb
|
|
7
|
+
data.tar.gz: fe8b31edbe5fee36dab0943960df7d5df1841a9c3383baf1f8accacca655a1c2d56101c15adbc37b80abf0b306330304b034d2cc72c352b90d90caff77ee2bdb
|
data/.rubocop_todo.yml
CHANGED
|
@@ -1,21 +1,32 @@
|
|
|
1
1
|
# This configuration was generated by
|
|
2
2
|
# `rubocop --auto-gen-config`
|
|
3
|
-
# on 2022-
|
|
3
|
+
# on 2022-07-08 17:25:42 UTC using RuboCop version 1.31.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
|
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
|
8
8
|
|
|
9
|
-
# Offense count:
|
|
9
|
+
# Offense count: 5
|
|
10
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
11
|
+
# Configuration parameters: AutoCorrect, EnforcedStyle.
|
|
12
|
+
# SupportedStyles: space, no_space
|
|
13
|
+
Layout/LineContinuationSpacing:
|
|
14
|
+
Exclude:
|
|
15
|
+
- 'packer/provisioners/beef.rb'
|
|
16
|
+
- 'packer/provisioners/metasploit.rb'
|
|
17
|
+
- 'packer/provisioners/wpscan.rb'
|
|
18
|
+
- 'vagrant/provisioners/beef.rb'
|
|
19
|
+
|
|
20
|
+
# Offense count: 258
|
|
10
21
|
Lint/UselessAssignment:
|
|
11
22
|
Enabled: false
|
|
12
23
|
|
|
13
|
-
# Offense count:
|
|
24
|
+
# Offense count: 260
|
|
14
25
|
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
|
|
15
26
|
Metrics/AbcSize:
|
|
16
27
|
Max: 328
|
|
17
28
|
|
|
18
|
-
# Offense count:
|
|
29
|
+
# Offense count: 64
|
|
19
30
|
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
|
|
20
31
|
# IgnoredMethods: refine
|
|
21
32
|
Metrics/BlockLength:
|
|
@@ -26,12 +37,12 @@ Metrics/BlockLength:
|
|
|
26
37
|
Metrics/BlockNesting:
|
|
27
38
|
Max: 5
|
|
28
39
|
|
|
29
|
-
# Offense count:
|
|
40
|
+
# Offense count: 91
|
|
30
41
|
# Configuration parameters: IgnoredMethods.
|
|
31
42
|
Metrics/CyclomaticComplexity:
|
|
32
43
|
Max: 231
|
|
33
44
|
|
|
34
|
-
# Offense count:
|
|
45
|
+
# Offense count: 472
|
|
35
46
|
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
|
|
36
47
|
Metrics/MethodLength:
|
|
37
48
|
Max: 466
|
|
@@ -41,16 +52,16 @@ Metrics/MethodLength:
|
|
|
41
52
|
Metrics/ModuleLength:
|
|
42
53
|
Max: 1186
|
|
43
54
|
|
|
44
|
-
# Offense count:
|
|
55
|
+
# Offense count: 83
|
|
45
56
|
# Configuration parameters: IgnoredMethods.
|
|
46
57
|
Metrics/PerceivedComplexity:
|
|
47
58
|
Max: 51
|
|
48
59
|
|
|
49
|
-
# Offense count:
|
|
60
|
+
# Offense count: 162
|
|
50
61
|
Style/ClassVars:
|
|
51
62
|
Enabled: false
|
|
52
63
|
|
|
53
|
-
# Offense count:
|
|
64
|
+
# Offense count: 283
|
|
54
65
|
# This cop supports safe autocorrection (--autocorrect).
|
|
55
66
|
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
|
56
67
|
# SupportedStyles: assign_to_condition, assign_inside_condition
|
data/README.md
CHANGED
|
@@ -37,7 +37,7 @@ $ rvm use ruby-3.1.2@pwn
|
|
|
37
37
|
$ rvm list gemsets
|
|
38
38
|
$ gem install --verbose pwn
|
|
39
39
|
$ pwn
|
|
40
|
-
pwn[v0.4.
|
|
40
|
+
pwn[v0.4.505]:001 >>> PWN.help
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
[](https://youtu.be/G7iLUY4FzsI)
|
|
@@ -52,7 +52,7 @@ $ rvm use ruby-3.1.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.505]:001 >>> PWN.help
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
|
data/Vagrantfile
CHANGED
data/bin/pwn_arachni_rest
CHANGED
|
@@ -105,8 +105,8 @@ rescue Interrupt
|
|
|
105
105
|
exit 1
|
|
106
106
|
ensure
|
|
107
107
|
Process.kill('TERM', fork_pid) if fork_pid
|
|
108
|
-
File.unlink(arachni_stdout_log_path)
|
|
109
|
-
File.unlink(trained_attack_vectors_yaml)
|
|
108
|
+
File.unlink(arachni_stdout_log_path)
|
|
109
|
+
File.unlink(trained_attack_vectors_yaml)
|
|
110
110
|
end
|
|
111
111
|
|
|
112
112
|
# Watch for Arachni proxy plugin to intialize prior to invoking navigation-REST.instruct
|
|
@@ -139,10 +139,10 @@ module PWN
|
|
|
139
139
|
end
|
|
140
140
|
rescue PTY::ChildExited, SystemExit, Interrupt, Errno::EIO
|
|
141
141
|
puts 'Spawned OWASP Zap PTY exiting...'
|
|
142
|
-
File.unlink(pwn_stdout_log_path)
|
|
142
|
+
File.unlink(pwn_stdout_log_path)
|
|
143
143
|
rescue StandardError => e
|
|
144
144
|
puts 'Spawned process exiting...'
|
|
145
|
-
File.unlink(pwn_stdout_log_path)
|
|
145
|
+
File.unlink(pwn_stdout_log_path)
|
|
146
146
|
raise e
|
|
147
147
|
end
|
|
148
148
|
Process.detach(fork_pid)
|
|
@@ -475,7 +475,7 @@ module PWN
|
|
|
475
475
|
zap_obj = opts[:zap_obj]
|
|
476
476
|
unless zap_obj.nil?
|
|
477
477
|
pid = zap_obj[:pid]
|
|
478
|
-
File.unlink(zap_obj[:stdout_log])
|
|
478
|
+
File.unlink(zap_obj[:stdout_log])
|
|
479
479
|
|
|
480
480
|
Process.kill('TERM', pid)
|
|
481
481
|
end
|
data/lib/pwn/version.rb
CHANGED