diff --git a/modules/auxiliary/admin/mssql/mssql_exec.rb b/modules/auxiliary/admin/mssql/mssql_exec.rb index 955e1a2a83..25546e797f 100644 --- a/modules/auxiliary/admin/mssql/mssql_exec.rb +++ b/modules/auxiliary/admin/mssql/mssql_exec.rb @@ -42,7 +42,7 @@ class Metasploit3 < Msf::Auxiliary def run connect - if mssql_login + if mssql_login(datastore['MSSQL_USER'], datastore['MSSQL_PASS']) cmd = datastore['CMD'] cmd_exec(cmd) end