Skip to content

In this video, I covered what SQL is, some basic commands of MySQL, how to perform SQL injection to log in as a user, and how to use UINON attack (a branch of SQL injection) to access sensitive data 🎃! At the end of the video, I also went over how to prevent SQL injection to protect your database! Just like always, this video is for educational …

Notifications You must be signed in to change notification settings

chi-wei-lien/sql-injection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎃 SQL Injection Demo

Watch the Video First!

Video Link: https://www.youtube.com/watch?v=wSOlJ_duQU4&t=110s
In this video, I covered what SQL is, some basic commands of MySQL, how to perform SQL injection to log in as a user, and how to use UINON attack (a branch of SQL injection) to access sensitive data 🎃! At the end of the video, I also went over how to prevent SQL injection to protect your database! Just like always, this video is for educational purposes. If you do any illegal stuff you will get arrested 🚓!

Instalation

Install MySQL:

Clone the Repository:

git clone [email protected]:chi-wei-lien/sql-injection.git

Install packages

npm install

Create a .env file in the outside of "views" and it should look like this
.env

DB_PASS=[your database password]
PORT=3000
MY_SECRET=[you can create any secret you want - this is for express session]

Login into your MySQL in a separate tab on your terminal (I prefer iterm)

mysql -u root -p;

Create a table called students (varchar(255) means length with 255 characters)

CREATE TABLE Students (
    studentID int,
	FirstName varchar(255),
    LastName varchar(255),
	University Name(255)
);

Insert some student data like this

INSERT INTO Students VALUES (3124, "Wilson", "Lien", "Cool University");

Create another table called Users

CREATE TABLE Users (
	username varchar(255),
    password varchar(255)
);

Insert some users data like this

INSERT INTO Users VALUES ("wilson", "1234@cool");

Run the demo web!

node index.js

If you have nodemon installed, you can also run

nodemon index.js

Go to "http://localhost:3000/" in your browser

📚 EXTRA RESOURCES

😃 WHO AM I:

I’m Wilson, a college freshman interested in making videos on Youtube and cybersecurity. I’m trying to upload a video every week that is related to cybersecurity to help people get started with this field. To be honest, I’m not at all an expert in this field, but I enjoy learning while sharing my knowledge! If you think I said anything wrong in my videos feel free to comment down below!

📞 CONTACT:

About

In this video, I covered what SQL is, some basic commands of MySQL, how to perform SQL injection to log in as a user, and how to use UINON attack (a branch of SQL injection) to access sensitive data 🎃! At the end of the video, I also went over how to prevent SQL injection to protect your database! Just like always, this video is for educational …

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published