The TryHackMe SQL Injection Introduction Room is a free room from TryHackMe which explains the basics of SQL injection. The room is available at: https://tryhackme.com/room/sqlinjectionintroduction
1.1 What SQL statement combines results from two SELECT queries into one result set?
Answer: Union
1.2 What built-in database contains metadata about all other databases, tables, and columns in MySQL?
Answer: information_schema
2.1 What character is commonly used as a first test when probing for SQL Injection?
Answer: ‘
2.2 What type of SQL Injection returns results directly in the web page?
Answer: In-Band
3.1 What subtype of In-Band SQLi relies on database error messages to extract information?
Answer: Error-Based
3.2 What SQL function returns the name of the current database in MySQL?
Answer: database()
4.1 What boolean condition is commonly injected to make a WHERE clause always evaluate to true?
Answer: 1=1
5.1 What MySQL function causes a deliberate time delay in a query’s response?
Answer: SLEEP
6.1 What protocol beginning with D is commonly used to exfiltrate data in Out-of-Band SQLi?
Answer: DNS
6.2 What MSSQL stored procedure can be used to trigger DNS lookups for data exfiltration?
Answer: xp_dirtree
7.1 What is the primary and most effective defence against SQL Injection?
Answer: Prepared Statements
8.1 What is the flag after completing Level 1?
Answer: THM{SQL_INJECTION_3840}


8.2 What is the flag after completing Level 2?
Answer: THM{SQL_INJECTION_9581}

8.3 What is the flag after completing Level 3?
Answer: THM{SQL_INJECTION_1093}

8.4 What is the flag after completing Level 4?
Answer: THM{SQL_INJECTION_MASTER}
