Skip to content

Commit

Permalink
add regex and doc
Browse files Browse the repository at this point in the history
  • Loading branch information
xanhacks committed Oct 26, 2023
1 parent ab5a37b commit f6a69b4
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions content/en/docs/server-side/sql-injection.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@ toc: true

### SQL Functions

| PostgreSQL | SQLite | MySQL |
| ------------------- | ------------------- | ------------------- |
| `'a'\|\|'b'` | `'a'\|\|'b'` | `'a' 'b'` |
| `POW(3,2)` | `POW(3,2)` | `POW(3,2)` |
| `CHR(65)` | `CHAR(65)` | `CHAR(65)` |
| `ASCII('A')` | `UNICODE('A')` | `ASCII('A')` |
| `SUBSTR('abc',2,1)` | `SUBSTR('abc',2,1)` | `SUBSTR('abc',2,1)` |
| `PG_SLEEP(4)` | *Unknown* | `SLEEP(4)` |
| PostgreSQL | SQLite | MySQL |
| -------------------- | ------------------- | ------------------- |
| `'a'\|\|'b'` | `'a'\|\|'b'` | `'a' 'b'` |
| `POW(3,2)` | `POW(3,2)` | `POW(3,2)` |
| `CHR(65)` | `CHAR(65)` | `CHAR(65)` |
| `ASCII('A')` | `UNICODE('A')` | `ASCII('A')` |
| `SUBSTR('abc',2,1)` | `SUBSTR('abc',2,1)` | `SUBSTR('abc',2,1)` |
| `PG_SLEEP(4)` | *Unknown* | `SLEEP(4)` |
| `SIMILAR TO`, `~` | `REGEXP`, `GLOB` | `REGEXP` |

### Testing & Documentation

Expand All @@ -41,7 +42,7 @@ toc: true
- [MariaDB - Online](https://onecompiler.com/mariadb/)
- [Microsoft SQL Server - Online](https://onecompiler.com/sqlserver)
- [Oracle - Online](https://livesql.oracle.com/)
- SQLite3: run the command `sqlite3`
- SQLite3: run the command `sqlite3` - [Docs](https://www.sqlite.org/docs.html)

## Database enumeration

Expand Down

0 comments on commit f6a69b4

Please sign in to comment.