metasploit-model 0.28.0 → 0.29.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (206) hide show
  1. checksums.yaml +8 -8
  2. data/.travis.yml +3 -1
  3. data/config/locales/en.yml +0 -171
  4. data/lib/metasploit/model.rb +0 -2
  5. data/lib/metasploit/model/spec.rb +0 -130
  6. data/lib/metasploit/model/version.rb +1 -1
  7. data/spec/support/shared/examples/metasploit/model/search/operator/help.rb +4 -6
  8. data/spec/support/shared/examples/metasploit/model/translation.rb +1 -1
  9. data/spec/support/shared/examples/search_association.rb +1 -1
  10. data/spec/support/shared/examples/search_with.rb +4 -2
  11. metadata +3 -349
  12. data/app/models/metasploit/model/module/ancestor/spec/template.rb +0 -125
  13. data/app/models/metasploit/model/module/class/spec/template.rb +0 -92
  14. data/app/models/metasploit/model/module/instance/spec/template.rb +0 -97
  15. data/app/models/metasploit/model/spec/template.rb +0 -277
  16. data/app/validators/derivation_validator.rb +0 -17
  17. data/app/validators/dynamic_length_validator.rb +0 -45
  18. data/lib/metasploit/model/architecture.rb +0 -342
  19. data/lib/metasploit/model/author.rb +0 -54
  20. data/lib/metasploit/model/authority.rb +0 -141
  21. data/lib/metasploit/model/authority/bid.rb +0 -10
  22. data/lib/metasploit/model/authority/cve.rb +0 -10
  23. data/lib/metasploit/model/authority/msb.rb +0 -10
  24. data/lib/metasploit/model/authority/osvdb.rb +0 -10
  25. data/lib/metasploit/model/authority/pmasa.rb +0 -10
  26. data/lib/metasploit/model/authority/secunia.rb +0 -10
  27. data/lib/metasploit/model/authority/us_cert_vu.rb +0 -10
  28. data/lib/metasploit/model/authority/waraxe.rb +0 -31
  29. data/lib/metasploit/model/authority/zdi.rb +0 -10
  30. data/lib/metasploit/model/derivation.rb +0 -109
  31. data/lib/metasploit/model/derivation/full_name.rb +0 -19
  32. data/lib/metasploit/model/email_address.rb +0 -124
  33. data/lib/metasploit/model/module.rb +0 -20
  34. data/lib/metasploit/model/module/action.rb +0 -52
  35. data/lib/metasploit/model/module/ancestor.rb +0 -491
  36. data/lib/metasploit/model/module/ancestor/spec.rb +0 -6
  37. data/lib/metasploit/model/module/architecture.rb +0 -34
  38. data/lib/metasploit/model/module/author.rb +0 -40
  39. data/lib/metasploit/model/module/class.rb +0 -403
  40. data/lib/metasploit/model/module/class/spec.rb +0 -6
  41. data/lib/metasploit/model/module/handler.rb +0 -29
  42. data/lib/metasploit/model/module/instance.rb +0 -622
  43. data/lib/metasploit/model/module/instance/spec.rb +0 -6
  44. data/lib/metasploit/model/module/path.rb +0 -159
  45. data/lib/metasploit/model/module/platform.rb +0 -32
  46. data/lib/metasploit/model/module/rank.rb +0 -85
  47. data/lib/metasploit/model/module/reference.rb +0 -32
  48. data/lib/metasploit/model/module/stance.rb +0 -16
  49. data/lib/metasploit/model/module/target.rb +0 -78
  50. data/lib/metasploit/model/module/target/architecture.rb +0 -34
  51. data/lib/metasploit/model/module/target/platform.rb +0 -34
  52. data/lib/metasploit/model/module/type.rb +0 -38
  53. data/lib/metasploit/model/platform.rb +0 -246
  54. data/lib/metasploit/model/real_pathname.rb +0 -16
  55. data/lib/metasploit/model/reference.rb +0 -104
  56. data/spec/app/models/metasploit/model/module/ancestor/spec/template_spec.rb +0 -174
  57. data/spec/app/models/metasploit/model/module/class/spec/template_spec.rb +0 -222
  58. data/spec/app/models/metasploit/model/module/instance/spec/template_spec.rb +0 -201
  59. data/spec/app/models/metasploit/model/search/operator/deprecated/app_spec.rb +0 -62
  60. data/spec/app/models/metasploit/model/search/operator/deprecated/author_spec.rb +0 -197
  61. data/spec/app/models/metasploit/model/search/operator/deprecated/authority_spec.rb +0 -135
  62. data/spec/app/models/metasploit/model/search/operator/deprecated/platform_spec.rb +0 -124
  63. data/spec/app/models/metasploit/model/search/operator/deprecated/ref_spec.rb +0 -387
  64. data/spec/app/models/metasploit/model/search/operator/deprecated/text_spec.rb +0 -399
  65. data/spec/app/models/metasploit/model/spec/template_spec.rb +0 -23
  66. data/spec/app/validators/derivation_validator_spec.rb +0 -92
  67. data/spec/app/validators/dynamic_length_validator_spec.rb +0 -293
  68. data/spec/dummy/app/models/dummy/architecture.rb +0 -92
  69. data/spec/dummy/app/models/dummy/author.rb +0 -15
  70. data/spec/dummy/app/models/dummy/authority.rb +0 -130
  71. data/spec/dummy/app/models/dummy/email_address.rb +0 -27
  72. data/spec/dummy/app/models/dummy/module/action.rb +0 -25
  73. data/spec/dummy/app/models/dummy/module/ancestor.rb +0 -67
  74. data/spec/dummy/app/models/dummy/module/architecture.rb +0 -19
  75. data/spec/dummy/app/models/dummy/module/author.rb +0 -28
  76. data/spec/dummy/app/models/dummy/module/class.rb +0 -69
  77. data/spec/dummy/app/models/dummy/module/instance.rb +0 -209
  78. data/spec/dummy/app/models/dummy/module/path.rb +0 -64
  79. data/spec/dummy/app/models/dummy/module/platform.rb +0 -19
  80. data/spec/dummy/app/models/dummy/module/rank.rb +0 -44
  81. data/spec/dummy/app/models/dummy/module/reference.rb +0 -19
  82. data/spec/dummy/app/models/dummy/module/target.rb +0 -62
  83. data/spec/dummy/app/models/dummy/module/target/architecture.rb +0 -19
  84. data/spec/dummy/app/models/dummy/module/target/platform.rb +0 -19
  85. data/spec/dummy/app/models/dummy/platform.rb +0 -58
  86. data/spec/dummy/app/models/dummy/reference.rb +0 -31
  87. data/spec/dummy/spec/factories/dummy/architectures.rb +0 -13
  88. data/spec/dummy/spec/factories/dummy/authorities.rb +0 -32
  89. data/spec/dummy/spec/factories/dummy/authors.rb +0 -8
  90. data/spec/dummy/spec/factories/dummy/email_addresses.rb +0 -8
  91. data/spec/dummy/spec/factories/dummy/module/actions.rb +0 -13
  92. data/spec/dummy/spec/factories/dummy/module/ancestors.rb +0 -45
  93. data/spec/dummy/spec/factories/dummy/module/architectures.rb +0 -35
  94. data/spec/dummy/spec/factories/dummy/module/authors.rb +0 -10
  95. data/spec/dummy/spec/factories/dummy/module/classes.rb +0 -40
  96. data/spec/dummy/spec/factories/dummy/module/instances.rb +0 -86
  97. data/spec/dummy/spec/factories/dummy/module/paths.rb +0 -16
  98. data/spec/dummy/spec/factories/dummy/module/platforms.rb +0 -35
  99. data/spec/dummy/spec/factories/dummy/module/ranks.rb +0 -14
  100. data/spec/dummy/spec/factories/dummy/module/references.rb +0 -17
  101. data/spec/dummy/spec/factories/dummy/module/target/architectures.rb +0 -40
  102. data/spec/dummy/spec/factories/dummy/module/target/platforms.rb +0 -41
  103. data/spec/dummy/spec/factories/dummy/module/targets.rb +0 -46
  104. data/spec/dummy/spec/factories/dummy/platforms.rb +0 -3
  105. data/spec/dummy/spec/factories/dummy/references.rb +0 -26
  106. data/spec/factories/metasploit/model/architectures.rb +0 -6
  107. data/spec/factories/metasploit/model/authorities.rb +0 -28
  108. data/spec/factories/metasploit/model/authors.rb +0 -9
  109. data/spec/factories/metasploit/model/email_addresses.rb +0 -14
  110. data/spec/factories/metasploit/model/module/actions.rb +0 -9
  111. data/spec/factories/metasploit/model/module/ancestors.rb +0 -180
  112. data/spec/factories/metasploit/model/module/architectures.rb +0 -15
  113. data/spec/factories/metasploit/model/module/classes.rb +0 -47
  114. data/spec/factories/metasploit/model/module/handlers.rb +0 -3
  115. data/spec/factories/metasploit/model/module/instances.rb +0 -83
  116. data/spec/factories/metasploit/model/module/paths.rb +0 -51
  117. data/spec/factories/metasploit/model/module/platforms.rb +0 -15
  118. data/spec/factories/metasploit/model/module/ranks.rb +0 -9
  119. data/spec/factories/metasploit/model/module/references.rb +0 -11
  120. data/spec/factories/metasploit/model/module/stances.rb +0 -3
  121. data/spec/factories/metasploit/model/module/targets.rb +0 -22
  122. data/spec/factories/metasploit/model/module/types.rb +0 -5
  123. data/spec/factories/metasploit/model/references.rb +0 -88
  124. data/spec/lib/metasploit/model/architecture_spec.rb +0 -52
  125. data/spec/lib/metasploit/model/author_spec.rb +0 -6
  126. data/spec/lib/metasploit/model/authority/bid_spec.rb +0 -17
  127. data/spec/lib/metasploit/model/authority/cve_spec.rb +0 -17
  128. data/spec/lib/metasploit/model/authority/msb_spec.rb +0 -17
  129. data/spec/lib/metasploit/model/authority/osvdb_spec.rb +0 -17
  130. data/spec/lib/metasploit/model/authority/pmasa_spec.rb +0 -17
  131. data/spec/lib/metasploit/model/authority/secunia_spec.rb +0 -17
  132. data/spec/lib/metasploit/model/authority/us_cert_vu_spec.rb +0 -17
  133. data/spec/lib/metasploit/model/authority/waraxe_spec.rb +0 -51
  134. data/spec/lib/metasploit/model/authority/zdi_spec.rb +0 -21
  135. data/spec/lib/metasploit/model/authority_spec.rb +0 -10
  136. data/spec/lib/metasploit/model/derivation/full_name_spec.rb +0 -75
  137. data/spec/lib/metasploit/model/derivation_spec.rb +0 -217
  138. data/spec/lib/metasploit/model/email_address_spec.rb +0 -19
  139. data/spec/lib/metasploit/model/module/action_spec.rb +0 -6
  140. data/spec/lib/metasploit/model/module/ancestor_spec.rb +0 -6
  141. data/spec/lib/metasploit/model/module/architecture_spec.rb +0 -9
  142. data/spec/lib/metasploit/model/module/author_spec.rb +0 -6
  143. data/spec/lib/metasploit/model/module/class_spec.rb +0 -19
  144. data/spec/lib/metasploit/model/module/handler_spec.rb +0 -61
  145. data/spec/lib/metasploit/model/module/instance_spec.rb +0 -183
  146. data/spec/lib/metasploit/model/module/path_spec.rb +0 -6
  147. data/spec/lib/metasploit/model/module/platform_spec.rb +0 -9
  148. data/spec/lib/metasploit/model/module/rank_spec.rb +0 -29
  149. data/spec/lib/metasploit/model/module/reference_spec.rb +0 -9
  150. data/spec/lib/metasploit/model/module/stance_spec.rb +0 -30
  151. data/spec/lib/metasploit/model/module/target/architecture_spec.rb +0 -9
  152. data/spec/lib/metasploit/model/module/target/platform_spec.rb +0 -9
  153. data/spec/lib/metasploit/model/module/target_spec.rb +0 -9
  154. data/spec/lib/metasploit/model/module/type_spec.rb +0 -125
  155. data/spec/lib/metasploit/model/platform_spec.rb +0 -100
  156. data/spec/lib/metasploit/model/reference_spec.rb +0 -21
  157. data/spec/support/shared/contexts/metasploit/model/module/ancestor/contents/metasploit_module.rb +0 -12
  158. data/spec/support/shared/contexts/metasploit/model/module/ancestor/factory/contents.rb +0 -10
  159. data/spec/support/shared/contexts/metasploit/model/module/ancestor/factory/contents/metasploit_module.rb +0 -15
  160. data/spec/support/shared/examples/derives.rb +0 -115
  161. data/spec/support/shared/examples/metasploit/model/architecture.rb +0 -425
  162. data/spec/support/shared/examples/metasploit/model/architecture/seed.rb +0 -25
  163. data/spec/support/shared/examples/metasploit/model/author.rb +0 -27
  164. data/spec/support/shared/examples/metasploit/model/authority.rb +0 -124
  165. data/spec/support/shared/examples/metasploit/model/authority/seed.rb +0 -49
  166. data/spec/support/shared/examples/metasploit/model/email_address.rb +0 -220
  167. data/spec/support/shared/examples/metasploit/model/module/action.rb +0 -26
  168. data/spec/support/shared/examples/metasploit/model/module/ancestor.rb +0 -2004
  169. data/spec/support/shared/examples/metasploit/model/module/ancestor/payload_factory.rb +0 -63
  170. data/spec/support/shared/examples/metasploit/model/module/architecture.rb +0 -36
  171. data/spec/support/shared/examples/metasploit/model/module/author.rb +0 -29
  172. data/spec/support/shared/examples/metasploit/model/module/class.rb +0 -1514
  173. data/spec/support/shared/examples/metasploit/model/module/handler.rb +0 -21
  174. data/spec/support/shared/examples/metasploit/model/module/instance.rb +0 -1384
  175. data/spec/support/shared/examples/metasploit/model/module/instance/class_methods.rb +0 -537
  176. data/spec/support/shared/examples/metasploit/model/module/instance/is_not_stanced_with_module_type.rb +0 -22
  177. data/spec/support/shared/examples/metasploit/model/module/instance/is_stanced_with_module_type.rb +0 -38
  178. data/spec/support/shared/examples/metasploit/model/module/instance/validates/dynamic_length_of.rb +0 -131
  179. data/spec/support/shared/examples/metasploit/model/module/path.rb +0 -493
  180. data/spec/support/shared/examples/metasploit/model/module/platform.rb +0 -36
  181. data/spec/support/shared/examples/metasploit/model/module/rank.rb +0 -92
  182. data/spec/support/shared/examples/metasploit/model/module/reference.rb +0 -16
  183. data/spec/support/shared/examples/metasploit/model/module/target.rb +0 -29
  184. data/spec/support/shared/examples/metasploit/model/module/target/architecture.rb +0 -56
  185. data/spec/support/shared/examples/metasploit/model/module/target/platform.rb +0 -56
  186. data/spec/support/shared/examples/metasploit/model/platform.rb +0 -213
  187. data/spec/support/shared/examples/metasploit/model/real_pathname.rb +0 -29
  188. data/spec/support/shared/examples/metasploit/model/reference.rb +0 -410
  189. data/spec/support/shared/examples/search/query/metasploit/model/search/operator/deprecated/app.rb +0 -44
  190. data/spec/support/shared/examples/search/query/metasploit/model/search/operator/deprecated/authority.rb +0 -72
  191. data/spec/support/templates/metasploit/model/module/ancestors/_attributes.rb.erb +0 -9
  192. data/spec/support/templates/metasploit/model/module/ancestors/_methods.rb.erb +0 -8
  193. data/spec/support/templates/metasploit/model/module/ancestors/_validations.rb.erb +0 -6
  194. data/spec/support/templates/metasploit/model/module/ancestors/base.rb.erb +0 -3
  195. data/spec/support/templates/metasploit/model/module/ancestors/module_types/_auxiliary.rb.erb +0 -1
  196. data/spec/support/templates/metasploit/model/module/ancestors/module_types/_encoder.rb.erb +0 -1
  197. data/spec/support/templates/metasploit/model/module/ancestors/module_types/_exploit.rb.erb +0 -1
  198. data/spec/support/templates/metasploit/model/module/ancestors/module_types/_non_payload.rb.erb +0 -5
  199. data/spec/support/templates/metasploit/model/module/ancestors/module_types/_nop.rb.erb +0 -1
  200. data/spec/support/templates/metasploit/model/module/ancestors/module_types/_payload.rb.erb +0 -4
  201. data/spec/support/templates/metasploit/model/module/ancestors/module_types/_post.rb.erb +0 -1
  202. data/spec/support/templates/metasploit/model/module/ancestors/payload_types/_handled.rb.erb +0 -20
  203. data/spec/support/templates/metasploit/model/module/ancestors/payload_types/_single.rb.erb +0 -1
  204. data/spec/support/templates/metasploit/model/module/ancestors/payload_types/_stage.rb.erb +0 -0
  205. data/spec/support/templates/metasploit/model/module/ancestors/payload_types/_stager.rb.erb +0 -1
  206. data/spec/support/templates/metasploit/model/module/classes/_methods.rb.erb +0 -9
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Yjc2ZTk4MDg5YTQxMjUyMmQyMmJiNDM4MmE4MDRjNWQ0MTMyYWNiNA==
4
+ MzNhMzZiMDliYWQyN2VjNDBjZTJlMmMwYjg1ZDk0ODk4NzJhZmY0NQ==
5
5
  data.tar.gz: !binary |-
6
- MGY1MWVmNDgzN2I0MmQ2NzdhZTFiNDdjNzUxNTc1M2IyZjhiMzlhOQ==
6
+ Y2FkOWY4ZmFkMTgxNTRkNTM3MGJmZGIxMDlhYmMwMWEwMTU2ZWU0OQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- Y2YyNjRiNTM1ZWRjNTc1ODRhZThiODZjOTY1NjkzZDFmNGRkNmFmZGQ5NDYy
10
- ZjEyNTc5YzZmMTZmZGIwZGViMjdlMThhZDMyNDUzN2U1NTQ3ZDBhYWQ1ZGUz
11
- Y2JjYzg1NzZiMTY1MzdjMWZhOTMyY2NlMDIzN2I4YWMzZWZlN2E=
9
+ YzM4YWIyYzg2ZDZhY2U0YWQxN2FjNGJhMzBkOWVkYmI1OTViZTE0ODcxNTA0
10
+ NzI2ZTZlYzU1NzlkYTVhYjY3ZWFkY2JkMjgzNmE1MGMzMzM4OWVhMTZmODdl
11
+ ZWQ4MjhhNGJmZjliMzlmOWI2Nzg1MzBiNWYyNzQ4YWNkNGI5YzI=
12
12
  data.tar.gz: !binary |-
