On the road again

This short article shows how to get password from Kenkins credentials

1. Login to Jenkins, navigate to credentials, run Edit:

jenkins_password1.png

2. Open page source code in browser and find encrypted password:

jenkins_password2.png

3. Navigate to http(s)://${JENKINS_ADDRESS}/script.

4. Run following script:

println( hudson.util.Secret.decrypt(
"{AQAAABAAAAAQ0swhsT7nfsC0tkqJXashgfsTWzP7W3K2rnPlUq5vNAI=}") );

5. Run script and get output.

 

Add comment