# Intro 3

## Assignment

We've been given just a password field. We need to find the correct password in order to complete this challenge.

## Analyze

In the name of challnge is "Javascript" so lets maybe take a look on page source code if we can find anything interesting. After opening source code by pressing <mark style="color:orange;">CTRL+U</mark> we can already see at the line 44 the script we've been searching for. Right?

<figure><img src="/files/EuxLcxYqEuyVb0QJ1sZC" alt=""><figcaption><p>line 44</p></figcaption></figure>

Practically yes but we don't know the password yet. Only how it processes the password. It tells us `if(document.getElementById('password').value == correct` this means that it will compare our input with a variable called *correct.* But where do we find the value of the variable correct? We can simply try searching it by pressing <mark style="color:purple;">CTRL+F</mark> and typing *correct* and we get our results.

## Findings

In this walkthrough we learned a little about Javascript, how to quickly search for value using CTRL+F and how to view source code by pressing CTRL+U.


---

# 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://en4ex.gitbook.io/ctf-writeups/defend-the-web/intro-3.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.
