-DomainController using current security context (no mandatory creds) #62
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi @nullbind , hope you're fine.
Dealing with the issue #61, i made a PR. I updated the function
Get-DomainObject
.What you can do now, for example:
Basically if no credentials are supplied, it will used the current security context to authenticate against the DC - may be useful if for example during an engagement, you only have the hash of the domain user you are using for your enumeration (and you spawned a session for ex with mimikatz pth).
Otherwise it will authenticate thanks to the credentials supplied as arguments. Note that you can specify the format IP:PORT if you wish to target a pivot machine.
Hope all of this makes sense and will be helpful.
Let me know if you wish more information!
Have a nice day,