-
Notifications
You must be signed in to change notification settings - Fork 786
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
3165 credentials generator #3366
Conversation
7101967
to
77530a1
Compare
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.
Looks pretty good -- I had a few questions/comments
|
||
powershell_credentials: List[Credentials] = [] | ||
|
||
# Note that if no secrets are provided, generate_brute_force_credentials() will generate return |
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.
# Note that if no secrets are provided, generate_brute_force_credentials() will generate return | |
# Note that if no secrets are provided, generate_brute_force_credentials() will return |
input_credentials = [Credentials(identity=i, secret=None) for i in INPUT_IDENTITIES] | ||
generated_credentials = generate_powershell_credentials(input_credentials, False) | ||
|
||
assert len(generated_credentials) == 4 |
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.
It might be cool to be able to assert that, say, the cached credentials are not part of the generated credentials
from common.credentials import Credentials, LMHash, NTHash, Password, Secret, Username | ||
|
||
TEST_DOMAIN = "TEST-DOMAIN" | ||
LOCAL_USER = "localuser" |
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.
Should we have a test for if the local username is already in the propagation credentials? With/without the domain?
77530a1
to
f681f95
Compare
f681f95
to
3ccf483
Compare
What does this PR do?
Issue #3165
Adds a credentials generator for powershell plugin
PR Checklist
Testing Checklist