# Bypassing MFA

## Overview

Since the engagement is an **External Pentest** there usually isn't any kind of social engineering or interactions with the users to bypass **MFA.** This leaves us limited in our attack options

[MFASweep](https://github.com/dafthack/MFASweep) and[ ropci ](https://github.com/wunderwuzzi23/ropci) are great tools to bypass MFA. **Exchange Web Services (EWS)** can be used instead of **Outlook** to authenticate to O365 by using [MailSniper](https://github.com/dafthack/MailSniper).

<figure><img src="/files/xqXqsmssts4oMhPN7ueS" alt=""><figcaption><p>MFASweep Example</p></figcaption></figure>

{% hint style="info" %}
MailSniper will parse through the emails hunting passwords down
{% endhint %}

<figure><img src="/files/6XQAmGmXpBueJRZLGSGj" alt=""><figcaption><p>MailSniper Example</p></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://pnpt.adot8.com/external-pentest-playbook/attacking-login-portals/bypassing-mfa.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.