13
- MmRiYmRhNTFmZDdhOTY3NGNhZjg1NWZiYmUwOTgzOThlYjY5OGQ2YmRhZDdl
14
- YzdkYzhlMzgwOGZmOGY2YmIwYjM1N2NmNTEzMDc4NzJhMTkyNWFhZWRlMDli
15
- MTk5YTlhYjFjMGZiN2RlZDUxZTkzNzg5ZTZhMmU1NDQ2NTNlMDM=
13
+ MTg0ZDYyMWIxNjZiMmVmM2M1YzQ0M2YyMmM5ZTJkNTIyYmE1MWJhNGQ1YWFi
14
+ YWM0YmFlOTQ1NzhlOGNmMmJhZmU0YTcxMDlmMmZkMDRiMmRlN2EyMzBhNGY3
15
+ OTA3YmFmYzRiMTRhMTAwOTYyMDYxZDJmOTc0ZWFiZGY5ZjY4Y2I=
@@ -1,3 +1,4 @@
1
+ cache: bundler
1
2
  language: ruby
2
3
  rvm:
3
4
  - '1.9.3'
@@ -6,4 +7,5 @@ rvm:
6
7
  # < 1.7.14
7
8
  - 'jruby-1.7.13'
8
9
  # >= 1.7.14
9
- - 'jruby-19mode'
10
+ - 'jruby-1.7.14'
11
+ sudo: false
@@ -1,176 +1,12 @@
1
1
  en:
2
2
  metasploit:
3
3
  model:
4
- ancestors:
5
- metasploit/model/architecture:
6
- search:
7
- operator:
8
- names:
9
- abbreviation:
10
- help: "Abbreviation for architecture, such as x86, etc."
11
- bits:
12
- help: "Number of bits supported by the architecture. Certain architectures, such as those for programming languages like Ruby and PHP, do not have bits."
13
- endianness:
14
- help: "Whether the architecture is big or little endian. Certain architectures, such as those for programming languages like Ruby and PHP, do not have an endianness."
15
- family:
16
- help: "The CPU architecture family. For example x86_64 and x86 are both in the x86 family. Certain architectures, such as those for programming languages like Ruby and PHP, do not have a family."
17
-
18
- metasploit/model/author:
19
- search:
20
- operator:
21
- names:
22
- name:
23
- help: "Full name (first + last name) or handle of the author."
24
-
25
- metasploit/model/authority:
26
- search:
27
- operator:
28
- names:
29
- abbreviation:
30
- help: "Abbreviation or initialism for authority, such as CVE for 'Common Vulnerability and Exposures'."
31
-
32
- metasploit/model/email_address:
33
- search:
34
- operator:
35
- names:
36
- domain:
37
- help: "The domain part of the email address after the '@'."
38
- full:
39
- help: "The full email address <local>@<domain>"
40
- local:
41
- help: "The local part of the email address before the '@'."
42
-
43
- metasploit/model/module/action:
44
- search:
45
- operator:
46
- names:
47
- name:
48
- help: "The name of the module action."
49
-
50
- metasploit/model/module/class:
51
- search:
52
- operator:
53
- names:
54
- full_name:
55
- help: "<module_type>/<reference_name>"
56
- module_type:
57
- help: "The type of this module."
58
- payload_type:
59
- help: "For payload modules, the type of payload, either 'single' or 'staged'."
60
- reference_name:
61
- help: "The reference name relative to the module_type."
62
-
63
- metasploit/model/module/instance:
64
- search:
65
- operator:
66
- names:
67
- app:
68
- help: "The type of application. either client or server, which maps to stance:passive or stance:aggressive, respectively."
69
- author:
70
- help: "Either the author's name or email address. Maps to authors.name, email_addresses.local, and/or email_addresses.domain."
71
- description:
72
- help: "A long, paragraph description of what the module does."
73
- disclosed_on:
74
- help: "The date the vulnerability exploited by this module was disclosed to the public."
75
- license:
76
- help: "The name of the software license for the module's code."
77
- name:
78
- help: "The human readable name of the module. It can be thought of as the summary or title of the module."
79
- os:
80
- help: "Module OS in platforms.name or targets.name."
81
- platform:
82
- help: "Module platform in platforms.name or targets.name."
83
- privileged:
84
- help: "Whether the module requires privileged access to run."
85
- ref:
86
- help: "Reference to module using obsolete \"<context>-<id>\" syntax, which maps to the newer authorities.abbreviation, references.designation or references.url."
87
- stance:
88
- help: "Whether the module is active or passive."
89
- text:
90
- help: "Search most of the text fields of the module metadata. Maps to description, name, actions.name, architectures.abbreviation, platform, or ref."
91
-
92
- metasploit/model/module/rank:
93
- search:
94
- operator:
95
- names:
96
- name:
97
- help: "Name of the rank."
98
- number:
99
- help: "Numerical value of the rank. Higher numbers are better."
100
-
101
- metasploit/model/module/target:
102
- search:
103
- operator:
104
- names:
105
- name:
106
- help: "Name of module target."
107
-
108
- metasploit/model/platform:
109
- search:
110
- operator:
111
- names:
112
- fully_qualified_name:
113
- help: "Fully-qualified name of the platform."
114
-
115
- metasploit/model/reference:
116
- search:
117
- operator:
118
- names:
119
- designation:
120
- help: "A designation (usually a string of numbers and dashes) assigned by the reference's authority. If the reference has no authority, then only url will be set, such as for references to proof-of-concept (PoC) blog posts."
121
- url:
122
- help: "URL to web page with information about referenced exploit. The URL may be null if the authority is obsolete."
123
-
124
- attributes:
125
- metasploit/model/module/instance:
126
- actions:
127
- one: 'action'
128
- other: 'actions'
129
- module_authors:
130
- one: 'module author'
131
- other: 'module authors'
132
- module_references:
133
- one: 'module reference'
134
- other: 'module references'
135
- targets:
136
- one: 'target'
137
- other: 'targets'
138
-
139
4
  errors:
140
5
  messages:
141
6
  boolean: "is not a boolean (false or true)."
142
7
  model_invalid: "Validation failed: %{errors}"
143
8
 
144
9
  models:
145
- metasploit/model/module/instance:
146
- attributes:
147
- actions:
148
- wrong_length: "cannot have any actions"
149
-
150
- architectures:
151
- extra: "has extra architectures (%{extra}) not found on targets"
152
- missing: "is missing architectures (%{missing}) from targets"
153
-
154
- module_architectures:
155
- too_short: "is too short (minimum is %{count} module architectures)"
156
- wrong_length: "cannot have any module architectures"
157
-
158
- module_platforms:
159
- too_short: "is too short (minimum is %{count} module platforms)"
160
- wrong_length: "cannot have any module platforms"
161
-
162
- module_references:
163
- too_short: "is too short (minimum is %{count} module references)"
164
- wrong_length: "cannot have any module references"
165
-
166
- platforms:
167
- extra: "has extra platforms (%{extra}) not found on targets"
168
- missing: "is missing platforms (%{missing}) from targets"
169
-
170
- targets:
171
- too_short: "is too short (minimum is %{count} targets)"
172
- wrong_length: "cannot have any targets"
173
-
174
10
  metasploit/model/search/operation/date:
175
11
  attributes:
176
12
  value:
@@ -200,10 +36,3 @@ en:
200
36
  attributes:
201
37
  operations:
202
38
  too_short: "is too short (minimum is %{count} operation)"
203
-
204
- search:
205
- operator:
206
- ancestors:
207
- metasploit/model/search/operator/deprecated/authority:
208
- help: "Modules with reference from the %{name} authority. Maps to `authorities.abbreviation:%{name} references.designation:<value>`."
209
-
@@ -4,8 +4,6 @@
4
4
  require 'active_model'
5
5
  require 'active_support'
6
6
 
