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"
|
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
|
|
|
|
module OperatingSystems
|
2013-08-30 21:28:33 +00:00
|
|
|
LINUX = "Linux"
|
|
|
|
MAC_OSX = "Mac OS X"
|
|
|
|
WINDOWS = "Microsoft Windows"
|
|
|
|
FREEBSD = "FreeBSD"
|
|
|
|
NETBSD = "NetBSD"
|
|
|
|
OPENBSD = "OpenBSD"
|
|
|
|
VMWARE = "VMware"
|
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
|
|
|
|
NT = "NT"
|
|
|
|
XP = "XP"
|
|
|
|
TWOK = "2000"
|
|
|
|
TWOK3 = "2003"
|
|
|
|
VISTA = "Vista"
|
|
|
|
TWOK8 = "2008"
|
|
|
|
SEVEN = "7"
|
2013-11-13 17:38:27 +00:00
|
|
|
EIGHT = "8"
|
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"
|
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
|
|
|
|
]
|
2010-02-14 15:04:39 +00:00
|
|
|
|