manish-

jenkins rough work

Sep 10th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. CRUMB=$(curl -s 'http://localhost:8080/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,":",//crumb)')
  2. curl -H $CRUMB -X POST 'http://localhost:8080/credentials/store/system/domain/_/createCredentials' \
  3. --data-urlencode 'json={
  4. "": "0",
  5. "credentials": {
  6. "scope": "GLOBAL",
  7. "id": "oji",
  8. "username": "root",
  9. "password": "changeme",
  10. "description": "pind",
  11. "$class": "com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl"
  12. }
  13. }’
  14.  
  15.  
  16. curl -X POST -F 'username=admin' -F 'password=something' http://domain.tld/post-to-me.php
  17.  
  18.  
  19. curl -d {"from": "/api", "j_username": "admin", "j_password": "96b463d0eda2499ba474467afe6f9a1c", "Jenkins-Crumb": "9db2c12349ea1bb5bc15827b0623d9b9"} -X POST http://18.219.198.123:8080/login?from=%2F
  20.  
  21.  
  22. curl 'admin:96b463d0eda2499ba474467afe6f9a1c@18.219.198.123:8080/j_acegi_security_check -X POST -d {"from":"","j_username":"admin","j_password":"96b463d0eda2499ba474467afe6f9a1c","Jenkins-Crumb":"60e3578785c249f329f94c194eff1237"}'
  23.  
  24.  
  25. curl -i -X POST \ -H "Content-Type:application/x-www-form-urlencoded" \ -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36" \ -H "Accept:*/*" \ -d "from=/" \ -d "j_username=admin" \ -d "j_password=96b463d0eda2499ba474467afe6f9a1c" \ -d "Jenkins-Crumb= 60e3578785c249f329f94c194eff1237" \ -d "json={ \"from\": \"/\", \"j_username\": \"admin\", \"j_password\": \"96b463d0eda2499ba474467afe6f9a1c\", \"Jenkins-Crumb\": \"60e3578785c249f329f94c194eff1237\" }" \ '18.219.198.123:8080/j_acegi_security_check';
Add Comment
Please, Sign In to add comment