<commit_before>##
# This module requires Metasploit: http//metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

require 'msf/core'

class Metasploit3 < Msf::Auxiliary

  include Msf::Exploit::Remote::DCERPC
  include Msf::Exploit::Remote::SMB
  include Msf::Exploit::Remote::SMB::Authenticated

  include Msf::Auxiliary::Scanner
  include Msf::Auxiliary::Report
  include Msf::Auxiliary::AuthBrute

  attr_reader :accepts_bogus_domains

  def proto
    'smb'
  end
  def initialize
    super(
      'Name'           => 'SMB Login Check Scanner',
      'Description'    => %q{
        This module will test a SMB login on a range of machines and
        report successful logins.  If you have loaded a database plugin
        and connected to a database this module will record successful
        logins and hosts so you can track your access.
      },
      'Author'         =>
        [
          'tebo <tebo [at] attackresearch [dot] com>', # Original
          '<NAME>' # Refactoring
          '<NAME>'
        ],
      'References'     =>
        [
          [ 'CVE', '1999-0506'], # Weak password
        ],
      'License'     => MSF_LICENSE,
      'DefaultOptions' =>
        {
          'DB_ALL_CREDS'    => false,
          'BLANK_PASSWORDS' => false,
          'USER_AS_PASS'    => false
        }
    )
    deregister_options('RHOST','USERNAME','PASSWORD')

    @accepts_guest_logins = {}

    @correct_credentials_status_codes = [
      "STATUS_INVALID_LOGON_HOURS",
      "STATUS_INVALID_WORKSTATION",
      "STATUS_ACCOUNT_RESTRICTION",
      "STATUS_ACCOUNT_EXPIRED",
      "STATUS_ACCOUNT_DISABLED",
      "STATUS_ACCOUNT_RESTRICTION",
      "STATUS_PASSWORD_EXPIRED",
      "STATUS_PASSWORD_MUST_CHANGE",
      "STATUS_LOGON_TYPE_NOT_GRANTED"
    ]

    # These are normally advanced options, but for this module they have a<commit_msg>Update smb_login.rb<commit_after>##
# This module requires Metasploit: http//metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

require 'msf/core'

class Metasploit3 < Msf::Auxiliary

  include Msf::Exploit::Remote::DCERPC
  include Msf::Exploit::Remote::SMB
  include Msf::Exploit::Remote::SMB::Authenticated

  include Msf::Auxiliary::Scanner
  include Msf::Auxiliary::Report
  include Msf::Auxiliary::AuthBrute

  attr_reader :accepts_bogus_domains

  def proto
    'smb'
  end
  def initialize
    super(
      'Name'           => 'SMB Login Check Scanner',
      'Description'    => %q{
        This module will test a SMB login on a range of machines and
        report successful logins.  If you have loaded a database plugin
        and connected to a database this module will record successful
        logins and hosts so you can track your access.
      },
      'Author'         =>
        [
          'tebo <tebo [at] attackresearch [dot] com>', # Original
          '<NAME>', # Refactoring
          '<NAME>'
        ],
      'References'     =>
        [
          [ 'CVE', '1999-0506'], # Weak password
        ],
      'License'     => MSF_LICENSE,
      'DefaultOptions' =>
        {
          'DB_ALL_CREDS'    => false,
          'BLANK_PASSWORDS' => false,
          'USER_AS_PASS'    => false
        }
    )
    deregister_options('RHOST','USERNAME','PASSWORD')

    @accepts_guest_logins = {}

    @correct_credentials_status_codes = [
      "STATUS_INVALID_LOGON_HOURS",
      "STATUS_INVALID_WORKSTATION",
      "STATUS_ACCOUNT_RESTRICTION",
      "STATUS_ACCOUNT_EXPIRED",
      "STATUS_ACCOUNT_DISABLED",
      "STATUS_ACCOUNT_RESTRICTION",
      "STATUS_PASSWORD_EXPIRED",
      "STATUS_PASSWORD_MUST_CHANGE",
      "STATUS_LOGON_TYPE_NOT_GRANTED"
    ]

    # These are normally advanced options, but for this module they have a
{'fraction_non_alphanumeric': 0.10387556024255207, 'fraction_numerical': 0.005272871078302136, 'mean_word_length': 2.6375838926174495, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 27, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3267840', 'n_tokens_mistral': 1237, 'n_tokens_neox': 1193, 'n_words': 266}