NetExec icon indicating copy to clipboard operation
NetExec copied to clipboard

Domain format in databases

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

Describe the bug When adding credentials to the smb.db database, the domain is correctly inserted as: sequel.htb. However, with the same command via WinRM, the domain appears as SEQUEL. This should be standardized to always have: sequel.htb.

SMB :

> 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|test|plaintext|

WinRM :

> nxc winrm 10.10.11.51 -u 'ryan' -p 'test'

WINRM       10.10.11.51     5985   DC01             [*] Windows 10 / Server 2019 Build 17763 (name:DC01) (domain:sequel.htb)
WINRM       10.10.11.51     5985   DC01             [+] sequel.htb\ryan:test (admin)
> sqlite3 winrm.db

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

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

Humm yeah the whole database functionality would probably need an overhaul...

NeffIsBack avatar Mar 04 '25 01:03 NeffIsBack

Looking at @Marshall-Hallenbeck perhaps? 😁

NeffIsBack avatar Mar 04 '25 01:03 NeffIsBack