> For the complete documentation index, see [llms.txt](https://pnpt.adot8.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pnpt.adot8.com/external-pentest-playbook/attacking-login-portals/bypassing-mfa.md).

# 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="https://152155081-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUczSr73L34emqNMDOxDg%2Fuploads%2FBe1ikoH4VHqOYesuMvxD%2Fimage.png?alt=media&amp;token=47f2d2e1-fe86-423f-a513-0829d0cf7ced" alt=""><figcaption><p>MFASweep Example</p></figcaption></figure>

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

<figure><img src="https://152155081-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUczSr73L34emqNMDOxDg%2Fuploads%2Fx26b0Idbvy5oJjTVgvFB%2Fimage.png?alt=media&amp;token=17328007-a8c2-4b02-9117-a6220f3c20e0" alt=""><figcaption><p>MailSniper Example</p></figcaption></figure>
