NetExec icon indicating copy to clipboard operation
NetExec copied to clipboard

Data not saved in mssql.db database

Open qu35t-code opened this issue 11 months ago • 1 comments

Describe the bug It seems that valid MSSQL credentials are not stored in the mssql.db database. This works fine for smb.db but not mssql.

SMB :

> nxc smb 10.10.11.51 -u 'oscar' -p '86LxL'
SMB         10.10.11.51     445    DC01             [*] Windows 10 / Server 2019 Build 17763 x64 (name:DC01) (domain:sequel.htb) (signing:True) (SMBv1:False)
SMB         10.10.11.51     445    DC01             [+] sequel.htb\oscar:86LxL
> sqlite3 smb.db

SQLite version 3.40.1 2022-12-28 14:03:47
Enter ".help" for usage hints.
sqlite> select * from users;
1|sequel.htb|oscar|86LxL|plaintext|

MSSQL :

> nxc mssql 10.10.11.51 -u 'oscar' -p '86LxL'
MSSQL       10.10.11.51     1433   DC01             [*] Windows 10 / Server 2019 Build 17763 (name:DC01) (domain:sequel.htb)
MSSQL       10.10.11.51     1433   DC01             [+] sequel.htb\oscar:86LxL
> sqlite3 mssql.db

SQLite version 3.40.1 2022-12-28 14:03:47
Enter ".help" for usage hints.
sqlite> select * from users;
sqlite>

NetExec info

  • OS: Exegol 😂
  • Version of nxc: 0.0.0 - NeedForSpeed - 1ade4d6
  • Installed from: pipx

qu35t-code avatar Feb 27 '25 16:02 qu35t-code

Yep. Although the db states that MSSQL would be supported, nearly nothing is currently implemented. That includes storing valid credentials

NeffIsBack avatar Mar 04 '25 02:03 NeffIsBack