Mirror of metasploit
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

constants.rb 3.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. # -*- coding: binary -*-
  2. ###
  3. #
  4. # This file contains constants that are referenced by the core
  5. # framework and by framework modules.
  6. #
  7. ###
  8. module Msf
  9. #
  10. # Module types
  11. #
  12. MODULE_ANY = '_any_'
  13. MODULE_ENCODER = 'encoder'
  14. MODULE_EXPLOIT = 'exploit'
  15. MODULE_NOP = 'nop'
  16. MODULE_AUX = 'auxiliary'
  17. MODULE_PAYLOAD = 'payload'
  18. MODULE_POST = 'post'
  19. MODULE_TYPES =
  20. [
  21. MODULE_ENCODER,
  22. MODULE_PAYLOAD,
  23. MODULE_EXPLOIT,
  24. MODULE_NOP,
  25. MODULE_POST,
  26. MODULE_AUX
  27. ]
  28. #
  29. # Module rankings
  30. #
  31. ManualRanking = 0
  32. LowRanking = 100
  33. AverageRanking = 200
  34. NormalRanking = 300
  35. GoodRanking = 400
  36. GreatRanking = 500
  37. ExcellentRanking = 600
  38. RankingName =
  39. {
  40. ManualRanking => "manual",
  41. LowRanking => "low",
  42. AverageRanking => "average",
  43. NormalRanking => "normal",
  44. GoodRanking => "good",
  45. GreatRanking => "great",
  46. ExcellentRanking => "excellent"
  47. }
  48. module HttpClients
  49. IE = "MSIE"
  50. FF = "Firefox"
  51. SAFARI = "Safari"
  52. OPERA = "Opera"
  53. CHROME = "Chrome"
  54. UNKNOWN = "Unknown"
  55. end
  56. module OperatingSystems
  57. LINUX = "Linux"
  58. MAC_OSX = "Mac OS X"
  59. WINDOWS = "Windows"
  60. FREEBSD = "FreeBSD"
  61. NETBSD = "NetBSD"
  62. OPENBSD = "OpenBSD"
  63. VMWARE = "VMware"
  64. ANDROID = "Android"
  65. APPLE_IOS = "iOS"
  66. module VmwareVersions
  67. ESX = "ESX"
  68. ESXI = "ESXi"
  69. end
  70. module WindowsVersions
  71. NINE5 = "95"
  72. NINE8 = "98"
  73. NT = "NT"
  74. XP = "XP"
  75. TWOK = "2000"
  76. TWOK3 = "2003"
  77. VISTA = "Vista"
  78. TWOK8 = "2008"
  79. TWOK12 = "2012"
  80. SEVEN = "7"
  81. EIGHT = "8"
  82. EIGHTONE = "8.1"
  83. TEN = "10.0"
  84. end
  85. UNKNOWN = "Unknown"
  86. module Match
  87. WINDOWS = /^(?:Microsoft )?Windows/
  88. WINDOWS_95 = /^(?:Microsoft )?Windows 95/
  89. WINDOWS_98 = /^(?:Microsoft )?Windows 98/
  90. WINDOWS_ME = /^(?:Microsoft )?Windows ME/
  91. WINDOWS_NT3 = /^(?:Microsoft )?Windows NT 3/
  92. WINDOWS_NT4 = /^(?:Microsoft )?Windows NT 4/
  93. WINDOWS_2000 = /^(?:Microsoft )?Windows 2000/
  94. WINDOWS_XP = /^(?:Microsoft )?Windows XP/
  95. WINDOWS_2003 = /^(?:Microsoft )?Windows 2003/
  96. WINDOWS_VISTA = /^(?:Microsoft )?Windows Vista/
  97. WINDOWS_2008 = /^(?:Microsoft )?Windows 2008/
  98. WINDOWS_7 = /^(?:Microsoft )?Windows 7/
  99. WINDOWS_2012 = /^(?:Microsoft )?Windows 2012/
  100. WINDOWS_8 = /^(?:Microsoft )?Windows 8/
  101. WINDOWS_81 = /^(?:Microsoft )?Windows 8\.1/
  102. WINDOWS_10 = /^(?:Microsoft )?Windows 10/
  103. LINUX = /^Linux/i
  104. MAC_OSX = /^(?:Apple )?Mac OS X/
  105. FREEBSD = /^FreeBSD/
  106. NETBSD = /^NetBSD/
  107. OPENBSD = /^OpenBSD/
  108. VMWARE = /^VMware/
  109. ANDROID = /^(?:Google )?Android/
  110. APPLE_IOS = /^(?:Apple )?iOS/
  111. end
  112. end
  113. end
  114. #
  115. # Global constants
  116. #
  117. # Licenses
  118. MSF_LICENSE = "Metasploit Framework License (BSD)"
  119. GPL_LICENSE = "GNU Public License v2.0"
  120. BSD_LICENSE = "BSD License"
  121. ARTISTIC_LICENSE = "Perl Artistic License"
  122. UNKNOWN_LICENSE = "Unknown License"
  123. LICENSES =
  124. [
  125. MSF_LICENSE,
  126. GPL_LICENSE,
  127. BSD_LICENSE,
  128. ARTISTIC_LICENSE,
  129. UNKNOWN_LICENSE
  130. ]