> For the complete documentation index, see [llms.txt](https://notes.dollarboysushil.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://notes.dollarboysushil.com/web-application-pentest/bugforge/sql-injection-sqli/shady-oaks-financial-shadyoaks-005.md).

# Shady Oaks Financial  - shadyoaks-005

Level: Easy\
Points: 10\
Type: Daily Challenge

Found SQLi in search feature

<figure><img src="https://559802299-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8C3FiojCIEtxH7nox2Do%2Fuploads%2FNB3NsgeWJAesW0BhkBYg%2Fimage.png?alt=media&amp;token=ba70f51a-9586-40ee-a35b-936490eaf94b" alt=""><figcaption></figcaption></figure>

`' or 1=1— -`

<figure><img src="https://559802299-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8C3FiojCIEtxH7nox2Do%2Fuploads%2F7uZsGJioNVTzJYlTPklq%2Fimage.png?alt=media&amp;token=e7f361dd-e29c-4d6c-bc22-43a3d89f08d6" alt=""><figcaption></figcaption></figure>

Using union method, we know number of column to be 8\
`' union select 1,2,3,4,5,6,7,8 -- -`<br>

<figure><img src="https://559802299-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8C3FiojCIEtxH7nox2Do%2Fuploads%2FkdYkfexkzRaSWVWTyoQ5%2Fimage.png?alt=media&amp;token=0a707c24-9549-4841-a95b-a6d2a7f47078" alt=""><figcaption></figcaption></figure>

Use this resource to find database name, table name, column name and then dump everything that seems interesting [PayloadsAllTheThings SQLi Cheatsheet](https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/SQL%20Injection#dbms-identification).\
Or visit checkout the solution of [Ottegram ](https://notes.dollarboysushil.com/web-application-pentest/bugforge/sql-injection-sqli/ottergram)for detail step.<br>

After finding necessary datas, we dump the username and password. Password of admin = flag of lab.

<figure><img src="https://559802299-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8C3FiojCIEtxH7nox2Do%2Fuploads%2FFCX31XjPtX9cP0KB4qjT%2Fimage.png?alt=media&amp;token=84ac62a1-6cfe-4d85-bd77-f5eb680ebef7" alt=""><figcaption></figcaption></figure>