7
- autoload :DerivationValidator, 'derivation_validator'
8
- autoload :DynamicLengthValidator, 'dynamic_length_validator'
9
7
  autoload :IpFormatValidator, 'ip_format_validator'
10
8
  autoload :NilValidator, 'nil_validator'
11
9
  autoload :ParametersValidator, 'parameters_validator'
@@ -11,134 +11,4 @@ module Metasploit::Model::Spec
11
11
  autoload :TemporaryPathname
12
12
 
13
13
  extend Metasploit::Model::Spec::TemporaryPathname
14
- # without this, Module.shared_examples_for will be used and RSpec will count shared_examples created with
15
- # {shared_examples_for} to not be declared at the top-level.
16
- extend RSpec::Core::SharedExampleGroup::TopLevelDSL
17
-
18
- # Defines a shared examples for a `Module` under the {Metasploit::Model} namespace. This `Module` is assumed to
19
- # be a mixin that can be mixed into an ActiveModel in metasploit-framework or an ActiveRecord in
20
- # metasploit_data_models. Shared examples declared using this method get access to boiler plate methods used
21
- # for all the {Metasploit::Model} mixin `Modules`:
22
- #
23
- # * <relative_variable_name>_class
24
- # * <relative_variable_name>_factory
25
- # * factory_namespace
26
- # * relative_variable_name
27
- # * #<relative_variable_name>_class
28
- # * #<relative_variable_name>_factory
29
- #
30
- # @example boiler plate methods for Module::Ancestor
31
- # # defined shared example's name will be 'Metasploit::Model::Module::Ancestor', but you only need to give the
32
- # # name relative to 'Metasploit::Model'.
33
- # Metasploit::Model::Spec.shared_examples_for 'Module::Ancestor' do
34
- # module_ancestor_class # '<namespace_name>::Module::Ancestor'
35
- # module_ancestor_factory # '<factory_namespace>_module_ancestor'
36
- # factory_namespace # namespace_name converted to underscore with / replaced by _
37
- # relative_variable_name # 'module_ancestor'
38
- #
39
- # let(:base_class) do # automatically defined for you
40
- # module_ancestor_class # same as class method module_ancestor_class
41
- # end
42
- #
43
- # context 'factories' do # have to define this yourself since not all mixins use factories.
44
- # context module_ancestor_factory do # using class method
45
- # subject(module_ancestor_factory) do # using class method
46
- # FactoryGirl.build(module_ancestor_factory) # using instance method
47
- # end
48
- # end
49
- # end
50
- # end
51
- #
52
- # @example Using shared example
53
- # describe Metasploit::Model::Module::Ancestor do
54
- # it_should_behave_like 'Metasploit::Model::Module::Ancestor',
55
- # namespace_name: 'Dummy'
56
- # end
57
- #
58
- # @param relative_name [String] name relative to 'Metasploit::Model' prefix. For example, to declare
59
- # 'Metasploit::Model::Module::Ancestor' shared example, `relative_name` would be just 'Module::Ancestor'.
60
- # @yield Body of shared examples.
61
- # @yieldreturn [void]
62
- # @return [void]
63
- def self.shared_examples_for(relative_name, &block)
64
- fully_qualified_name = "Metasploit::Model::#{relative_name}"
65
-
66
- relative_variable_name = relative_name.underscore.gsub('/', '_')
67
- class_method_name = "#{relative_variable_name}_class"
68
- factory_method_name = "#{relative_variable_name}_factory"
69
-
70
- # capture block to pass to super so that source_location can be overridden to be block's source_location so that
71
- # errors are reported correctly from RSpec.
72
- wrapper = ->(options={}) {
73
- options.assert_valid_keys(:namespace_name)
74
- namespace_name = options.fetch(:namespace_name)
75
-
76
- class_name = "#{namespace_name}::#{relative_name}"
77
-
78
- #
79
- # Singleton methods to emulate local variable used to define examples and lets
80
- #
81
-
82
- define_singleton_method(class_method_name) do
83
- class_name.constantize
84
- end
85
-
86
- define_singleton_method(factory_method_name) do
87
- "#{factory_namespace}_#{relative_variable_name}"
88
- end
89
-
90
- define_singleton_method(:factory_namespace) do
91
- namespace_name.underscore.gsub('/', '_')
92
- end
93
-
94
- define_singleton_method(:namespace_name) do
95
- namespace_name
96
- end
97
-
98
- define_singleton_method(:relative_variable_name) do
99
- relative_variable_name
100
- end
101
-
102
- #
103
- # Defines to emulate local variable used inside lets
104
- #
105
-
106
- define_method(class_method_name) do
107
- self.class.send(class_method_name)
108
- end
109
-
110
- define_method(factory_method_name) do
111
- self.class.send(factory_method_name)
112
- end
113
-
114
- #
115
- # Default subject uses factory
116
- #
117
-
118
- subject(relative_variable_name) do
119
- FactoryGirl.build(send(factory_method_name))
120
- end
121
-
122
- #
123
- # lets
124
- #
125
-
126
- let(:base_class) do
127
- self.class.send(class_method_name)
128
- end
129
-
130
- it_should_behave_like 'Metasploit::Model::Translation',
131
- metasploit_model_ancestor: fully_qualified_name.constantize
132
-
133
- module_eval(&block)
134
- }
135
-
136
- # Delegate source_location so that RSpec will report block's source_location as the declaration location of
137
- # the shared location instead of this method.
138
- wrapper.define_singleton_method(:source_location) do
139
- block.source_location
140
- end
141
-
142
- super(fully_qualified_name, &wrapper)
143
- end
144
14
  end
@@ -5,7 +5,7 @@ module Metasploit
5
5
  # The major version number.
6
6
  MAJOR = 0
7
7
  # The minor version number, scoped to the {MAJOR} version number.
8
- MINOR = 28
8
+ MINOR = 29
9
9
  # The patch number, scoped to the {MINOR} version number.
10
10
  PATCH = 0
11
11
 
@@ -36,11 +36,10 @@ shared_examples_for 'Metasploit::Model::Search::Operator::Help' do
36
36
  english_translations = translations_by_locale.fetch(:en)
37
37
  metasploit_translations = english_translations.fetch(:metasploit)
38
38
  @metasploit_model_translations = metasploit_translations.fetch(:model)
39
- ancestors_translations = @metasploit_model_translations.fetch(:ancestors)
40
39
 
41
- @original_ancestors_translations = ancestors_translations.dup
40
+ expect(@metasploit_model_translations).not_to have_key(:ancestors)
42
41
 
43
- ancestors_translations.merge!(
42
+ @metasploit_model_translations[:ancestors] = {
44
43
  klass.model_name.i18n_key => {
45
44
  search: {
46
45
  operator: {
@@ -52,12 +51,11 @@ shared_examples_for 'Metasploit::Model::Search::Operator::Help' do
52
51
  }
53
52
  }
54
53
  }
55
-
56
- )
54
+ }
57
55
  end
58
56
 
59
57
  after(:each) do
60
- @metasploit_model_translations[:ancestors] = @original_ancestors_translations
58
+ @metasploit_model_translations.delete(:ancestors)
61
59
  end
62
60
 
63
61
  it 'should use #klass #i18n_scope to lookup translations specific to the #klass or one of its ancestors' do
@@ -4,7 +4,7 @@ shared_examples_for 'Metasploit::Model::Translation' do |options={}|
4
4
  metasploit_model_ancestor = options.fetch(:metasploit_model_ancestor)
5
5
 
6
6
  it 'should include Metasploit::Model::Translation' do
7
- base_class.should include Metasploit::Model::Translation
7
+ expect(base_class).to include Metasploit::Model::Translation
8
8
  end
9
9
 
10
10
  unless metasploit_model_ancestor.is_a? Class
@@ -7,7 +7,7 @@ shared_examples_for 'search_association' do |association|
7
7
  end
8
8
 
9
9
  it 'should have operators for association' do
10
- association_operators.should_not be_empty
10
+ expect(association_operators).not_to be_empty
11
11
  end
12
12
  end
13
13
  end
@@ -11,7 +11,9 @@ shared_examples_for 'search_with' do |operation_class, options={}|
11
11
  options.each do |key, value|
12
12
  # skip :name since it use used to look up operator, so it's already been checked or with_operator would be `nil`
13
13
  unless key == :name
14
- its(key) { should == value }
14
+ it "has #{key.inspect} of #{value.inspect}" do
15
+ expect(with_operator.send(key)).to eq(value)
16
+ end
15
17
  end
16
18
  end
17
19
 
@@ -28,7 +30,7 @@ shared_examples_for 'search_with' do |operation_class, options={}|
28
30
  end
29
31
 
30
32
  it 'should have translation' do
31
- help.should_not include('translation missing')
33
+ expect(help).not_to include('translation missing')
32
34
  end
33
35
  end
34
36
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metasploit-model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.0
4
+ version: 0.29.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luke Imhoff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-03 00:00:00.000000000 Z
11
+ date: 2015-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -114,9 +114,6 @@ files:
114
114
  - README.md
115
115
  - Rakefile
