> For the complete documentation index, see [llms.txt](https://b4zh.gitbook.io/b4zh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://b4zh.gitbook.io/b4zh/pentesting/pentesting-web/sqli.md).

# SQLi

Ténica usada para romper consultas SQL e inyectar código SQL malicioso.

**SQL LEGÍTIMO:**

```sql
SELECT * FROM USERS WHERE username = 'admin' AND password = 'password'
```

**SQLi:**

```sql
SELECT * FROM USERS WHERE username = 'admin' -- -' AND password = 'password'
```

***

[TIPOS DE SQLi](/b4zh/sqli/tipos-de-sqli.md)
