Skip to content

Commit ec316bf

Browse files
committed
Use DATABASE when logging in with SQL mixin
1 parent 2d834a3 commit ec316bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/exploits/windows/mssql/mssql_clr_payload.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def initialize(info = {})
5353
end
5454

5555
def check
56-
unless mssql_login_datastore
56+
unless mssql_login_datastore(datastore['DATABASE'])
5757
vprint_status('Invalid SQL Server credentials')
5858
return Exploit::CheckCode::Detected
5959
end
@@ -123,7 +123,7 @@ def is_clr_enabled
123123
end
124124

125125
def exploit
126-
unless mssql_login_datastore
126+
unless mssql_login_datastore(datastore['DATABASE'])
127127
fail_with(Failure::BadConfig, 'Unable to login with the given credentials')
128128
end
129129

0 commit comments

Comments
 (0)