116
116
  - app/models/metasploit/model/association/reflection.rb
117
- - app/models/metasploit/model/module/ancestor/spec/template.rb
118
- - app/models/metasploit/model/module/class/spec/template.rb
119
- - app/models/metasploit/model/module/instance/spec/template.rb
120
117
  - app/models/metasploit/model/search/group/base.rb
121
118
  - app/models/metasploit/model/search/group/intersection.rb
122
119
  - app/models/metasploit/model/search/group/union.rb
@@ -149,67 +146,26 @@ files:
149
146
  - app/models/metasploit/model/search/operator/null.rb
150
147
  - app/models/metasploit/model/search/operator/single.rb
151
148
  - app/models/metasploit/model/search/query.rb
152
- - app/models/metasploit/model/spec/template.rb
153
149
  - app/models/metasploit/model/visitation/visitor.rb
154
- - app/validators/derivation_validator.rb
155
- - app/validators/dynamic_length_validator.rb
156
150
  - app/validators/ip_format_validator.rb
157
151
  - app/validators/nil_validator.rb
158
152
  - app/validators/parameters_validator.rb
159
153
  - app/validators/password_is_strong_validator.rb
160
154
  - config/locales/en.yml
161
155
  - lib/metasploit/model.rb
162
- - lib/metasploit/model/architecture.rb
163
156
  - lib/metasploit/model/association.rb
164
157
  - lib/metasploit/model/association/error.rb
165
158
  - lib/metasploit/model/association/tree.rb
166
- - lib/metasploit/model/author.rb
167
- - lib/metasploit/model/authority.rb
168
- - lib/metasploit/model/authority/bid.rb
169
- - lib/metasploit/model/authority/cve.rb
170
- - lib/metasploit/model/authority/msb.rb
171
- - lib/metasploit/model/authority/osvdb.rb
172
- - lib/metasploit/model/authority/pmasa.rb
173
- - lib/metasploit/model/authority/secunia.rb
174
- - lib/metasploit/model/authority/us_cert_vu.rb
175
- - lib/metasploit/model/authority/waraxe.rb
176
- - lib/metasploit/model/authority/zdi.rb
177
159
  - lib/metasploit/model/base.rb
178
- - lib/metasploit/model/derivation.rb
179
- - lib/metasploit/model/derivation/full_name.rb
180
- - lib/metasploit/model/email_address.rb
181
160
  - lib/metasploit/model/engine.rb
182
161
  - lib/metasploit/model/error.rb
183
162
  - lib/metasploit/model/file.rb
184
163
  - lib/metasploit/model/invalid.rb
185
164
  - lib/metasploit/model/login.rb
186
165
  - lib/metasploit/model/login/status.rb
187
- - lib/metasploit/model/module.rb
188
- - lib/metasploit/model/module/action.rb
189
- - lib/metasploit/model/module/ancestor.rb
190
- - lib/metasploit/model/module/ancestor/spec.rb
191
- - lib/metasploit/model/module/architecture.rb
192
- - lib/metasploit/model/module/author.rb
193
- - lib/metasploit/model/module/class.rb
194
- - lib/metasploit/model/module/class/spec.rb
195
- - lib/metasploit/model/module/handler.rb
196
- - lib/metasploit/model/module/instance.rb
197
- - lib/metasploit/model/module/instance/spec.rb
198
- - lib/metasploit/model/module/path.rb
199
- - lib/metasploit/model/module/platform.rb
200
- - lib/metasploit/model/module/rank.rb
201
- - lib/metasploit/model/module/reference.rb
202
- - lib/metasploit/model/module/stance.rb
203
- - lib/metasploit/model/module/target.rb
204
- - lib/metasploit/model/module/target/architecture.rb
205
- - lib/metasploit/model/module/target/platform.rb
206
- - lib/metasploit/model/module/type.rb
207
166
  - lib/metasploit/model/nilify_blanks.rb
208
- - lib/metasploit/model/platform.rb
209
- - lib/metasploit/model/real_pathname.rb
210
167
  - lib/metasploit/model/realm.rb
211
168
  - lib/metasploit/model/realm/key.rb
212
- - lib/metasploit/model/reference.rb
213
169
  - lib/metasploit/model/search.rb
214
170
  - lib/metasploit/model/search/association.rb
215
171
  - lib/metasploit/model/search/attribute.rb
@@ -238,9 +194,6 @@ files:
238
194
  - metasploit-model.gemspec
239
195
  - script/rails
240
196
  - spec/app/models/metasploit/model/association/reflection_spec.rb
241
- - spec/app/models/metasploit/model/module/ancestor/spec/template_spec.rb
242
- - spec/app/models/metasploit/model/module/class/spec/template_spec.rb
243
- - spec/app/models/metasploit/model/module/instance/spec/template_spec.rb
244
197
  - spec/app/models/metasploit/model/search/group/base_spec.rb
245
198
  - spec/app/models/metasploit/model/search/group/intersection_spec.rb
246
199
  - spec/app/models/metasploit/model/search/group/union_spec.rb
@@ -261,22 +214,13 @@ files:
261
214
  - spec/app/models/metasploit/model/search/operator/attribute_spec.rb
262
215
  - spec/app/models/metasploit/model/search/operator/base_spec.rb
263
216
  - spec/app/models/metasploit/model/search/operator/delegation_spec.rb
264
- - spec/app/models/metasploit/model/search/operator/deprecated/app_spec.rb
265
- - spec/app/models/metasploit/model/search/operator/deprecated/author_spec.rb
266
- - spec/app/models/metasploit/model/search/operator/deprecated/authority_spec.rb
267
- - spec/app/models/metasploit/model/search/operator/deprecated/platform_spec.rb
268
- - spec/app/models/metasploit/model/search/operator/deprecated/ref_spec.rb
269
- - spec/app/models/metasploit/model/search/operator/deprecated/text_spec.rb
270
217
  - spec/app/models/metasploit/model/search/operator/group/base_spec.rb
271
218
  - spec/app/models/metasploit/model/search/operator/group/intersection_spec.rb
272
219
  - spec/app/models/metasploit/model/search/operator/group/union_spec.rb
273
220
  - spec/app/models/metasploit/model/search/operator/null_spec.rb
274
221
  - spec/app/models/metasploit/model/search/operator/single_spec.rb
275
222
  - spec/app/models/metasploit/model/search/query_spec.rb
276
- - spec/app/models/metasploit/model/spec/template_spec.rb
277
223
  - spec/app/models/metasploit/model/visitation/visitor_spec.rb
278
- - spec/app/validators/derivation_validator_spec.rb
279
- - spec/app/validators/dynamic_length_validator_spec.rb
280
224
  - spec/app/validators/ip_format_validator_spec.rb
281
225
  - spec/app/validators/nil_validator_spec.rb
282
226
  - spec/app/validators/parameters_validator_spec.rb
@@ -287,25 +231,6 @@ files:
287
231
  - spec/dummy/app/controllers/application_controller.rb
288
232
  - spec/dummy/app/helpers/application_helper.rb
289
233
  - spec/dummy/app/mailers/.gitkeep
290
- - spec/dummy/app/models/dummy/architecture.rb
291
- - spec/dummy/app/models/dummy/author.rb
292
- - spec/dummy/app/models/dummy/authority.rb
293
- - spec/dummy/app/models/dummy/email_address.rb
294
- - spec/dummy/app/models/dummy/module/action.rb
295
- - spec/dummy/app/models/dummy/module/ancestor.rb
296
- - spec/dummy/app/models/dummy/module/architecture.rb
297
- - spec/dummy/app/models/dummy/module/author.rb
298
- - spec/dummy/app/models/dummy/module/class.rb
299
- - spec/dummy/app/models/dummy/module/instance.rb
300
- - spec/dummy/app/models/dummy/module/path.rb
301
- - spec/dummy/app/models/dummy/module/platform.rb
302
- - spec/dummy/app/models/dummy/module/rank.rb
303
- - spec/dummy/app/models/dummy/module/reference.rb
304
- - spec/dummy/app/models/dummy/module/target.rb
305
- - spec/dummy/app/models/dummy/module/target/architecture.rb
306
- - spec/dummy/app/models/dummy/module/target/platform.rb
307
- - spec/dummy/app/models/dummy/platform.rb
308
- - spec/dummy/app/models/dummy/reference.rb
309
234
  - spec/dummy/app/views/layouts/application.html.erb
310
235
  - spec/dummy/config.ru
311
236
  - spec/dummy/config/application.rb
@@ -330,90 +255,20 @@ files:
330
255
  - spec/dummy/public/500.html
331
256
  - spec/dummy/public/favicon.ico
332
257
  - spec/dummy/script/rails
333
- - spec/dummy/spec/factories/dummy/architectures.rb
334
- - spec/dummy/spec/factories/dummy/authorities.rb
335
- - spec/dummy/spec/factories/dummy/authors.rb
336
- - spec/dummy/spec/factories/dummy/email_addresses.rb
337
- - spec/dummy/spec/factories/dummy/module/actions.rb
338
- - spec/dummy/spec/factories/dummy/module/ancestors.rb
339
- - spec/dummy/spec/factories/dummy/module/architectures.rb
340
- - spec/dummy/spec/factories/dummy/module/authors.rb
341
- - spec/dummy/spec/factories/dummy/module/classes.rb
342
- - spec/dummy/spec/factories/dummy/module/instances.rb
343
- - spec/dummy/spec/factories/dummy/module/paths.rb
344
- - spec/dummy/spec/factories/dummy/module/platforms.rb
345
- - spec/dummy/spec/factories/dummy/module/ranks.rb
346
- - spec/dummy/spec/factories/dummy/module/references.rb
347
- - spec/dummy/spec/factories/dummy/module/target/architectures.rb
348
- - spec/dummy/spec/factories/dummy/module/target/platforms.rb
349
- - spec/dummy/spec/factories/dummy/module/targets.rb
350
- - spec/dummy/spec/factories/dummy/platforms.rb
351
- - spec/dummy/spec/factories/dummy/references.rb
352
- - spec/factories/metasploit/model/architectures.rb
353
258
  - spec/factories/metasploit/model/association/reflections.rb
354
- - spec/factories/metasploit/model/authorities.rb
355
- - spec/factories/metasploit/model/authors.rb
356
259
  - spec/factories/metasploit/model/bases.rb
357
- - spec/factories/metasploit/model/email_addresses.rb
358
- - spec/factories/metasploit/model/module/actions.rb
359
- - spec/factories/metasploit/model/module/ancestors.rb
360
- - spec/factories/metasploit/model/module/architectures.rb
361
- - spec/factories/metasploit/model/module/classes.rb
362
- - spec/factories/metasploit/model/module/handlers.rb
363
- - spec/factories/metasploit/model/module/instances.rb
364
- - spec/factories/metasploit/model/module/paths.rb
365
- - spec/factories/metasploit/model/module/platforms.rb
366
- - spec/factories/metasploit/model/module/ranks.rb
367
- - spec/factories/metasploit/model/module/references.rb
368
- - spec/factories/metasploit/model/module/stances.rb
369
- - spec/factories/metasploit/model/module/targets.rb
370
- - spec/factories/metasploit/model/module/types.rb
371
- - spec/factories/metasploit/model/references.rb
372
260
  - spec/factories/metasploit/model/search/operator/associations.rb
373
261
  - spec/factories/metasploit/model/search/operator/attributes.rb
374
262
  - spec/factories/metasploit/model/search/operator/bases.rb
375
- - spec/lib/metasploit/model/architecture_spec.rb
376
263
  - spec/lib/metasploit/model/association/error_spec.rb
377
264
  - spec/lib/metasploit/model/association_spec.rb
378
- - spec/lib/metasploit/model/author_spec.rb
379
- - spec/lib/metasploit/model/authority/bid_spec.rb
380
- - spec/lib/metasploit/model/authority/cve_spec.rb
381
- - spec/lib/metasploit/model/authority/msb_spec.rb
382
- - spec/lib/metasploit/model/authority/osvdb_spec.rb
383
- - spec/lib/metasploit/model/authority/pmasa_spec.rb
384
- - spec/lib/metasploit/model/authority/secunia_spec.rb
385
- - spec/lib/metasploit/model/authority/us_cert_vu_spec.rb
386
- - spec/lib/metasploit/model/authority/waraxe_spec.rb
387
- - spec/lib/metasploit/model/authority/zdi_spec.rb
388
- - spec/lib/metasploit/model/authority_spec.rb
389
265
  - spec/lib/metasploit/model/base_spec.rb
390
- - spec/lib/metasploit/model/derivation/full_name_spec.rb
391
- - spec/lib/metasploit/model/derivation_spec.rb
392
- - spec/lib/metasploit/model/email_address_spec.rb
393
266
  - spec/lib/metasploit/model/engine_spec.rb
394
267
  - spec/lib/metasploit/model/file_spec.rb
395
268
  - spec/lib/metasploit/model/invalid_spec.rb
396
269
  - spec/lib/metasploit/model/login/status_spec.rb
397
- - spec/lib/metasploit/model/module/action_spec.rb
398
- - spec/lib/metasploit/model/module/ancestor_spec.rb
399
- - spec/lib/metasploit/model/module/architecture_spec.rb
400
- - spec/lib/metasploit/model/module/author_spec.rb
401
- - spec/lib/metasploit/model/module/class_spec.rb
402
- - spec/lib/metasploit/model/module/handler_spec.rb
403
- - spec/lib/metasploit/model/module/instance_spec.rb
404
- - spec/lib/metasploit/model/module/path_spec.rb
405
- - spec/lib/metasploit/model/module/platform_spec.rb
406
- - spec/lib/metasploit/model/module/rank_spec.rb
407
- - spec/lib/metasploit/model/module/reference_spec.rb
408
- - spec/lib/metasploit/model/module/stance_spec.rb
409
- - spec/lib/metasploit/model/module/target/architecture_spec.rb
410
- - spec/lib/metasploit/model/module/target/platform_spec.rb
411
- - spec/lib/metasploit/model/module/target_spec.rb
412
- - spec/lib/metasploit/model/module/type_spec.rb
413
270
  - spec/lib/metasploit/model/nilify_blanks_spec.rb
414
- - spec/lib/metasploit/model/platform_spec.rb
415
271
  - spec/lib/metasploit/model/realm/key_spec.rb
416
- - spec/lib/metasploit/model/reference_spec.rb
417
272
  - spec/lib/metasploit/model/search/association/tree_spec.rb
418
273
  - spec/lib/metasploit/model/search/association_spec.rb
419
274
  - spec/lib/metasploit/model/search/attribute_spec.rb
@@ -431,66 +286,16 @@ files:
431
286
  - spec/lib/metasploit/model/version_spec.rb
432
287
  - spec/lib/metasploit/model/visitation/visit_spec.rb
433
288
  - spec/spec_helper.rb
434
- - spec/support/shared/contexts/metasploit/model/module/ancestor/contents/metasploit_module.rb
435
- - spec/support/shared/contexts/metasploit/model/module/ancestor/factory/contents.rb
436
- - spec/support/shared/contexts/metasploit/model/module/ancestor/factory/contents/metasploit_module.rb
437
289
  - spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb
438
- - spec/support/shared/examples/derives.rb
439
- - spec/support/shared/examples/metasploit/model/architecture.rb
440
- - spec/support/shared/examples/metasploit/model/architecture/seed.rb
441
- - spec/support/shared/examples/metasploit/model/author.rb
442
- - spec/support/shared/examples/metasploit/model/authority.rb
443
- - spec/support/shared/examples/metasploit/model/authority/seed.rb
444
- - spec/support/shared/examples/metasploit/model/email_address.rb
445
- - spec/support/shared/examples/metasploit/model/module/action.rb
446
- - spec/support/shared/examples/metasploit/model/module/ancestor.rb
447
- - spec/support/shared/examples/metasploit/model/module/ancestor/payload_factory.rb
448
- - spec/support/shared/examples/metasploit/model/module/architecture.rb
449
- - spec/support/shared/examples/metasploit/model/module/author.rb
450
- - spec/support/shared/examples/metasploit/model/module/class.rb
451
- - spec/support/shared/examples/metasploit/model/module/handler.rb
452
- - spec/support/shared/examples/metasploit/model/module/instance.rb
453
- - spec/support/shared/examples/metasploit/model/module/instance/class_methods.rb
454
- - spec/support/shared/examples/metasploit/model/module/instance/is_not_stanced_with_module_type.rb
455
- - spec/support/shared/examples/metasploit/model/module/instance/is_stanced_with_module_type.rb
456
- - spec/support/shared/examples/metasploit/model/module/instance/validates/dynamic_length_of.rb
457
- - spec/support/shared/examples/metasploit/model/module/path.rb
458
- - spec/support/shared/examples/metasploit/model/module/platform.rb
459
- - spec/support/shared/examples/metasploit/model/module/rank.rb
460
- - spec/support/shared/examples/metasploit/model/module/reference.rb
461
- - spec/support/shared/examples/metasploit/model/module/target.rb
462
- - spec/support/shared/examples/metasploit/model/module/target/architecture.rb
463
- - spec/support/shared/examples/metasploit/model/module/target/platform.rb
464
- - spec/support/shared/examples/metasploit/model/platform.rb
465
- - spec/support/shared/examples/metasploit/model/real_pathname.rb
466
- - spec/support/shared/examples/metasploit/model/reference.rb
467
290
  - spec/support/shared/examples/metasploit/model/search/operation/value/integer.rb
468
291
  - spec/support/shared/examples/metasploit/model/search/operation/value/string.rb
469
292
  - spec/support/shared/examples/metasploit/model/search/operator/help.rb
470
293
  - spec/support/shared/examples/metasploit/model/translation.rb
471
294
  - spec/support/shared/examples/search/query.rb
472
- - spec/support/shared/examples/search/query/metasploit/model/search/operator/deprecated/app.rb
473
- - spec/support/shared/examples/search/query/metasploit/model/search/operator/deprecated/authority.rb
474
295
  - spec/support/shared/examples/search_association.rb
475
296
  - spec/support/shared/examples/search_attribute.rb
476
297
  - spec/support/shared/examples/search_with.rb
477
298
  - spec/support/shared/matchers/allow_attribute.rb
478
- - spec/support/templates/metasploit/model/module/ancestors/_attributes.rb.erb
479
- - spec/support/templates/metasploit/model/module/ancestors/_methods.rb.erb
480
- - spec/support/templates/metasploit/model/module/ancestors/_validations.rb.erb
481
- - spec/support/templates/metasploit/model/module/ancestors/base.rb.erb
482
- - spec/support/templates/metasploit/model/module/ancestors/module_types/_auxiliary.rb.erb
483
- - spec/support/templates/metasploit/model/module/ancestors/module_types/_encoder.rb.erb
484
- - spec/support/templates/metasploit/model/module/ancestors/module_types/_exploit.rb.erb
485
- - spec/support/templates/metasploit/model/module/ancestors/module_types/_non_payload.rb.erb
486
- - spec/support/templates/metasploit/model/module/ancestors/module_types/_nop.rb.erb
487
- - spec/support/templates/metasploit/model/module/ancestors/module_types/_payload.rb.erb
488
- - spec/support/templates/metasploit/model/module/ancestors/module_types/_post.rb.erb
489
- - spec/support/templates/metasploit/model/module/ancestors/payload_types/_handled.rb.erb
490
- - spec/support/templates/metasploit/model/module/ancestors/payload_types/_single.rb.erb
491
- - spec/support/templates/metasploit/model/module/ancestors/payload_types/_stage.rb.erb
492
- - spec/support/templates/metasploit/model/module/ancestors/payload_types/_stager.rb.erb
493
- - spec/support/templates/metasploit/model/module/classes/_methods.rb.erb
494
299
  homepage:
495
300
  licenses: []
496
301
  metadata: {}
@@ -512,15 +317,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
512
317
  version: '0'
513
318
  requirements: []
514
319
  rubyforge_project:
515
- rubygems_version: 2.1.11
320
+ rubygems_version: 2.4.5
516
321
  signing_key:
517
322
  specification_version: 4
518
323
  summary: Metasploit Model Mixins and Validators
519
324
  test_files:
520
325
  - spec/app/models/metasploit/model/association/reflection_spec.rb
521
- - spec/app/models/metasploit/model/module/ancestor/spec/template_spec.rb
522
- - spec/app/models/metasploit/model/module/class/spec/template_spec.rb
523
- - spec/app/models/metasploit/model/module/instance/spec/template_spec.rb
524
326
  - spec/app/models/metasploit/model/search/group/base_spec.rb
525
327
  - spec/app/models/metasploit/model/search/group/intersection_spec.rb
526
328
  - spec/app/models/metasploit/model/search/group/union_spec.rb
@@ -541,22 +343,13 @@ test_files:
541
343
  - spec/app/models/metasploit/model/search/operator/attribute_spec.rb
542
344
  - spec/app/models/metasploit/model/search/operator/base_spec.rb
543
345
  - spec/app/models/metasploit/model/search/operator/delegation_spec.rb
544
- - spec/app/models/metasploit/model/search/operator/deprecated/app_spec.rb
545
- - spec/app/models/metasploit/model/search/operator/deprecated/author_spec.rb
546
- - spec/app/models/metasploit/model/search/operator/deprecated/authority_spec.rb
547
- - spec/app/models/metasploit/model/search/operator/deprecated/platform_spec.rb
548
- - spec/app/models/metasploit/model/search/operator/deprecated/ref_spec.rb
549
- - spec/app/models/metasploit/model/search/operator/deprecated/text_spec.rb
550
346
  - spec/app/models/metasploit/model/search/operator/group/base_spec.rb
551
347
  - spec/app/models/metasploit/model/search/operator/group/intersection_spec.rb
552
348
  - spec/app/models/metasploit/model/search/operator/group/union_spec.rb
553
349
  - spec/app/models/metasploit/model/search/operator/null_spec.rb
554
350
  - spec/app/models/metasploit/model/search/operator/single_spec.rb
555
351
  - spec/app/models/metasploit/model/search/query_spec.rb
556
- - spec/app/models/metasploit/model/spec/template_spec.rb
557
352
  - spec/app/models/metasploit/model/visitation/visitor_spec.rb
558
- - spec/app/validators/derivation_validator_spec.rb
559
- - spec/app/validators/dynamic_length_validator_spec.rb
560
353
  - spec/app/validators/ip_format_validator_spec.rb
561
354
  - spec/app/validators/nil_validator_spec.rb
562
355
  - spec/app/validators/parameters_validator_spec.rb
@@ -567,25 +360,6 @@ test_files:
567
360
  - spec/dummy/app/controllers/application_controller.rb
568
361
  - spec/dummy/app/helpers/application_helper.rb
569
362
  - spec/dummy/app/mailers/.gitkeep
570
- - spec/dummy/app/models/dummy/architecture.rb
571
- - spec/dummy/app/models/dummy/author.rb
572
- - spec/dummy/app/models/dummy/authority.rb
573
- - spec/dummy/app/models/dummy/email_address.rb
574
- - spec/dummy/app/models/dummy/module/action.rb
575
- - spec/dummy/app/models/dummy/module/ancestor.rb
576
- - spec/dummy/app/models/dummy/module/architecture.rb
577
- - spec/dummy/app/models/dummy/module/author.rb
578
- - spec/dummy/app/models/dummy/module/class.rb
579
- - spec/dummy/app/models/dummy/module/instance.rb
580
- - spec/dummy/app/models/dummy/module/path.rb
581
- - spec/dummy/app/models/dummy/module/platform.rb
582
- - spec/dummy/app/models/dummy/module/rank.rb
583
- - spec/dummy/app/models/dummy/module/reference.rb
584
- - spec/dummy/app/models/dummy/module/target.rb
585
- - spec/dummy/app/models/dummy/module/target/architecture.rb
586
- - spec/dummy/app/models/dummy/module/target/platform.rb
587
- - spec/dummy/app/models/dummy/platform.rb
588
- - spec/dummy/app/models/dummy/reference.rb
589
363
  - spec/dummy/app/views/layouts/application.html.erb
590
364
  - spec/dummy/config.ru
591
365
  - spec/dummy/config/application.rb
@@ -610,90 +384,20 @@ test_files:
610
384
  - spec/dummy/public/500.html
611
385
  - spec/dummy/public/favicon.ico
612
386
  - spec/dummy/script/rails
613
- - spec/dummy/spec/factories/dummy/architectures.rb
614
- - spec/dummy/spec/factories/dummy/authorities.rb
615
- - spec/dummy/spec/factories/dummy/authors.rb
616
- - spec/dummy/spec/factories/dummy/email_addresses.rb
617
- - spec/dummy/spec/factories/dummy/module/actions.rb
618
- - spec/dummy/spec/factories/dummy/module/ancestors.rb
619
- - spec/dummy/spec/factories/dummy/module/architectures.rb
620
- - spec/dummy/spec/factories/dummy/module/authors.rb
621
- - spec/dummy/spec/factories/dummy/module/classes.rb
622
- - spec/dummy/spec/factories/dummy/module/instances.rb
623
- - spec/dummy/spec/factories/dummy/module/paths.rb
624
- - spec/dummy/spec/factories/dummy/module/platforms.rb
625
- - spec/dummy/spec/factories/dummy/module/ranks.rb
626
- - spec/dummy/spec/factories/dummy/module/references.rb
627
- - spec/dummy/spec/factories/dummy/module/target/architectures.rb
628
- - spec/dummy/spec/factories/dummy/module/target/platforms.rb
629
- - spec/dummy/spec/factories/dummy/module/targets.rb
630
- - spec/dummy/spec/factories/dummy/platforms.rb
631
- - spec/dummy/spec/factories/dummy/references.rb
632
- - spec/factories/metasploit/model/architectures.rb
633
387
  - spec/factories/metasploit/model/association/reflections.rb
634
- - spec/factories/metasploit/model/authorities.rb
635
- - spec/factories/metasploit/model/authors.rb
636
388
  - spec/factories/metasploit/model/bases.rb
637
- - spec/factories/metasploit/model/email_addresses.rb
638
- - spec/factories/metasploit/model/module/actions.rb
639
- - spec/factories/metasploit/model/module/ancestors.rb
640
- - spec/factories/metasploit/model/module/architectures.rb
641
- - spec/factories/metasploit/model/module/classes.rb
642
- - spec/factories/metasploit/model/module/handlers.rb
643
- - spec/factories/metasploit/model/module/instances.rb
644
- - spec/factories/metasploit/model/module/paths.rb
645
- - spec/factories/metasploit/model/module/platforms.rb
646
- - spec/factories/metasploit/model/module/ranks.rb
647
- - spec/factories/metasploit/model/module/references.rb
648
- - spec/factories/metasploit/model/module/stances.rb
649
- - spec/factories/metasploit/model/module/targets.rb
650
- - spec/factories/metasploit/model/module/types.rb
651
- - spec/factories/metasploit/model/references.rb
652
389
  - spec/factories/metasploit/model/search/operator/associations.rb
