Tool to decrypt Hudson/Jenkins usernames and passwords
Tool to decrypt Hudson/Jenkins usernames and passwords
Why not?
This script needs Python 3.x. Get it here: Python website. Alternatively, you can use Conda (it’s much cooler): Anaconda website
pip install -r requirements.txt
Take the necessary files from your Hudson/Jenkins installation.
You need three files:
credentials.xml
hudson.util.Secret
master.key
You can find the file credentials.xml
in $JENKINS_HOME and hudson.util.Secret
and master.key
in $JENKINS_HOME/secrets
Place the files in a folder
Execute script
python jenx.py /path/to/your/folder
or
python jenx.py
The second one assumes the files are in the same directory with the script.
Read the output. It should contain the usernames and passwords.
Only works with credentials 1.x SystemCredentialsProvider plugin.
It’s a portmanteau of Jenkins and jinx (curse).
I’m not liable for any damages/loss of information/privacy breach attributed to this or anything that happens to you, esp. if you are breaking laws in your country.
MIT