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.xmlhudson.util.Secretmaster.key
You can find the file
credentials.xmlin $JENKINS_HOME andhudson.util.Secretandmaster.keyin $JENKINS_HOME/secrets -
Place the files in a folder
-
Execute script
python jenx.py /path/to/your/folderor
python jenx.pyThe 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