ctf-chal-ji/config/base.sql
2025-09-23 18:59:27 +02:00

17 lines
432 B
SQL

CREATE DATABASE IF NOT EXISTS app;
USE app;
CREATE USER 'ctf'@'%' IDENTIFIED WITH mysql_native_password BY '39gknzLD';
GRANT ALL PRIVILEGES ON app.* TO 'ctf'@'%';
FLUSH PRIVILEGES;
CREATE TABLE users
(
user_id INT PRIMARY KEY AUTO_INCREMENT,
username VARCHAR(25) NOT NULL,
pass VARCHAR(80) NOT NULL
);
-- cleartext pass ? but why of course
INSERT INTO users (user_id,username,pass)
VALUES (0,'admin','X82v7>P./~vC');