Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/lib/msf/core/constants.rb
Views: 11779
# -*- coding: binary -*-1###2#3# This file contains constants that are referenced by the core4# framework and by framework modules.5#6###78module Msf910#11# Module types12#13MODULE_ANY = '_any_'14MODULE_ENCODER = 'encoder'15MODULE_EXPLOIT = 'exploit'16MODULE_NOP = 'nop'17MODULE_AUX = 'auxiliary'18MODULE_PAYLOAD = 'payload'19MODULE_POST = 'post'20MODULE_EVASION = 'evasion'21MODULE_TYPES =22[23MODULE_ENCODER,24MODULE_PAYLOAD,25MODULE_EXPLOIT,26MODULE_NOP,27MODULE_POST,28MODULE_AUX,29MODULE_EVASION30]3132#33# Module rankings34#35ManualRanking = 036LowRanking = 10037AverageRanking = 20038NormalRanking = 30039GoodRanking = 40040GreatRanking = 50041ExcellentRanking = 60042RankingName =43{44ManualRanking => "manual",45LowRanking => "low",46AverageRanking => "average",47NormalRanking => "normal",48GoodRanking => "good",49GreatRanking => "great",50ExcellentRanking => "excellent"51}5253#54# Stability traits55#5657# Module should not crash the service.58CRASH_SAFE = 'crash-safe'59# Module may crash the service, but the service restarts.60CRASH_SERVICE_RESTARTS = 'crash-service-restarts'61# Module may crash the service, and the service remains down.62CRASH_SERVICE_DOWN = 'crash-service-down'63# Module may crash the OS, but the OS restarts.64CRASH_OS_RESTARTS = 'crash-os-restarts'65# Module may crash the OS, and the OS remains down.66CRASH_OS_DOWN = 'crash-os-down'67# Module may cause a resource (such as a file or data in a database) to be unavailable for the service.68SERVICE_RESOURCE_LOSS = 'service-resource-loss'69# Modules may cause a resource (such as a file) to be unavailable for the OS.70OS_RESOURCE_LOSS = 'os-resource-loss'7172#73# Side-effect traits74#7576# Modules leaves a payload or a dropper on the target machine.77ARTIFACTS_ON_DISK = 'artifacts-on-disk'78# Module modifies some configuration setting on the target machine.79CONFIG_CHANGES = 'config-changes'80# Module leaves signs of a compromise in a log file (Example: SQL injection data found in HTTP log).81IOC_IN_LOGS = 'ioc-in-logs'82# Module may cause account lockouts (likely due to brute-forcing).83ACCOUNT_LOCKOUTS = 'account-lockouts'84# Module may show something on the screen (Example: a window pops up).85SCREEN_EFFECTS = 'screen-effects'86# Module may cause a noise (Examples: audio output from the speakers or hardware beeps).87AUDIO_EFFECTS = 'audio-effects'88# Module may produce physical effects (Examples: the device makes movement or flashes LEDs).89PHYSICAL_EFFECTS = 'physical-effects'9091#92# Reliability93#9495# The module tends to fail to get a session on the first attempt.96FIRST_ATTEMPT_FAIL = 'first-attempt-fail'97# The module is expected to get a shell every time it runs.98REPEATABLE_SESSION = 'repeatable-session'99# The module isn't expected to get a shell reliably (such as only once).100UNRELIABLE_SESSION = 'unreliable-session'101# The module may not execute the payload until an external event occurs. For instance, a cron job, machine restart, user interaction within a GUI element, etc.102EVENT_DEPENDENT = 'event-dependent'103104module HttpClients105IE = "MSIE"106FF = "Firefox"107SAFARI = "Safari"108OPERA = "Opera"109CHROME = "Chrome"110EDGE = "Edge"111GIT = "Git"112GIT_LFS = "Git LFS"113114UNKNOWN = "Unknown"115end116117module OperatingSystems118LINUX = "Linux"119MAC_OSX = "Mac OS X"120WINDOWS = "Windows"121FREEBSD = "FreeBSD"122NETBSD = "NetBSD"123OPENBSD = "OpenBSD"124VMWARE = "VMware"125ANDROID = "Android"126APPLE_IOS = "iOS"127128module VmwareVersions129ESX = "ESX"130ESXI = "ESXi"131end132133module WindowsVersions134NINE5 = "95"135NINE8 = "98"136NT = "NT"137XP = "XP"138TWOK = "2000"139TWOK3 = "2003"140VISTA = "Vista"141TWOK8 = "2008"142TWOK12 = "2012"143SEVEN = "7"144EIGHT = "8"145EIGHTONE = "8.1"146TEN = "10.0"147end148149UNKNOWN = "Unknown"150151module Match152WINDOWS = /^(?:Microsoft )?Windows/153WINDOWS_95 = /^(?:Microsoft )?Windows 95/154WINDOWS_98 = /^(?:Microsoft )?Windows 98/155WINDOWS_ME = /^(?:Microsoft )?Windows ME/156WINDOWS_NT3 = /^(?:Microsoft )?Windows NT 3/157WINDOWS_NT4 = /^(?:Microsoft )?Windows NT 4/158WINDOWS_2000 = /^(?:Microsoft )?Windows 2000/159WINDOWS_XP = /^(?:Microsoft )?Windows XP/160WINDOWS_2003 = /^(?:Microsoft )?Windows 2003/161WINDOWS_VISTA = /^(?:Microsoft )?Windows Vista/162WINDOWS_2008 = /^(?:Microsoft )?Windows 2008/163WINDOWS_7 = /^(?:Microsoft )?Windows 7/164WINDOWS_2012 = /^(?:Microsoft )?Windows 2012/165WINDOWS_8 = /^(?:Microsoft )?Windows 8/166WINDOWS_81 = /^(?:Microsoft )?Windows 8\.1/167WINDOWS_10 = /^(?:Microsoft )?Windows 10/168169LINUX = /^Linux/i170MAC_OSX = /^(?:Apple )?Mac OS X/171FREEBSD = /^FreeBSD/172NETBSD = /^NetBSD/173OPENBSD = /^OpenBSD/174VMWARE = /^VMware/175ANDROID = /^(?:Google )?Android/176APPLE_IOS = /^(?:Apple )?iOS/177end178end179end180181#182# Global constants183#184185# Licenses186MSF_LICENSE = "Metasploit Framework License (BSD)"187GPL_LICENSE = "GNU Public License v2.0"188BSD_LICENSE = "BSD License"189# Location: https://github.com/CoreSecurity/impacket/blob/1dba4c20e0d47ec614521e251d072116f75f3ef8/LICENSE190CORE_LICENSE = "CORE Security License (Apache 1.1)"191ARTISTIC_LICENSE = "Perl Artistic License"192UNKNOWN_LICENSE = "Unknown License"193LICENSES =194[195MSF_LICENSE,196GPL_LICENSE,197BSD_LICENSE,198CORE_LICENSE,199ARTISTIC_LICENSE,200UNKNOWN_LICENSE201]202203204