metasploit-framework/lib/msf/core/constants.rb

145 lines
3.1 KiB
Ruby
Raw Normal View History

# -*- coding: binary -*-
###
#
# This file contains constants that are referenced by the core
# framework and by framework modules.
#
###
module Msf
#
# Module types
#
MODULE_ANY = '_any_'
MODULE_ENCODER = 'encoder'
MODULE_EXPLOIT = 'exploit'
MODULE_NOP = 'nop'
MODULE_AUX = 'auxiliary'
MODULE_PAYLOAD = 'payload'
MODULE_POST = 'post'
MODULE_TYPES =
2013-08-30 21:28:33 +00:00
[
MODULE_ENCODER,
MODULE_PAYLOAD,
MODULE_EXPLOIT,
MODULE_NOP,
MODULE_POST,
MODULE_AUX
]
#
# Module rankings
#
ManualRanking = 0
LowRanking = 100
AverageRanking = 200
NormalRanking = 300
GoodRanking = 400
GreatRanking = 500
ExcellentRanking = 600
RankingName =
2013-08-30 21:28:33 +00:00
{
ManualRanking => "manual",
LowRanking => "low",
AverageRanking => "average",
NormalRanking => "normal",
GoodRanking => "good",
GreatRanking => "great",
ExcellentRanking => "excellent"
}
module HttpClients
2013-08-30 21:28:33 +00:00
IE = "MSIE"
FF = "Firefox"
SAFARI = "Safari"
OPERA = "Opera"
CHROME = "Chrome"
2017-01-05 03:20:42 +00:00
EDGE = "Edge"
2013-08-30 21:28:33 +00:00
UNKNOWN = "Unknown"
end
module OperatingSystems
2013-08-30 21:28:33 +00:00
LINUX = "Linux"
MAC_OSX = "Mac OS X"
WINDOWS = "Windows"
2013-08-30 21:28:33 +00:00
FREEBSD = "FreeBSD"
NETBSD = "NetBSD"
OPENBSD = "OpenBSD"
VMWARE = "VMware"
ANDROID = "Android"
APPLE_IOS = "iOS"
2013-08-30 21:28:33 +00:00
module VmwareVersions
ESX = "ESX"
ESXI = "ESXi"
end
2013-08-30 21:28:33 +00:00
module WindowsVersions
NINE5 = "95"
NINE8 = "98"
2013-08-30 21:28:33 +00:00
NT = "NT"
XP = "XP"
TWOK = "2000"
TWOK3 = "2003"
VISTA = "Vista"
TWOK8 = "2008"
TWOK12 = "2012"
2013-08-30 21:28:33 +00:00
SEVEN = "7"
2013-11-13 17:38:27 +00:00
EIGHT = "8"
EIGHTONE = "8.1"
TEN = "10.0"
2013-08-30 21:28:33 +00:00
end
2013-08-30 21:28:33 +00:00
UNKNOWN = "Unknown"
module Match
WINDOWS = /^(?:Microsoft )?Windows/
WINDOWS_95 = /^(?:Microsoft )?Windows 95/
WINDOWS_98 = /^(?:Microsoft )?Windows 98/
WINDOWS_ME = /^(?:Microsoft )?Windows ME/
WINDOWS_NT3 = /^(?:Microsoft )?Windows NT 3/
WINDOWS_NT4 = /^(?:Microsoft )?Windows NT 4/
WINDOWS_2000 = /^(?:Microsoft )?Windows 2000/
WINDOWS_XP = /^(?:Microsoft )?Windows XP/
WINDOWS_2003 = /^(?:Microsoft )?Windows 2003/
WINDOWS_VISTA = /^(?:Microsoft )?Windows Vista/
WINDOWS_2008 = /^(?:Microsoft )?Windows 2008/
WINDOWS_7 = /^(?:Microsoft )?Windows 7/
WINDOWS_2012 = /^(?:Microsoft )?Windows 2012/
WINDOWS_8 = /^(?:Microsoft )?Windows 8/
WINDOWS_81 = /^(?:Microsoft )?Windows 8\.1/
WINDOWS_10 = /^(?:Microsoft )?Windows 10/
LINUX = /^Linux/i
2014-05-28 19:40:09 +00:00
MAC_OSX = /^(?:Apple )?Mac OS X/
FREEBSD = /^FreeBSD/
NETBSD = /^NetBSD/
OPENBSD = /^OpenBSD/
VMWARE = /^VMware/
2014-05-28 19:40:09 +00:00
ANDROID = /^(?:Google )?Android/
APPLE_IOS = /^(?:Apple )?iOS/
end
end
end
#
# Global constants
#
# Licenses
MSF_LICENSE = "Metasploit Framework License (BSD)"
GPL_LICENSE = "GNU Public License v2.0"
BSD_LICENSE = "BSD License"
ARTISTIC_LICENSE = "Perl Artistic License"
UNKNOWN_LICENSE = "Unknown License"
LICENSES =
2013-08-30 21:28:33 +00:00
[
MSF_LICENSE,
GPL_LICENSE,
BSD_LICENSE,
ARTISTIC_LICENSE,
UNKNOWN_LICENSE
]