NetExec
NetExec copied to clipboard
Domain format in databases
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
Humm yeah the whole database functionality would probably need an overhaul...
Looking at @Marshall-Hallenbeck perhaps? 😁