653
390
  - spec/factories/metasploit/model/search/operator/attributes.rb
654
391
  - spec/factories/metasploit/model/search/operator/bases.rb
655
- - spec/lib/metasploit/model/architecture_spec.rb
656
392
  - spec/lib/metasploit/model/association/error_spec.rb
657
393
  - spec/lib/metasploit/model/association_spec.rb
658
- - spec/lib/metasploit/model/author_spec.rb
659
- - spec/lib/metasploit/model/authority/bid_spec.rb
660
- - spec/lib/metasploit/model/authority/cve_spec.rb
661
- - spec/lib/metasploit/model/authority/msb_spec.rb
662
- - spec/lib/metasploit/model/authority/osvdb_spec.rb
663
- - spec/lib/metasploit/model/authority/pmasa_spec.rb
664
- - spec/lib/metasploit/model/authority/secunia_spec.rb
665
- - spec/lib/metasploit/model/authority/us_cert_vu_spec.rb
666
- - spec/lib/metasploit/model/authority/waraxe_spec.rb
667
- - spec/lib/metasploit/model/authority/zdi_spec.rb
668
- - spec/lib/metasploit/model/authority_spec.rb
669
394
  - spec/lib/metasploit/model/base_spec.rb
670
- - spec/lib/metasploit/model/derivation/full_name_spec.rb
671
- - spec/lib/metasploit/model/derivation_spec.rb
672
- - spec/lib/metasploit/model/email_address_spec.rb
673
395
  - spec/lib/metasploit/model/engine_spec.rb
674
396
  - spec/lib/metasploit/model/file_spec.rb
675
397
  - spec/lib/metasploit/model/invalid_spec.rb
676
398
  - spec/lib/metasploit/model/login/status_spec.rb
677
- - spec/lib/metasploit/model/module/action_spec.rb
678
- - spec/lib/metasploit/model/module/ancestor_spec.rb
679
- - spec/lib/metasploit/model/module/architecture_spec.rb
680
- - spec/lib/metasploit/model/module/author_spec.rb
681
- - spec/lib/metasploit/model/module/class_spec.rb
682
- - spec/lib/metasploit/model/module/handler_spec.rb
683
- - spec/lib/metasploit/model/module/instance_spec.rb
684
- - spec/lib/metasploit/model/module/path_spec.rb
685
- - spec/lib/metasploit/model/module/platform_spec.rb
686
- - spec/lib/metasploit/model/module/rank_spec.rb
687
- - spec/lib/metasploit/model/module/reference_spec.rb
688
- - spec/lib/metasploit/model/module/stance_spec.rb
689
- - spec/lib/metasploit/model/module/target/architecture_spec.rb
690
- - spec/lib/metasploit/model/module/target/platform_spec.rb
691
- - spec/lib/metasploit/model/module/target_spec.rb
692
- - spec/lib/metasploit/model/module/type_spec.rb
693
399
  - spec/lib/metasploit/model/nilify_blanks_spec.rb
694
- - spec/lib/metasploit/model/platform_spec.rb
695
400
  - spec/lib/metasploit/model/realm/key_spec.rb
696
- - spec/lib/metasploit/model/reference_spec.rb
697
401
  - spec/lib/metasploit/model/search/association/tree_spec.rb
698
402
  - spec/lib/metasploit/model/search/association_spec.rb
699
403
  - spec/lib/metasploit/model/search/attribute_spec.rb
@@ -711,64 +415,14 @@ test_files:
711
415
  - spec/lib/metasploit/model/version_spec.rb
712
416
  - spec/lib/metasploit/model/visitation/visit_spec.rb
713
417
  - spec/spec_helper.rb
714
- - spec/support/shared/contexts/metasploit/model/module/ancestor/contents/metasploit_module.rb
715
- - spec/support/shared/contexts/metasploit/model/module/ancestor/factory/contents.rb
716
- - spec/support/shared/contexts/metasploit/model/module/ancestor/factory/contents/metasploit_module.rb
717
418
  - spec/support/shared/contexts/metasploit/model/search/operator/union/children.rb
718
- - spec/support/shared/examples/derives.rb
719
- - spec/support/shared/examples/metasploit/model/architecture.rb
720
- - spec/support/shared/examples/metasploit/model/architecture/seed.rb
721
- - spec/support/shared/examples/metasploit/model/author.rb
722
- - spec/support/shared/examples/metasploit/model/authority.rb
723
- - spec/support/shared/examples/metasploit/model/authority/seed.rb
724
- - spec/support/shared/examples/metasploit/model/email_address.rb
725
- - spec/support/shared/examples/metasploit/model/module/action.rb
726
- - spec/support/shared/examples/metasploit/model/module/ancestor.rb
727
- - spec/support/shared/examples/metasploit/model/module/ancestor/payload_factory.rb
728
- - spec/support/shared/examples/metasploit/model/module/architecture.rb
729
- - spec/support/shared/examples/metasploit/model/module/author.rb
730
- - spec/support/shared/examples/metasploit/model/module/class.rb
731
- - spec/support/shared/examples/metasploit/model/module/handler.rb
732
- - spec/support/shared/examples/metasploit/model/module/instance.rb
733
- - spec/support/shared/examples/metasploit/model/module/instance/class_methods.rb
734
- - spec/support/shared/examples/metasploit/model/module/instance/is_not_stanced_with_module_type.rb
735
- - spec/support/shared/examples/metasploit/model/module/instance/is_stanced_with_module_type.rb
736
- - spec/support/shared/examples/metasploit/model/module/instance/validates/dynamic_length_of.rb
737
- - spec/support/shared/examples/metasploit/model/module/path.rb
738
- - spec/support/shared/examples/metasploit/model/module/platform.rb
739
- - spec/support/shared/examples/metasploit/model/module/rank.rb
740
- - spec/support/shared/examples/metasploit/model/module/reference.rb
741
- - spec/support/shared/examples/metasploit/model/module/target.rb
742
- - spec/support/shared/examples/metasploit/model/module/target/architecture.rb
743
- - spec/support/shared/examples/metasploit/model/module/target/platform.rb
744
- - spec/support/shared/examples/metasploit/model/platform.rb
745
- - spec/support/shared/examples/metasploit/model/real_pathname.rb
746
- - spec/support/shared/examples/metasploit/model/reference.rb
747
419
  - spec/support/shared/examples/metasploit/model/search/operation/value/integer.rb
748
420
  - spec/support/shared/examples/metasploit/model/search/operation/value/string.rb
749
421
  - spec/support/shared/examples/metasploit/model/search/operator/help.rb
750
422
  - spec/support/shared/examples/metasploit/model/translation.rb
751
423
  - spec/support/shared/examples/search/query.rb
752
- - spec/support/shared/examples/search/query/metasploit/model/search/operator/deprecated/app.rb
753
- - spec/support/shared/examples/search/query/metasploit/model/search/operator/deprecated/authority.rb
754
424
  - spec/support/shared/examples/search_association.rb
755
425
  - spec/support/shared/examples/search_attribute.rb
756
426
  - spec/support/shared/examples/search_with.rb
757
427
  - spec/support/shared/matchers/allow_attribute.rb
758
- - spec/support/templates/metasploit/model/module/ancestors/_attributes.rb.erb
759
- - spec/support/templates/metasploit/model/module/ancestors/_methods.rb.erb
760
- - spec/support/templates/metasploit/model/module/ancestors/_validations.rb.erb
761
- - spec/support/templates/metasploit/model/module/ancestors/base.rb.erb
762
- - spec/support/templates/metasploit/model/module/ancestors/module_types/_auxiliary.rb.erb
763
- - spec/support/templates/metasploit/model/module/ancestors/module_types/_encoder.rb.erb
764
- - spec/support/templates/metasploit/model/module/ancestors/module_types/_exploit.rb.erb
765
- - spec/support/templates/metasploit/model/module/ancestors/module_types/_non_payload.rb.erb
766
- - spec/support/templates/metasploit/model/module/ancestors/module_types/_nop.rb.erb
767
- - spec/support/templates/metasploit/model/module/ancestors/module_types/_payload.rb.erb
768
- - spec/support/templates/metasploit/model/module/ancestors/module_types/_post.rb.erb
769
- - spec/support/templates/metasploit/model/module/ancestors/payload_types/_handled.rb.erb
770
- - spec/support/templates/metasploit/model/module/ancestors/payload_types/_single.rb.erb
771
- - spec/support/templates/metasploit/model/module/ancestors/payload_types/_stage.rb.erb
772
- - spec/support/templates/metasploit/model/module/ancestors/payload_types/_stager.rb.erb
773
- - spec/support/templates/metasploit/model/module/classes/_methods.rb.erb
774
428
  has_rdoc: