News for hackers. Stuff that matters.
Re:Windows code-execution zeroday is under active exploit, M... by asimops on Monday March 23, 2020 @10:03PM (#22671097)
Please keep in mind that you need to localize 'Administrators' to make this work on non english systems. When deploying this, it would be better to replace the name with the groups sid. I am on mobile right now but some fellow hacker can surely provide them.
Re:Windows code-execution zeroday is under active exploit, M... by moepstar on Tuesday March 24, 2020 @03:12AM (#22672728)
Looking up your local Administrator name:

wmic path win32_group where (LocalAccount=true AND SID="S-1-5-32-544") get Name

edit: that's just the name of the local Administrators group, here's how to get the Admin-accountname:

wmic useraccount where (domain='localhostname' and sid like 'S-1-5-21-%%-500') get sid /value

wmic useraccount where (domain='localhostname' and sid='sidfromfirstcommandhere') get name /value

Re:Windows code-execution zeroday is under active exploit, M... by Randor on Tuesday March 24, 2020 @03:52AM (#22672895)
Hmmmm,

That will just return the name of the built-in Administrators account. If you wanted to find all user accounts in the administrators group you could do:

powershell -c "$([ADSI]'WinNT://YOUR_MACHINE_NAME/Administrators,group').psbase.Invoke('Members') | foreach { $_.GetType().InvokeMember('ADspath', 'GetProperty', $null, $_, $null)}"