nasl-pedant 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/README.md +1 -1
- data/lib/pedant/checks/contains_display.rb +53 -0
- data/lib/pedant/checks/contains_unreachable_code.rb +4 -1
- data/lib/pedant/checks/get_byte_used.rb +62 -0
- data/lib/pedant/checks/script_missing_audit_inc.rb +67 -0
- data/lib/pedant/checks/script_not_signed_and_using_secret_kb_item.rb +90 -0
- data/lib/pedant/checks/script_not_signed_and_using_trusted_function.rb +195 -0
- data/lib/pedant/checks/socket_leak.rb +189 -0
- data/lib/pedant/version.rb +1 -1
- data/pedant.gemspec +1 -0
- data/test/unit/checks/test_contains_display.rb +53 -0
- data/test/unit/checks/test_contains_unreachable_code.rb +14 -0
- data/test/unit/checks/test_get_byte_used.rb +105 -0
- data/test/unit/checks/test_script_missing_audit_inc.rb +61 -0
- data/test/unit/checks/test_script_not_signed_and_using_secret_kb_item.rb +251 -0
- data/test/unit/checks/test_script_not_signed_and_using_trusted_functions.rb +89 -0
- data/test/unit/checks/test_socket_leak.rb +174 -0
- metadata +44 -13
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nasl-pedant
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mak Kolybabi
|
@@ -10,20 +10,20 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-
|
13
|
+
date: 2016-07-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- - ~>
|
19
|
+
- - "~>"
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
|
-
- - ~>
|
26
|
+
- - "~>"
|
27
27
|
- !ruby/object:Gem::Version
|
28
28
|
version: '0'
|
29
29
|
- !ruby/object:Gem::Dependency
|
@@ -44,22 +44,36 @@ dependencies:
|
|
44
44
|
name: nasl
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
|
-
- - ~>
|
47
|
+
- - "~>"
|
48
48
|
- !ruby/object:Gem::Version
|
49
49
|
version: '0.2'
|
50
|
-
- -
|
50
|
+
- - ">="
|
51
51
|
- !ruby/object:Gem::Version
|
52
52
|
version: 0.2.0
|
53
53
|
type: :runtime
|
54
54
|
prerelease: false
|
55
55
|
version_requirements: !ruby/object:Gem::Requirement
|
56
56
|
requirements:
|
57
|
-
- - ~>
|
57
|
+
- - "~>"
|
58
58
|
- !ruby/object:Gem::Version
|
59
59
|
version: '0.2'
|
60
|
-
- -
|
60
|
+
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: 0.2.0
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: test-unit-minitest
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :runtime
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
63
77
|
description: A static analysis framework for the Nessus Attack Scripting Language.
|
64
78
|
email:
|
65
79
|
- mak@kolybabi.com
|
@@ -70,7 +84,7 @@ executables:
|
|
70
84
|
extensions: []
|
71
85
|
extra_rdoc_files: []
|
72
86
|
files:
|
73
|
-
- .gitignore
|
87
|
+
- ".gitignore"
|
74
88
|
- Gemfile
|
75
89
|
- README.md
|
76
90
|
- Rakefile
|
@@ -81,6 +95,7 @@ files:
|
|
81
95
|
- lib/pedant/checks/conditional_contains_assignment.rb
|
82
96
|
- lib/pedant/checks/conditional_or_loop_is_empty.rb
|
83
97
|
- lib/pedant/checks/confusing_variable_names.rb
|
98
|
+
- lib/pedant/checks/contains_display.rb
|
84
99
|
- lib/pedant/checks/contains_ip_address_literals.rb
|
85
100
|
- lib/pedant/checks/contains_no_carriage_returns.rb
|
86
101
|
- lib/pedant/checks/contains_no_tabs.rb
|
@@ -90,6 +105,7 @@ files:
|
|
90
105
|
- lib/pedant/checks/equality_with_regex.rb
|
91
106
|
- lib/pedant/checks/files_parse_without_errors.rb
|
92
107
|
- lib/pedant/checks/flipped_operands_on_match_or_substring.rb
|
108
|
+
- lib/pedant/checks/get_byte_used.rb
|
93
109
|
- lib/pedant/checks/local_variable_unused.rb
|
94
110
|
- lib/pedant/checks/nonsense_comparison.rb
|
95
111
|
- lib/pedant/checks/parse_test_code.rb
|
@@ -97,8 +113,12 @@ files:
|
|
97
113
|
- lib/pedant/checks/script_category.rb
|
98
114
|
- lib/pedant/checks/script_family_not_specified.rb
|
99
115
|
- lib/pedant/checks/script_id.rb
|
116
|
+
- lib/pedant/checks/script_missing_audit_inc.rb
|
100
117
|
- lib/pedant/checks/script_name.rb
|
118
|
+
- lib/pedant/checks/script_not_signed_and_using_secret_kb_item.rb
|
119
|
+
- lib/pedant/checks/script_not_signed_and_using_trusted_function.rb
|
101
120
|
- lib/pedant/checks/script_summary.rb
|
121
|
+
- lib/pedant/checks/socket_leak.rb
|
102
122
|
- lib/pedant/checks/uses_octal_integers.rb
|
103
123
|
- lib/pedant/cli.rb
|
104
124
|
- lib/pedant/command.rb
|
@@ -113,6 +133,7 @@ files:
|
|
113
133
|
- test/unit/checks/test_conditional_contains_assignment.rb
|
114
134
|
- test/unit/checks/test_conditional_or_loop_is_empty.rb
|
115
135
|
- test/unit/checks/test_confusing_variable_names.rb
|
136
|
+
- test/unit/checks/test_contains_display.rb
|
116
137
|
- test/unit/checks/test_contains_ip_address_literals.rb
|
117
138
|
- test/unit/checks/test_contains_no_carriage_returns.rb
|
118
139
|
- test/unit/checks/test_contains_no_tabs.rb
|
@@ -121,9 +142,14 @@ files:
|
|
121
142
|
- test/unit/checks/test_ends_with_newline.rb
|
122
143
|
- test/unit/checks/test_equality_with_regex.rb
|
123
144
|
- test/unit/checks/test_flipped_operands_on_match_or_substring.rb
|
145
|
+
- test/unit/checks/test_get_byte_used.rb
|
124
146
|
- test/unit/checks/test_nonsense_comparison.rb
|
125
147
|
- test/unit/checks/test_plugin_type_not_specified.rb
|
126
148
|
- test/unit/checks/test_script_family_not_specified.rb
|
149
|
+
- test/unit/checks/test_script_missing_audit_inc.rb
|
150
|
+
- test/unit/checks/test_script_not_signed_and_using_secret_kb_item.rb
|
151
|
+
- test/unit/checks/test_script_not_signed_and_using_trusted_functions.rb
|
152
|
+
- test/unit/checks/test_socket_leak.rb
|
127
153
|
- test/unit/checks/test_uses_octal_integers.rb
|
128
154
|
homepage: http://github.com/tenable/pedant
|
129
155
|
licenses:
|
@@ -135,17 +161,17 @@ require_paths:
|
|
135
161
|
- lib
|
136
162
|
required_ruby_version: !ruby/object:Gem::Requirement
|
137
163
|
requirements:
|
138
|
-
- -
|
164
|
+
- - ">="
|
139
165
|
- !ruby/object:Gem::Version
|
140
166
|
version: '0'
|
141
167
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
142
168
|
requirements:
|
143
|
-
- -
|
169
|
+
- - ">="
|
144
170
|
- !ruby/object:Gem::Version
|
145
171
|
version: '0'
|
146
172
|
requirements: []
|
147
173
|
rubyforge_project: nasl-pedant
|
148
|
-
rubygems_version: 2.
|
174
|
+
rubygems_version: 2.2.2
|
149
175
|
signing_key:
|
150
176
|
specification_version: 4
|
151
177
|
summary: A framework for the Nessus Attack Scripting Language.
|
@@ -155,6 +181,7 @@ test_files:
|
|
155
181
|
- test/unit/checks/test_conditional_contains_assignment.rb
|
156
182
|
- test/unit/checks/test_conditional_or_loop_is_empty.rb
|
157
183
|
- test/unit/checks/test_confusing_variable_names.rb
|
184
|
+
- test/unit/checks/test_contains_display.rb
|
158
185
|
- test/unit/checks/test_contains_ip_address_literals.rb
|
159
186
|
- test/unit/checks/test_contains_no_carriage_returns.rb
|
160
187
|
- test/unit/checks/test_contains_no_tabs.rb
|
@@ -163,8 +190,12 @@ test_files:
|
|
163
190
|
- test/unit/checks/test_ends_with_newline.rb
|
164
191
|
- test/unit/checks/test_equality_with_regex.rb
|
165
192
|
- test/unit/checks/test_flipped_operands_on_match_or_substring.rb
|
193
|
+
- test/unit/checks/test_get_byte_used.rb
|
166
194
|
- test/unit/checks/test_nonsense_comparison.rb
|
167
195
|
- test/unit/checks/test_plugin_type_not_specified.rb
|
168
196
|
- test/unit/checks/test_script_family_not_specified.rb
|
197
|
+
- test/unit/checks/test_script_missing_audit_inc.rb
|
198
|
+
- test/unit/checks/test_script_not_signed_and_using_secret_kb_item.rb
|
199
|
+
- test/unit/checks/test_script_not_signed_and_using_trusted_functions.rb
|
200
|
+
- test/unit/checks/test_socket_leak.rb
|
169
201
|
- test/unit/checks/test_uses_octal_integers.rb
|
170
|
-
has_rdoc:
|