pwn 0.4.614 → 0.4.616

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: abb97d64a5ad248b88accafc230e82d9bf9910c1f096e6372d799d5dc3de2817
4
- data.tar.gz: a349a80ed11c1ca8001559a8df851c78ae94d7462c2af94dabddb89460783294
3
+ metadata.gz: 07d6ae5051610f818620f4c6435ad3e1149f9ac5c36f68b54f4ec012d9aefd08
4
+ data.tar.gz: 4c4bbf2f7178ef1c43b168f36bff45f7b5175fb92f6c9686a1f79888ab00cd4f
5
5
  SHA512:
6
- metadata.gz: aefd543741e07dead4ea8e01bf855660f8c4379047d9c083bcee40d682377b0f137b79644bfed86e176d9fc12f93948a5d8e1c1c65c99a505a7bbf3939174ea5
7
- data.tar.gz: 7b6ea60220b57c7ccd842d1a1450193bbf423d74c0499b696a531fbef63688e3038e45a1e80523a681e3b13c871381d580a9ea46e20a8c23b137cfad3051a7c7
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/Gemfile CHANGED
@@ -52,7 +52,7 @@ gem 'oily_png', '1.2.1'
52
52
  gem 'os', '1.1.4'
53
53
  gem 'packetfu', '1.1.13'
54
54
  gem 'pdf-reader', '2.11.0'
55
- gem 'pg', '1.4.5'
55
+ gem 'pg', '1.4.6'
56
56
  gem 'pry', '0.14.2'
57
57
  gem 'pry-doc', '1.4.0'
58
58
  gem 'rake', '13.0.6'
@@ -64,9 +64,9 @@ gem 'rex', '2.0.13'
64
64
  gem 'rmagick', '5.1.0'
65
65
  gem 'rspec', '3.12.0'
66
66
  gem 'rtesseract', '3.1.2'
67
- gem 'rubocop', '1.45.1'
67
+ gem 'rubocop', '1.48.0'
68
68
  gem 'rubocop-rake', '0.6.0'
69
- gem 'rubocop-rspec', '2.18.1'
69
+ gem 'rubocop-rspec', '2.19.0'
70
70
  gem 'ruby-audio', '1.6.1'
71
71
  gem 'ruby-nmap', '1.0.1'
72
72
  gem 'ruby-saml', '1.15.0'
@@ -78,7 +78,7 @@ gem 'sinatra', '3.0.5'
78
78
  gem 'slack-ruby-client', '2.0.0'
79
79
  gem 'socksify', '1.7.1'
80
80
  gem 'spreadsheet', '1.3.0'
81
- gem 'sqlite3', '1.6.0'
81
+ gem 'sqlite3', '1.6.1'
82
82
  gem 'thin', '1.8.1'
83
83
  gem 'tty-prompt', '0.23.1'
84
84
  gem 'watir', '7.2.2'
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.614]: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.614]: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.614'
4
+ VERSION = '0.4.616'
5
5
  end
data/upgrade_ruby.sh CHANGED
@@ -30,7 +30,7 @@ fi
30
30
  curl -sSL https://rvm.io/mpapis.asc | sudo gpg2 --import -
31
31
  curl -sSL https://rvm.io/pkuczynski.asc | sudo gpg2 --import -
32
32
  export rvmsudo_secure_path=1
33
- rvmsudo rvm get latest
33
+ rvmsudo rvm get stable
34
34
  rvm reload
35
35
 
36
36
  # Install New Version of RubyGems & Ruby
@@ -12,7 +12,7 @@ fi
12
12
  ruby_version=`cat ${pwn_root}/.ruby-version`
13
13
  ruby_gemset=`cat ${pwn_root}/.ruby-gemset`
14
14
  printf "Updating RVM..."
15
- rvmsudo rvm get latest
15
+ rvmsudo rvm get stable
16
16
  rvm reload
17
17
  /bin/bash --login -c "source /etc/profile.d/rvm.sh && rvm --default ruby-${ruby_version}@${ruby_gemset}"
18
18
  echo "complete."
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pwn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.614
4
+ version: 0.4.616
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-21 00:00:00.000000000 Z
11
+ date: 2023-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -576,14 +576,14 @@ dependencies:
576
576
  requirements:
577
577
  - - '='
578
578
  - !ruby/object:Gem::Version
579
- version: 1.4.5
579
+ version: 1.4.6
580
580
  type: :runtime
581
581
  prerelease: false
582
582
  version_requirements: !ruby/object:Gem::Requirement
583
583
  requirements:
584
584
  - - '='
585
585
  - !ruby/object:Gem::Version
586
- version: 1.4.5
586
+ version: 1.4.6
587
587
  - !ruby/object:Gem::Dependency
588
588
  name: pry
589
589
  requirement: !ruby/object:Gem::Requirement
@@ -744,14 +744,14 @@ dependencies:
744
744
  requirements:
745
745
  - - '='
746
746
  - !ruby/object:Gem::Version
747
- version: 1.45.1
747
+ version: 1.48.0
748
748
  type: :runtime
749
749
  prerelease: false
750
750
  version_requirements: !ruby/object:Gem::Requirement
751
751
  requirements:
752
752
  - - '='
753
753
  - !ruby/object:Gem::Version
754
- version: 1.45.1
754
+ version: 1.48.0
755
755
  - !ruby/object:Gem::Dependency
756
756
  name: rubocop-rake
757
757
  requirement: !ruby/object:Gem::Requirement
@@ -772,14 +772,14 @@ dependencies:
772
772
  requirements:
773
773
  - - '='
774
774
  - !ruby/object:Gem::Version
775
- version: 2.18.1
775
+ version: 2.19.0
776
776
  type: :runtime
777
777
  prerelease: false
778
778
  version_requirements: !ruby/object:Gem::Requirement
779
779
  requirements:
780
780
  - - '='
781
781
  - !ruby/object:Gem::Version
782
- version: 2.18.1
782
+ version: 2.19.0
783
783
  - !ruby/object:Gem::Dependency
784
784
  name: ruby-audio
785
785
  requirement: !ruby/object:Gem::Requirement
@@ -940,14 +940,14 @@ dependencies:
940
940
  requirements:
941
941
  - - '='
942
942
  - !ruby/object:Gem::Version
943
- version: 1.6.0
943
+ version: 1.6.1
944
944
  type: :runtime
945
945
  prerelease: false
946
946
  version_requirements: !ruby/object:Gem::Requirement
947
947
  requirements:
948
948
  - - '='
949
949
  - !ruby/object:Gem::Version
950
- version: 1.6.0
950
+ version: 1.6.1
951
951
  - !ruby/object:Gem::Dependency
952
952
  name: thin
953
953
  requirement: !ruby/object:Gem::Requirement