Skip to content

Commit

Permalink
Land #19069, Update create session default values
Browse files Browse the repository at this point in the history
  • Loading branch information
zgoldman-r7 committed Apr 9, 2024
2 parents 0b610e4 + 8a2b092 commit b8176e1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion modules/auxiliary/scanner/mssql/mssql_login.rb
Expand Up @@ -36,7 +36,8 @@ def initialize
)
register_options([
Opt::Proxies,
OptBool.new('TDSENCRYPTION', [ true, 'Use TLS/SSL for TDS data "Force Encryption"', false])
OptBool.new('TDSENCRYPTION', [ true, 'Use TLS/SSL for TDS data "Force Encryption"', false]),
OptBool.new('CreateSession', [false, 'Create a new session for every successful login', false])
])

options_to_deregister = %w[PASSWORD_SPRAY]
Expand Down
1 change: 1 addition & 0 deletions modules/auxiliary/scanner/mysql/mysql_login.rb
Expand Up @@ -36,6 +36,7 @@ def initialize(info = {})
register_options(
[
Opt::Proxies,
OptBool.new('CreateSession', [false, 'Create a new session for every successful login', false])
])

options_to_deregister = %w[PASSWORD_SPRAY]
Expand Down
1 change: 1 addition & 0 deletions modules/auxiliary/scanner/postgres/postgres_login.rb
Expand Up @@ -45,6 +45,7 @@ def initialize(info = {})
File.join(Msf::Config.data_directory, "wordlists", "postgres_default_user.txt") ]),
OptPath.new('PASS_FILE', [ false, "File containing passwords, one per line",
File.join(Msf::Config.data_directory, "wordlists", "postgres_default_pass.txt") ]),
OptBool.new('CreateSession', [false, 'Create a new session for every successful login', false])
])

options_to_deregister = %w[SQL PASSWORD_SPRAY]
Expand Down
3 changes: 2 additions & 1 deletion modules/auxiliary/scanner/smb/smb_login.rb
Expand Up @@ -61,7 +61,8 @@ def initialize
OptBool.new('PRESERVE_DOMAINS', [ false, 'Respect a username that contains a domain name.', true ]),
OptBool.new('RECORD_GUEST', [ false, 'Record guest-privileged random logins to the database', false ]),
OptBool.new('DETECT_ANY_AUTH', [false, 'Enable detection of systems accepting any authentication', false]),
OptBool.new('DETECT_ANY_DOMAIN', [false, 'Detect if domain is required for the specified user', false])
OptBool.new('DETECT_ANY_DOMAIN', [false, 'Detect if domain is required for the specified user', false]),
OptBool.new('CreateSession', [false, 'Create a new session for every successful login', false])
]
)

Expand Down

0 comments on commit b8176e1

Please sign in to comment.