CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
Path: blob/master/lib/metasploit/framework/login_scanner/ntlm.rb
Views: 1904
require 'metasploit/framework/login_scanner'12module Metasploit3module Framework4module LoginScanner56# This Concern provides the basic accessors and validations7# for protocols that require the use of NTLM for Authentication.8module NTLM9extend ActiveSupport::Concern10include ActiveModel::Validations1112included do13# @!attribute send_lm14# @return [Boolean] Whether to always send the LANMAN response(except if using NTLM2 Session)15attr_accessor :send_lm1617# @!attribute send_ntlm18# @return [Boolean] Whether to use NTLM responses19attr_accessor :send_ntlm2021# @!attribute send_spn22# @return [Boolean] Whether to support SPN for newer Windows OSes23attr_accessor :send_spn2425# @!attribute use_lmkey26# @return [Boolean] Whether to negotiate with a LANMAN key27attr_accessor :use_lmkey2829# @!attribute send_lm30# @return [Boolean] Whether to force the use of NTLM2 session31attr_accessor :use_ntlm2_session3233# @!attribute send_lm34# @return [Boolean] Whether to force the use of NTLMv2 instead of NTLM2 Session35attr_accessor :use_ntlmv23637validates :send_lm,38inclusion: { in: [true, false] }3940validates :send_ntlm,41inclusion: { in: [true, false] }4243validates :send_spn,44inclusion: { in: [true, false] }4546validates :use_lmkey,47inclusion: { in: [true, false] }4849validates :use_ntlm2_session,50inclusion: { in: [true, false] }5152validates :use_ntlmv2,53inclusion: { in: [true, false] }54end5556end5758end59end60end616263