# Bookmarklet

A bookmarklet is *a bookmark stored in a web browser that contains JavaScript commands that add new features to* the browser.

They are stored as the [URL](https://en.wikipedia.org/wiki/Uniform_Resource_Locator) of a bookmark in a [web browser](https://en.wikipedia.org/wiki/Web_browser) or as a [hyperlink](https://en.wikipedia.org/wiki/Hyperlink) on a [web page](https://en.wikipedia.org/wiki/Web_page). Bookmarklets are usually small snippets of [JavaScript](https://en.wikipedia.org/wiki/JavaScript) executed when the user clicks on them. When clicked, bookmarklets can perform a wide variety of operations, such as running a search query from selected text or extracting data from a table.

The code given here is a variation of the Vignere Cipher.

Upon clicking this bookmarklet, the code is copied.

<figure><img src="/files/jwhXKScHE3z1Kyh9DDVV" alt=""><figcaption></figcaption></figure>

I then simply run the code in the console to get flag.

<figure><img src="/files/02n1ZqDGaL4EkJodYkH5" alt=""><figcaption></figcaption></figure>


---

# 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://hexisanoob.gitbook.io/hexisanoob/ctf-challenge-learnings/pico-ctf-2024/web-exploitation/bookmarklet.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.
