Last active
May 3, 2021 09:23
-
-
Save hi-ko/ce794a70645660c56bdcd6cc20f21127 to your computer and use it in GitHub Desktop.
generate initial password for alfresco admin (by mt and AFaust from discord)
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
#!/usr/bin/python3 | |
import hashlib | |
import sys | |
# import os | |
#hash = hashlib.new('md4', os.environ['ALF_ADMIN_PASS'].encode('utf-16le')).digest() | |
hash = hashlib.new('md4', sys.argv[1].encode('utf-16le')).digest() | |
print(bytes.hex(hash)) |
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
#!/bin/bash | |
echo -n "$1" | iconv -t utf16le | openssl md4 | cut -d ' ' -f 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment