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

16 lines
569 B
Markdown
Raw Normal View History

# H2 - Java SQL database
Official page: [https://www.h2database.com/html/main.html](https://www.h2database.com/html/main.html)
### Tricks
2021-11-30 16:46:07 +00:00
You can indicate a **non-existent name a of database** in order to **create a new database without valid credentials** (**unauthenticated**):
![](<../../.gitbook/assets/image (258).png>)
2021-11-30 16:46:07 +00:00
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 (259).png>)
_**Tricks from box Hawk of HTB.**_