Skip to content

No connection to MSSQL Server with valid creds #1079

@reybango

Description

@reybango

Describe the bug
When trying to test connection to MS SQL Server using credentials, NetExec returns nothing. The credentials are valid and establish a SQLi session using mssqlclient.py. Adding the --local-auth flag has no effect.

Taking it further and trying to do a rid brute also returned no data.

To Reproduce
Steps to reproduce the behavior i.e.:
Commands:
netexec mssql ip -u username -p password
netexec mssql ip -u username -p password --rid-brute --local-auth

Resulted in:

Returned no data.

Expected behavior
This should've shown a valid connection. For the rid brute, it should've return a list of user names.

NetExec info

  • OS: Kali 6.18.5+kali-amd64
  • Version of nxc: 1.5.0 - Yippie-Ki-Yay - Kali Linux -
  • Installed from: part of the OS

Additional context
Kali is updated and current as of day of this report. Rid brute from Metasploit using admin/mssql/mssql_enum_domain_accounts module works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesPull requests that update a dependency file

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions