Allow guest login option.

This enables obtaining or maintaining access to properly misconfigured
systems through the Guest account.
bug/bundler_fix
scriptjunkie 2013-11-06 11:28:13 -06:00
parent 5b5ebd6cb5
commit 61e4700832
No known key found for this signature in database
GPG Key ID: E89DE255C921A2C6
1 changed files with 2 additions and 1 deletions

View File

@ -81,6 +81,7 @@ class Metasploit3 < Msf::Exploit::Remote
[
OptBool.new('DB_REPORT_AUTH', [true, "Report an auth_note upon a successful connection", true]),
OptBool.new('MOF_UPLOAD_METHOD', [true, "Use WBEM instead of RPC, ADMIN$ share will be mandatory. ( Not compatible with Vista+ )", false]),
OptBool.new('ALLOW_GUEST', [true, "Keep trying if only given guest access", false]),
OptString.new('SERVICE_FILENAME', [false, "Filename to to be used on target for the service binary",nil])
], self.class)
end
@ -93,7 +94,7 @@ class Metasploit3 < Msf::Exploit::Remote
print_status("Authenticating to #{smbhost} as user '#{splitname(datastore['SMBUser'])}'...")
smb_login()
if (not simple.client.auth_user)
if not simple.client.auth_user and not datastore['ALLOW_GUEST']
print_line(" ")
print_error(
"FAILED! The remote host has only provided us with Guest privileges. " +