The admin user is later used to create new users, add machines and do all administrative tasks in cyberhex.
Please choose a strong password, because the admin user is one of the main attack vectors of cyberhex.
connect_error) { $success=0; die("Connection failed: " . $conn->connect_error); } $stmt = $conn->prepare("INSERT INTO users (email, username, password,perms) VALUES (?, ?, ?, ?)"); $stmt->bind_param("ssss", $email, $username, $hash, $permissions); $email=htmlspecialchars($_POST["email"]); $username=htmlspecialchars($_POST["username"]); $password=$_POST["password"]; $permissions="1111111111"; $hash=password_hash($password, PASSWORD_BCRYPT); $stmt->execute(); $stmt->close(); $conn->close(); echo('Admin created successfully! Continue installation
'); } ?>