2012-06-29 05:18:28 +00:00
|
|
|
# -*- coding: binary -*-
|
2005-05-21 17:57:00 +00:00
|
|
|
###
|
|
|
|
#
|
2010-02-14 15:04:39 +00:00
|
|
|
# This file contains constants that are referenced by the core
|
2005-05-21 17:57:00 +00:00
|
|
|
# framework and by framework modules.
|
|
|
|
#
|
|
|
|
###
|
|
|
|
|
|
|
|
module Msf
|
|
|
|
|
|
|
|
#
|
|
|
|
# Module types
|
|
|
|
#
|
2005-05-22 07:14:16 +00:00
|
|
|
MODULE_ANY = '_any_'
|
2005-05-21 17:57:00 +00:00
|
|
|
MODULE_ENCODER = 'encoder'
|
|
|
|
MODULE_EXPLOIT = 'exploit'
|
|
|
|
MODULE_NOP = 'nop'
|
2006-04-27 05:16:03 +00:00
|
|
|
MODULE_AUX = 'auxiliary'
|
2005-05-22 07:23:25 +00:00
|
|
|
MODULE_PAYLOAD = 'payload'
|
2010-12-27 17:46:42 +00:00
|
|
|
MODULE_POST = 'post'
|
2010-02-14 15:04:39 +00:00
|
|
|
MODULE_TYPES =
|
2013-08-30 21:28:33 +00:00
|
|
|
[
|
|
|
|
MODULE_ENCODER,
|
|
|
|
MODULE_PAYLOAD,
|
|
|
|
MODULE_EXPLOIT,
|
|
|
|
MODULE_NOP,
|
|
|
|
MODULE_POST,
|
|
|
|
MODULE_AUX
|
|
|
|
]
|
2005-05-21 17:57:00 +00:00
|
|
|
|
2005-07-13 18:06:12 +00:00
|
|
|
#
|
|
|
|
# Module rankings
|
|
|
|
#
|
2006-09-12 05:34:58 +00:00
|
|
|
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"
|
|
|
|
}
|
2005-07-13 18:06:12 +00:00
|
|
|
|
2009-12-29 23:48:45 +00:00
|
|
|
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"
|
2009-12-29 23:48:45 +00:00
|
|
|
|
2013-08-30 21:28:33 +00:00
|
|
|
UNKNOWN = "Unknown"
|
2009-12-29 23:48:45 +00:00
|
|
|
end
|
2014-04-01 15:14:58 +00:00
|
|
|
|
2009-12-29 23:48:45 +00:00
|
|
|
module OperatingSystems
|
2013-08-30 21:28:33 +00:00
|
|
|
LINUX = "Linux"
|
|
|
|
MAC_OSX = "Mac OS X"
|
2014-04-01 15:14:58 +00:00
|
|
|
WINDOWS = "Windows"
|
2013-08-30 21:28:33 +00:00
|
|
|
FREEBSD = "FreeBSD"
|
|
|
|
NETBSD = "NetBSD"
|
|
|
|
OPENBSD = "OpenBSD"
|
|
|
|
VMWARE = "VMware"
|
2014-04-01 15:14:58 +00:00
|
|
|
ANDROID = "Android"
|
|
|
|
APPLE_IOS = "iOS"
|
2012-02-16 03:25:56 +00:00
|
|
|
|
2013-08-30 21:28:33 +00:00
|
|
|
module VmwareVersions
|
|
|
|
ESX = "ESX"
|
|
|
|
ESXI = "ESXi"
|
|
|
|
end
|
2009-12-29 23:48:45 +00:00
|
|
|
|
2013-08-30 21:28:33 +00:00
|
|
|
module WindowsVersions
|
2014-05-28 19:35:22 +00:00
|
|
|
NINE5 = "95"
|
|
|
|
NINE8 = "98"
|
2013-08-30 21:28:33 +00:00
|
|
|
NT = "NT"
|
|
|
|
XP = "XP"
|
|
|
|
TWOK = "2000"
|
|
|
|
TWOK3 = "2003"
|
|
|
|
VISTA = "Vista"
|
|
|
|
TWOK8 = "2008"
|
2014-04-01 15:14:58 +00:00
|
|
|
TWOK12 = "2012"
|
2013-08-30 21:28:33 +00:00
|
|
|
SEVEN = "7"
|
2013-11-13 17:38:27 +00:00
|
|
|
EIGHT = "8"
|
2014-04-01 15:14:58 +00:00
|
|
|
EIGHTONE = "8.1"
|
2016-07-27 17:43:19 +00:00
|
|
|
TEN = "10.0"
|
2013-08-30 21:28:33 +00:00
|
|
|
end
|
2009-12-29 23:48:45 +00:00
|
|
|
|
2013-08-30 21:28:33 +00:00
|
|
|
UNKNOWN = "Unknown"
|
2014-05-28 19:35:22 +00:00
|
|
|
|
|
|
|
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/
|
2016-07-27 17:43:19 +00:00
|
|
|
WINDOWS_10 = /^(?:Microsoft )?Windows 10/
|
2014-05-28 19:35:22 +00:00
|
|
|
|
|
|
|
LINUX = /^Linux/i
|
2014-05-28 19:40:09 +00:00
|
|
|
MAC_OSX = /^(?:Apple )?Mac OS X/
|
2014-05-28 19:35:22 +00:00
|
|
|
FREEBSD = /^FreeBSD/
|
|
|
|
NETBSD = /^NetBSD/
|
|
|
|
OPENBSD = /^OpenBSD/
|
|
|
|
VMWARE = /^VMware/
|
2014-05-28 19:40:09 +00:00
|
|
|
ANDROID = /^(?:Google )?Android/
|
2014-05-28 19:35:22 +00:00
|
|
|
APPLE_IOS = /^(?:Apple )?iOS/
|
|
|
|
end
|
2009-12-29 23:48:45 +00:00
|
|
|
end
|
2005-05-21 17:57:00 +00:00
|
|
|
end
|
2006-01-16 02:59:47 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Global constants
|
|
|
|
#
|
|
|
|
|
|
|
|
# Licenses
|
2008-09-26 04:25:44 +00:00
|
|
|
MSF_LICENSE = "Metasploit Framework License (BSD)"
|
2006-01-21 22:10:20 +00:00
|
|
|
GPL_LICENSE = "GNU Public License v2.0"
|
2006-05-06 17:13:22 +00:00
|
|
|
BSD_LICENSE = "BSD License"
|
2006-01-21 22:10:20 +00:00
|
|
|
ARTISTIC_LICENSE = "Perl Artistic License"
|
|
|
|
UNKNOWN_LICENSE = "Unknown License"
|
2006-10-20 14:24:02 +00:00
|
|
|
LICENSES =
|
2013-08-30 21:28:33 +00:00
|
|
|
[
|
|
|
|
MSF_LICENSE,
|
|
|
|
GPL_LICENSE,
|
|
|
|
BSD_LICENSE,
|
|
|
|
ARTISTIC_LICENSE,
|
|
|
|
UNKNOWN_LICENSE
|
2016-07-27 17:43:19 +00:00
|
|
|
]
|