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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 253136ca915fe42e666099b83268b49fad33ea66e55360bd89bd660948c5263b
4
- data.tar.gz: 85369110544b7c21a2e86e27c4b4794a52c91952ba8e59b9be3ce0a3e94c601f
3
+ metadata.gz: 1449f3192170ba71f7171eb6ff54470dd276324cbc66de13771533e7ac7a2f2f
4
+ data.tar.gz: bffe598f24a9324a88dc8dd4bc283cca69b5745ed1f72fbafb3ac68920e14082
5
5
  SHA512:
6
- metadata.gz: 611767de224ab03d45bebb1111366de7a8209ba56ba94165198cffa0ba42ff8d22807f9f43ecff0f9cf641ab80095ff9e284508aa3739dbda5a4d2127201a2d7
7
- data.tar.gz: 21cc9be2adca3389ad131b461b31d6f4bb8cac59f179edf7f0e8f823c3e0997a3c2c1f80fdad7689ed0fbcd138be2a5bd6e9cdab9eef316c82e6f60296b5a15c
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-05-27 23:04:56 UTC using RuboCop version 1.30.0.
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: 234
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: 253
24
+ # Offense count: 260
14
25
  # Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
15
26
  Metrics/AbcSize:
16
27
  Max: 328
17
28
 
18
- # Offense count: 63
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: 89
40
+ # Offense count: 91
30
41
  # Configuration parameters: IgnoredMethods.
31
42
  Metrics/CyclomaticComplexity:
32
43
  Max: 231
33
44
 
34
- # Offense count: 459
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: 81
55
+ # Offense count: 83
45
56
  # Configuration parameters: IgnoredMethods.
46
57
  Metrics/PerceivedComplexity:
47
58
  Max: 51
48
59
 
49
- # Offense count: 161
60
+ # Offense count: 162
50
61
  Style/ClassVars:
51
62
  Enabled: false
52
63
 
53
- # Offense count: 285
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.504]:001 >>> PWN.help
40
+ pwn[v0.4.505]: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.1.2@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.4.504]:001 >>> PWN.help
55
+ pwn[v0.4.505]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
data/Vagrantfile CHANGED
@@ -247,4 +247,4 @@ else
247
247
  end
248
248
  end
249
249
  end
250
- File.unlink(runtime_userland) if File.exist?(runtime_userland)
250
+ File.unlink(runtime_userland)
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) if File.exist?(arachni_stdout_log_path)
109
- File.unlink(trained_attack_vectors_yaml) if File.exist?(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) if File.exist?(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) if File.exist?(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]) if File.exist?(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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PWN
4
- VERSION = '0.4.504'
4
+ VERSION = '0.4.505'
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.504
4
+ version: 0.4.505
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.