Skip to content

Updated SID lookup to use ldap queries instead of LSA#53

Open
LuemmelSec wants to merge 2 commits intoGhostPack:mainfrom
LuemmelSec:main
Open

Updated SID lookup to use ldap queries instead of LSA#53
LuemmelSec wants to merge 2 commits intoGhostPack:mainfrom
LuemmelSec:main

Conversation

@LuemmelSec
Copy link
Contributor

In almost every engagement the tool is run off a host that is NOT domain joined via runas.
However, the SID resolution failed:
image
image

The code uses SecurityIdentifier.Translate(typeof(NTAccount)) which relies on the local LSA for resolving SIDs. On non-domain joined systems, this fails even with domain credentials via runas.
Hence LDAP based resolution was implemented to overcome these limitations.

image image

Now using ldap queries rather than LSA lookups.
Needed for running from non domain joined systems
Added extraction of NetBIOS domain name from distinguished name.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant