Pennyw0rth / NetExec

The Network Execution Tool
https://netexec.wiki/
BSD 2-Clause "Simplified" License
2.91k stars 310 forks source link

Fix admin check in mssql_priv #390

Closed NeffIsBack closed 2 months ago

NeffIsBack commented 2 months ago

As explained in https://github.com/Pennyw0rth/NetExec/issues/385#issuecomment-2254169580 with the latest updated of the mssql_priv module, the is_admin_user() function incorrectly evaluated the string "NULL" as True and therefore marked the user as admin. This fixes the issue (reported in #385)