Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JS to copy Portal Auth values to your clipboard #4

Open
ryanshoover opened this issue May 16, 2017 · 0 comments
Open

JS to copy Portal Auth values to your clipboard #4

ryanshoover opened this issue May 16, 2017 · 0 comments

Comments

@ryanshoover
Copy link
Owner

If you run this from Chrome's console, you'll get the token and ar_v4 values. You still don't get the session_id value. Is there a way to get that?

var s="# Settings for the wpe-cli integration\nwpe-cli:\n\ttoken: "+/<meta\s+name="csrf-token"\s+content="([^"]+)"\s*\/?>/ig.exec( document.head.innerHTML )[1]+"\n\tar_v4: "+/__ar_v4=([^;]+);/ig.exec( document.cookie )[1];copy(s);console.log(s);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant