pwn 0.4.615 → 0.4.616

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: f7f860216331838f7c749b9cd6a3d4b1b7aaca61540fc33d672529e15c44c0e7
4
- data.tar.gz: 52dd730de77b406d7223012623f89f8d81f94e9a75e3aab9d324025c2ed431aa
3
+ metadata.gz: 07d6ae5051610f818620f4c6435ad3e1149f9ac5c36f68b54f4ec012d9aefd08
4
+ data.tar.gz: 4c4bbf2f7178ef1c43b168f36bff45f7b5175fb92f6c9686a1f79888ab00cd4f
5
5
  SHA512:
6
- metadata.gz: 2a94188fafdf616ec78374ca4b268083e34f4ce42126c533432800bf92fa932336b4d84443e5ccf7bd1d81b52cd15716ca10ded467ae1c9ef02aaca41ad4b659
7
- data.tar.gz: 54e621285393b7ce02b40a88ec289add5f076e8a43198c2d6dd4e5c62e3f528ffc91aa820c5d15e936ef0bd7c4a85c112dad4eb96c2111a5a8b1e99f5f58cae7
6
+ metadata.gz: e5d4ad9b2a4a304e96c72d1955feacfcf098116d4ee14d59062badedbf44fd8502ae75e0eb85cb83131da0529baf56292c08d5d8e78111c24cac53ec7767797e
7
+ data.tar.gz: 912dfb0843d52dff40ef0f0e0fa409eefae3ab13867fb9b3733aaaf060a5e783d08b3f819fb5d32383fada9f2eadd7a6f88c3e5b738bc77f4f0e14124f1cfdd7
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-01-12 23:49:41 UTC using RuboCop version 1.43.0.
3
+ # on 2023-03-07 16:56:25 UTC using RuboCop version 1.48.0.
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
@@ -17,37 +17,43 @@ Layout/LineContinuationSpacing:
17
17
  - 'packer/provisioners/wpscan.rb'
18
18
  - 'vagrant/provisioners/beef.rb'
19
19
 
20
- # Offense count: 268
20
+ # Offense count: 270
21
21
  Lint/UselessAssignment:
22
22
  Enabled: false
23
23
 
24
- # Offense count: 629
24
+ # Offense count: 631
25
25
  Lint/UselessRescue:
26
26
  Enabled: false
27
27
 
28
- # Offense count: 270
29
- # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods, CountRepeatedAttributes.
28
+ # Offense count: 271
29
+ # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
30
30
  Metrics/AbcSize:
31
31
  Max: 328
32
32
 
33
- # Offense count: 68
34
- # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods.
33
+ # Offense count: 69
34
+ # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
35
35
  # AllowedMethods: refine
36
36
  Metrics/BlockLength:
37
37
  Max: 196
38
38
 
39
- # Offense count: 46
39
+ # Offense count: 47
40
40
  # Configuration parameters: CountBlocks.
41
41
  Metrics/BlockNesting:
42
42
  Max: 5
43
43
 
44
- # Offense count: 97
45
- # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
44
+ # Offense count: 1
45
+ # Configuration parameters: LengthThreshold.
46
+ Metrics/CollectionLiteralLength:
47
+ Exclude:
48
+ - 'lib/pwn/plugins/uri_scheme.rb'
49
+
50
+ # Offense count: 98
51
+ # Configuration parameters: AllowedMethods, AllowedPatterns.
46
52
  Metrics/CyclomaticComplexity:
47
53
  Max: 231
48
54
 
49
- # Offense count: 492
50
- # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods.
55
+ # Offense count: 493
56
+ # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
51
57
  Metrics/MethodLength:
52
58
  Max: 466
53
59
 
@@ -56,12 +62,12 @@ Metrics/MethodLength:
56
62
  Metrics/ModuleLength:
57
63
  Max: 1186
58
64
 
59
- # Offense count: 89
60
- # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
65
+ # Offense count: 90
66
+ # Configuration parameters: AllowedMethods, AllowedPatterns.
61
67
  Metrics/PerceivedComplexity:
62
68
  Max: 51
63
69
 
64
- # Offense count: 165
70
+ # Offense count: 166
65
71
  Style/ClassVars:
66
72
  Enabled: false
67
73
 
@@ -102,14 +108,14 @@ Style/RedundantStringEscape:
102
108
  - 'lib/pwn/sast/redos.rb'
103
109
  - 'vagrant/provisioners/kali_customize.rb'
104
110
 
105
- # Offense count: 45
111
+ # Offense count: 46
106
112
  # This cop supports unsafe autocorrection (--autocorrect-all).
107
113
  Style/SlicingWithRange:
108
114
  Enabled: false
109
115
 
110
- # Offense count: 575
116
+ # Offense count: 579
111
117
  # This cop supports safe autocorrection (--autocorrect).
112
- # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns.
118
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
113
119
  # URISchemes: http, https
114
120
  Layout/LineLength:
115
121
  Max: 1620
data/README.md CHANGED
@@ -37,7 +37,7 @@ $ rvm use ruby-ruby-3.2.1@pwn
37
37
  $ rvm list gemsets
38
38
  $ gem install --verbose pwn
39
39
  $ pwn
40
- pwn[v0.4.615]:001 >>> PWN.help
40
+ pwn[v0.4.616]: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-ruby-3.2.1@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.4.615]:001 >>> PWN.help
55
+ pwn[v0.4.616]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
@@ -368,7 +368,7 @@ module PWN
368
368
  end
369
369
  end
370
370
 
371
- if File.read(this_file).empty?
371
+ if File.empty?(this_file)
372
372
  File.unlink(this_file)
373
373
  else
374
374
  print '.'
@@ -376,7 +376,7 @@ module PWN
376
376
  rescue StandardError => e
377
377
  puts "FILE GENERATION ATTEMPT OF: #{this_file} RESULTED THE FOLLOWING ERROR:"
378
378
  puts "#{e.class}: #{e.message}\n#{e.backtrace}\n\n\n"
379
- File.unlink(this_file) if File.read(this_file).empty?
379
+ File.unlink(this_file) if File.empty?(this_file)
380
380
  next
381
381
  end
382
382
  print "\n"
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.615'
4
+ VERSION = '0.4.616'
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.615
4
+ version: 0.4.616
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.