Skip to content
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

Added function to get passwords from file in wazuh-passwords-tool.sh[master] #938

Merged
merged 3 commits into from
Nov 8, 2021

Conversation

verdx
Copy link
Contributor

@verdx verdx commented Oct 20, 2021

Related issue
#920

Description

I have added a new parameter, '-f' with which you can give a file in this format:

User: 
    name: wazuh
    password: SecretPassword

User: 
    name: elasticsearch
    password: SecretPassword2

and the passwords of users Wazuh and elasticsearch will be changed to SecretPassword and SecretPassword2 respectively. If you also use the argument '-a' all users will be changed to random passwords except the ones in the file, which will get the given passwords.

....

Logs example

Tests

Tested on Ubuntu18, CentOS7 and CentOS8

@verdx verdx requested review from alberpilot and DFolchA October 20, 2021 10:31
@verdx verdx self-assigned this Oct 20, 2021
Copy link
Contributor

@okynos okynos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Copy link
Contributor

@DFolchA DFolchA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@verdx verdx changed the title Added function to get passwords from file to wazuh-passwords-tool.sh Added function to get passwords from file in wazuh-passwords-tool.sh Oct 22, 2021
@verdx verdx changed the title Added function to get passwords from file in wazuh-passwords-tool.sh Added function to get passwords from file in wazuh-passwords-tool.sh[master] Oct 26, 2021
@verdx verdx force-pushed the 920-password-file-master branch from 25285ad to 1603390 Compare November 3, 2021 12:44
@alberpilot alberpilot merged commit 4d6abe7 into master Nov 8, 2021
@alberpilot alberpilot deleted the 920-password-file-master branch November 8, 2021 15:14
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.

4 participants