# GIT!

**Category:** WEB - **Points:** 100 - **Solves:**\
**Description:**\
Best practices have not been used on this site. Find the administrator password.\
Link : <https://sso.hackday.fr/>

**Solution:**\
To solve this challenge you need to find the flag.\
So to find the flag, we need to find a file who contain confidential infos.\
To do that, we need to do some research. After some website and differents test, we can find that there is a *.git* file stored on the website server.\
We can find this file, but we can't find any interesting infos in them.\
![image](https://user-images.githubusercontent.com/91023285/163720878-814c8f92-c87f-4b41-b386-da2446c7316d.png)\
Now we need to find how to download the file on our computer to analyse them.\
A tool to dump a git repo from a website is available [here](https://github.com/arthaud/git-dumper)\
With this [tool](https://github.com/arthaud/git-dumper) we can download the .git file and all the website files.\
In the downloaded file we have the *login.php* file and the source code contain a credential verification :\
![image](https://user-images.githubusercontent.com/91023285/163721057-097e3048-fbaa-4525-8555-f9912af1ef84.png)\
With these info, we can connect on the login panel and we are redirected to webpage who displayed the flag.

<details>

<summary>🚩 FLAG</summary>

```
  HACKDAY{6549871545354dsfrgOIHIGIGIUFYGUTFIHI}
```

</details>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://writeups.ayweth20.com/2022/hackday-qualifications/web/git.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
