pwn 0.4.419 → 0.4.421
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 +25 -18
- data/Gemfile +6 -6
- data/README.md +2 -2
- data/lib/pwn/plugins/credit_card.rb +17 -0
- data/lib/pwn/version.rb +1 -1
- metadata +15 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: efeeeb198ab9feda7118a37ba906a4d02ad835cbf6bb46532182f6b40bc2f848
|
|
4
|
+
data.tar.gz: 1625c31714f92f1b440d70e5b53700abc06e328ded5b37aa9b6a8bc66fad66ce
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5ad799e572825d6955d64cb2cb126dfd23874b3fe73102b2b817cb714f4dc3d7c0c009709d3ed6d626a4308e4f99e2c0467fec1960b4aeee4c36e56b0b2bbe6c
|
|
7
|
+
data.tar.gz: e8e260bcfe8a699932d45f595f754e9b142b77ab31049919e34ea573912935b2f1a811eeb25cafa22d36180d36f9254edb27d2ce1cb67e770ff8a8b32aa10189
|
data/.rubocop_todo.yml
CHANGED
|
@@ -1,76 +1,83 @@
|
|
|
1
1
|
# This configuration was generated by
|
|
2
2
|
# `rubocop --auto-gen-config`
|
|
3
|
-
# on 2022-
|
|
3
|
+
# on 2022-05-08 06:06:43 UTC using RuboCop version 1.29.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
|
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
|
8
8
|
|
|
9
|
-
# Offense count:
|
|
9
|
+
# Offense count: 227
|
|
10
10
|
Lint/UselessAssignment:
|
|
11
11
|
Enabled: false
|
|
12
12
|
|
|
13
|
-
# Offense count:
|
|
13
|
+
# Offense count: 246
|
|
14
14
|
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
|
|
15
15
|
Metrics/AbcSize:
|
|
16
16
|
Max: 328
|
|
17
17
|
|
|
18
|
-
# Offense count:
|
|
18
|
+
# Offense count: 60
|
|
19
19
|
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
|
|
20
20
|
# IgnoredMethods: refine
|
|
21
21
|
Metrics/BlockLength:
|
|
22
22
|
Max: 194
|
|
23
23
|
|
|
24
|
-
# Offense count:
|
|
24
|
+
# Offense count: 45
|
|
25
25
|
# Configuration parameters: CountBlocks.
|
|
26
26
|
Metrics/BlockNesting:
|
|
27
27
|
Max: 5
|
|
28
28
|
|
|
29
|
-
# Offense count:
|
|
29
|
+
# Offense count: 83
|
|
30
30
|
# Configuration parameters: IgnoredMethods.
|
|
31
31
|
Metrics/CyclomaticComplexity:
|
|
32
32
|
Max: 231
|
|
33
33
|
|
|
34
|
-
# Offense count:
|
|
34
|
+
# Offense count: 440
|
|
35
35
|
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
|
|
36
36
|
Metrics/MethodLength:
|
|
37
37
|
Max: 466
|
|
38
38
|
|
|
39
|
-
# Offense count:
|
|
39
|
+
# Offense count: 33
|
|
40
40
|
# Configuration parameters: CountComments, CountAsOne.
|
|
41
41
|
Metrics/ModuleLength:
|
|
42
42
|
Max: 1186
|
|
43
43
|
|
|
44
|
-
# Offense count:
|
|
44
|
+
# Offense count: 75
|
|
45
45
|
# Configuration parameters: IgnoredMethods.
|
|
46
46
|
Metrics/PerceivedComplexity:
|
|
47
47
|
Max: 51
|
|
48
48
|
|
|
49
|
-
# Offense count:
|
|
49
|
+
# Offense count: 161
|
|
50
50
|
Style/ClassVars:
|
|
51
51
|
Enabled: false
|
|
52
52
|
|
|
53
|
-
# Offense count:
|
|
54
|
-
#
|
|
53
|
+
# Offense count: 281
|
|
54
|
+
# This cop supports safe auto-correction (--auto-correct).
|
|
55
55
|
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
|
56
56
|
# SupportedStyles: assign_to_condition, assign_inside_condition
|
|
57
57
|
Style/ConditionalAssignment:
|
|
58
58
|
Enabled: false
|
|
59
59
|
|
|
60
60
|
# Offense count: 2
|
|
61
|
-
#
|
|
61
|
+
# This cop supports safe auto-correction (--auto-correct).
|
|
62
62
|
Style/ExplicitBlockArgument:
|
|
63
63
|
Exclude:
|
|
64
64
|
- 'lib/pwn/plugins/nmap_it.rb'
|
|
65
65
|
|
|
66
|
-
# Offense count:
|
|
67
|
-
#
|
|
66
|
+
# Offense count: 95
|
|
67
|
+
# This cop supports safe auto-correction (--auto-correct).
|
|
68
|
+
Style/RedundantCondition:
|
|
69
|
+
Exclude:
|
|
70
|
+
- 'bin/pwn_simple_http_server'
|
|
71
|
+
- 'lib/pwn/plugins/packet.rb'
|
|
72
|
+
|
|
73
|
+
# Offense count: 44
|
|
74
|
+
# This cop supports unsafe auto-correction (--auto-correct-all).
|
|
68
75
|
Style/SlicingWithRange:
|
|
69
76
|
Enabled: false
|
|
70
77
|
|
|
71
|
-
# Offense count:
|
|
72
|
-
#
|
|
73
|
-
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
|
78
|
+
# Offense count: 531
|
|
79
|
+
# This cop supports safe auto-correction (--auto-correct).
|
|
80
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns.
|
|
74
81
|
# URISchemes: http, https
|
|
75
82
|
Layout/LineLength:
|
|
76
83
|
Max: 1620
|
data/Gemfile
CHANGED
|
@@ -16,9 +16,9 @@ gem 'anemone', '0.7.2'
|
|
|
16
16
|
gem 'authy', '3.0.0'
|
|
17
17
|
gem 'aws-sdk', '3.1.0'
|
|
18
18
|
gem 'bettercap', '1.6.2'
|
|
19
|
-
gem 'brakeman', '5.2.
|
|
19
|
+
gem 'brakeman', '5.2.3'
|
|
20
20
|
gem 'bson', '4.15.0'
|
|
21
|
-
gem 'bundler', '>=2.3.
|
|
21
|
+
gem 'bundler', '>=2.3.13'
|
|
22
22
|
gem 'bundler-audit', '0.9.0.1'
|
|
23
23
|
gem 'bunny', '2.19.0'
|
|
24
24
|
gem 'colorize', '0.8.1'
|
|
@@ -42,7 +42,7 @@ gem 'net-ldap', '0.17.0'
|
|
|
42
42
|
gem 'net-openvpn', '0.8.7'
|
|
43
43
|
gem 'net-smtp', '0.3.1'
|
|
44
44
|
gem 'nexpose', '7.3.0'
|
|
45
|
-
gem 'nokogiri', '1.13.
|
|
45
|
+
gem 'nokogiri', '1.13.5'
|
|
46
46
|
gem 'oily_png', '1.2.1'
|
|
47
47
|
gem 'os', '1.1.4'
|
|
48
48
|
gem 'packetfu', '1.1.13'
|
|
@@ -59,7 +59,7 @@ gem 'rex', '2.0.13'
|
|
|
59
59
|
gem 'rmagick', '4.2.5'
|
|
60
60
|
gem 'rspec', '3.11.0'
|
|
61
61
|
gem 'rtesseract', '3.1.2'
|
|
62
|
-
gem 'rubocop', '1.
|
|
62
|
+
gem 'rubocop', '1.29.0'
|
|
63
63
|
gem 'rubocop-rake', '0.6.0'
|
|
64
64
|
gem 'rubocop-rspec', '2.10.0'
|
|
65
65
|
gem 'ruby-audio', '1.6.1'
|
|
@@ -67,7 +67,7 @@ gem 'ruby-nmap', '0.10.0'
|
|
|
67
67
|
gem 'ruby-saml', '1.14.0'
|
|
68
68
|
gem 'rvm', '1.11.3.9'
|
|
69
69
|
gem 'savon', '2.12.1'
|
|
70
|
-
gem 'selenium-devtools', '0.
|
|
70
|
+
gem 'selenium-devtools', '0.101.0'
|
|
71
71
|
gem 'serialport', '1.3.2'
|
|
72
72
|
gem 'sinatra', '2.2.0'
|
|
73
73
|
gem 'slack-ruby-client', '1.0.0'
|
|
@@ -79,5 +79,5 @@ gem 'tty-prompt', '0.23.1'
|
|
|
79
79
|
gem 'watir', '7.1.0'
|
|
80
80
|
gem 'waveform', '0.1.2'
|
|
81
81
|
gem 'webrick', '1.7.0'
|
|
82
|
-
gem 'wicked_pdf', '2.6.
|
|
82
|
+
gem 'wicked_pdf', '2.6.2'
|
|
83
83
|
gem 'yard', '0.9.27'
|
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.421]: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.421]:001 >>> PWN.help
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
require 'credit_card_validations'
|
|
4
|
+
require 'credit_card_validations/string'
|
|
4
5
|
|
|
5
6
|
module PWN
|
|
6
7
|
module Plugins
|
|
@@ -26,6 +27,18 @@ module PWN
|
|
|
26
27
|
raise e
|
|
27
28
|
end
|
|
28
29
|
|
|
30
|
+
# Supported Method Parameters::
|
|
31
|
+
# PWN::Plugins::CreditCard.type(
|
|
32
|
+
# cc: 'required - e.g. XXXX XXXX XXXX XXXX'
|
|
33
|
+
# )
|
|
34
|
+
|
|
35
|
+
public_class_method def self.type(opts = {})
|
|
36
|
+
cc = opts[:cc].to_s.scrub.strip.chomp
|
|
37
|
+
cc.credit_card_brand
|
|
38
|
+
rescue StandardError => e
|
|
39
|
+
raise e
|
|
40
|
+
end
|
|
41
|
+
|
|
29
42
|
# Author(s):: 0day Inc. <request.pentest@0dayinc.com>
|
|
30
43
|
|
|
31
44
|
public_class_method def self.authors
|
|
@@ -43,6 +56,10 @@ module PWN
|
|
|
43
56
|
count: 'required - number of numbers to generate'
|
|
44
57
|
)
|
|
45
58
|
|
|
59
|
+
#{self}.type(
|
|
60
|
+
cc: 'required - e.g. XXXX XXXX XXXX XXXX'
|
|
61
|
+
)
|
|
62
|
+
|
|
46
63
|
#{self}.authors
|
|
47
64
|
"
|
|
48
65
|
end
|
data/lib/pwn/version.rb
CHANGED
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.
|
|
4
|
+
version: 0.4.421
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- 0day Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-05-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -86,14 +86,14 @@ dependencies:
|
|
|
86
86
|
requirements:
|
|
87
87
|
- - '='
|
|
88
88
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: 5.2.
|
|
89
|
+
version: 5.2.3
|
|
90
90
|
type: :runtime
|
|
91
91
|
prerelease: false
|
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
93
|
requirements:
|
|
94
94
|
- - '='
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
|
-
version: 5.2.
|
|
96
|
+
version: 5.2.3
|
|
97
97
|
- !ruby/object:Gem::Dependency
|
|
98
98
|
name: bson
|
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -114,14 +114,14 @@ dependencies:
|
|
|
114
114
|
requirements:
|
|
115
115
|
- - ">="
|
|
116
116
|
- !ruby/object:Gem::Version
|
|
117
|
-
version: 2.3.
|
|
117
|
+
version: 2.3.13
|
|
118
118
|
type: :development
|
|
119
119
|
prerelease: false
|
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
|
121
121
|
requirements:
|
|
122
122
|
- - ">="
|
|
123
123
|
- !ruby/object:Gem::Version
|
|
124
|
-
version: 2.3.
|
|
124
|
+
version: 2.3.13
|
|
125
125
|
- !ruby/object:Gem::Dependency
|
|
126
126
|
name: bundler-audit
|
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -436,14 +436,14 @@ dependencies:
|
|
|
436
436
|
requirements:
|
|
437
437
|
- - '='
|
|
438
438
|
- !ruby/object:Gem::Version
|
|
439
|
-
version: 1.13.
|
|
439
|
+
version: 1.13.5
|
|
440
440
|
type: :runtime
|
|
441
441
|
prerelease: false
|
|
442
442
|
version_requirements: !ruby/object:Gem::Requirement
|
|
443
443
|
requirements:
|
|
444
444
|
- - '='
|
|
445
445
|
- !ruby/object:Gem::Version
|
|
446
|
-
version: 1.13.
|
|
446
|
+
version: 1.13.5
|
|
447
447
|
- !ruby/object:Gem::Dependency
|
|
448
448
|
name: oily_png
|
|
449
449
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -674,14 +674,14 @@ dependencies:
|
|
|
674
674
|
requirements:
|
|
675
675
|
- - '='
|
|
676
676
|
- !ruby/object:Gem::Version
|
|
677
|
-
version: 1.
|
|
677
|
+
version: 1.29.0
|
|
678
678
|
type: :runtime
|
|
679
679
|
prerelease: false
|
|
680
680
|
version_requirements: !ruby/object:Gem::Requirement
|
|
681
681
|
requirements:
|
|
682
682
|
- - '='
|
|
683
683
|
- !ruby/object:Gem::Version
|
|
684
|
-
version: 1.
|
|
684
|
+
version: 1.29.0
|
|
685
685
|
- !ruby/object:Gem::Dependency
|
|
686
686
|
name: rubocop-rake
|
|
687
687
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -786,14 +786,14 @@ dependencies:
|
|
|
786
786
|
requirements:
|
|
787
787
|
- - '='
|
|
788
788
|
- !ruby/object:Gem::Version
|
|
789
|
-
version: 0.
|
|
789
|
+
version: 0.101.0
|
|
790
790
|
type: :runtime
|
|
791
791
|
prerelease: false
|
|
792
792
|
version_requirements: !ruby/object:Gem::Requirement
|
|
793
793
|
requirements:
|
|
794
794
|
- - '='
|
|
795
795
|
- !ruby/object:Gem::Version
|
|
796
|
-
version: 0.
|
|
796
|
+
version: 0.101.0
|
|
797
797
|
- !ruby/object:Gem::Dependency
|
|
798
798
|
name: serialport
|
|
799
799
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -954,14 +954,14 @@ dependencies:
|
|
|
954
954
|
requirements:
|
|
955
955
|
- - '='
|
|
956
956
|
- !ruby/object:Gem::Version
|
|
957
|
-
version: 2.6.
|
|
957
|
+
version: 2.6.2
|
|
958
958
|
type: :runtime
|
|
959
959
|
prerelease: false
|
|
960
960
|
version_requirements: !ruby/object:Gem::Requirement
|
|
961
961
|
requirements:
|
|
962
962
|
- - '='
|
|
963
963
|
- !ruby/object:Gem::Version
|
|
964
|
-
version: 2.6.
|
|
964
|
+
version: 2.6.2
|
|
965
965
|
- !ruby/object:Gem::Dependency
|
|
966
966
|
name: yard
|
|
967
967
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -1966,7 +1966,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
1966
1966
|
- !ruby/object:Gem::Version
|
|
1967
1967
|
version: '0'
|
|
1968
1968
|
requirements: []
|
|
1969
|
-
rubygems_version: 3.3.
|
|
1969
|
+
rubygems_version: 3.3.13
|
|
1970
1970
|
signing_key:
|
|
1971
1971
|
specification_version: 4
|
|
1972
1972
|
summary: Automated Security Testing for CI/CD Pipelines & Beyond
|