hacktricks/pentesting/pentesting-web/h2-java-sql-database.md

17 lines
579 B
Markdown

# H2 - Java SQL database
Official page: [https://www.h2database.com/html/main.html](https://www.h2database.com/html/main.html)
### Tricks
You can indicate a **non-existent name a of database** in order to **create a new database without valid credentials** \(**unauthenticated**\):
![](../../.gitbook/assets/image%20%28342%29.png)
Or if you know that for example a **mysql is running** and you know the **database name** and the **credentials** for that database, you can just access it:
![](../../.gitbook/assets/image%20%2837%29.png)
_**Tricks from box Hawk of HTB.**_