-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CoerceAndRelayNTLMtoADCS Post Processing #1058
Conversation
…esting of end nodes in NTLM integration test
…ED-5029 # Conflicts: # packages/cue/bh/ad/ad.cue # packages/go/analysis/ad/adcs.go # packages/go/analysis/ad/ntlm.go # packages/go/graphschema/ad/ad.go # packages/javascript/bh-shared-ui/src/graphSchema.ts
…tab depth in if blocks
# Conflicts: # packages/cue/bh/ad/ad.cue # packages/go/analysis/ad/ntlm.go # packages/go/graphschema/ad/ad.go # packages/javascript/bh-shared-ui/src/graphSchema.ts
# Conflicts: # packages/go/analysis/ad/adcscache.go # packages/go/graphschema/ad/ad.go # packages/javascript/bh-shared-ui/src/graphSchema.ts
if enterpriseCertAuthorities, err := FetchNodesByKind(ctx, db, ad.EnterpriseCA); err != nil { | ||
return fmt.Errorf("failed fetching enterpriseCA nodes: %w", err) | ||
} else if certTemplates, err := FetchNodesByKind(ctx, db, ad.CertTemplate); err != nil { | ||
return fmt.Errorf("failed fetching certTemplate nodes: %w", err) | ||
} else if domains, err := FetchNodesByKind(ctx, db, ad.Domain); err != nil { | ||
return fmt.Errorf("failed fetching domain nodes: %w", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure which is faster, 3 separate fetch nodes by kind or 1 fetch with these 3 kinds and then loop the results and have a switch case based on the node kind and the 3 separate actions as either smaller functions or just toss each of the below blocks into the case. Might be 6 one way, half a dozen the other but thought I'd toss the idea out
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM
Description
Describe your changes in detail
Motivation and Context
This PR addresses: https://specterops.atlassian.net/browse/BED-5029
How Has This Been Tested?
Integration tests created to test specific harnesses
Screenshots (optional):
Types of changes
Checklist: