Created
April 18, 2021 08:43
-
-
Save RobinBoers/835425191e2f0c2eaefd7bd202801228 to your computer and use it in GitHub Desktop.
Set the passwor for a user to a line from a big password file (in my case rockyou.txt)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(pwd=$(openssl passwd -1 "$(shuf -n 1 rockyou.txt)"); echo $pwd; echo $pwd) | passwd bob |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment