Microsoft365 Device Code Phishing Framework
Project description
Solenya - M365 Device Code Phishing Framework
Solenya is a cli tool which provides a framework to perform M365 device code phishing. As defined in RFC8628, an attacker can perform a social engineering attack by instructing a target to register a malicious application using a device code.
Prerequisites
By default, Microsoft allows any user to add new applications to their M365 profile. Below, is a screenshot of a fresh deployment of an Azure subscription.
Installation
The package requires Python 3.7 or higher.
Install latest version from PyPI: pip install solenya
Usage
Creating a Workspace
The wsp
command is responsible for initializing the WorkSpace. The tool leverages an SQLite database to store target information. To create a workspace run:
$ sol wsp <client_ID> -t <target_name>
Managing Targets
The target
command can add additional targets and remove or reset existing ones. The command will automatically reach out to Microsoft Online API and create a User Code and a Device Code, which will both be stored in the database.
$ sol target <target_names>
The switch
command switches between active targets in the WorkSpace.
$ sol switch <target_name>
Gathering OAuth Access Tokens
The auth
command is responsible for authenticating targets registered with the WorkSpace. Run the phish
sub command and wait for the your targets to enter the device code on their end.
$ sol auth phish --monitor --all
Once the Refresh and Access tokens are obtained they will be saved to the database. The Access token can be refreshed using the refresh command
.
$ sol auth refresh --all
Dumping Data
Once the target is authenticated the dump
command can be used to dump information from the Graph API.
$ sol dump emails --all
Exporting Targets
The information in the database can be exported using the export
command.
$ sol export --all
Contact
- Contact us at cult.cornholio@gmail.com or open up a new Issue on GitHub.
Acknowledgements
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file solenya-0.1.6.tar.gz
.
File metadata
- Download URL: solenya-0.1.6.tar.gz
- Upload date:
- Size: 16.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21a32ccf0d60b0aa6e0664932b366b782b2d4fdeced7aed317145b30591859c3 |
|
MD5 | a28ea9c816ed13a2ff8689ffbc6cca15 |
|
BLAKE2b-256 | 09085cc105079920d338624c00e368a2310ee6deb49e5c3c3ab2558d356204da |
File details
Details for the file solenya-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: solenya-0.1.6-py3-none-any.whl
- Upload date:
- Size: 28.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1d1837a0944f9c924b3bbbfb5b286fe43009697dba9a5877a1f602d5d3a4a77 |
|
MD5 | dc9f0cc240fe8410e3472698a9ea5a9b |
|
BLAKE2b-256 | 3b1b45f761b047ce27495db53e348c992532ab2f219f9e45eba1a245efd92337 |