nyxgeek / o365recon Goto Github PK
View Code? Open in Web Editor NEWretrieve information via O365 and AzureAD with a valid cred
retrieve information via O365 and AzureAD with a valid cred
I observe that this script does not work externally if you have an MFA enabled.
Checking for MsOnline Module ... DONE
Connecting to O365 ... Could not connect to O365. Have you run Install-Module MsOnline ?
Exception: C:\Temp\o365recon-master\o365recon.ps1:76
Line |
76 | Connect-MsolService -ErrorAction Stop -Credential $userauth > $nu …
| ~~~~~~~~~~~~~~~~~~~
| The term 'Connect-MsolService' is not recognized as the name of a cmdlet, function, script file, or
| operable program. Check the spelling of the name, or if a path was included, verify that the path is
| correct and try again.
If I run inside my network with valid credentials it does extract all the information from O365.
It will also not work if using an admin account with double MFA, as it will ask for additional verification.
I understand that this script will work externally for credentials that do not have MFA enabled.
:)
I wanted to see if the script works on macOS but it doesn't:
PS /Users/xxx/Documents/github/o365recon> .\o365recon.ps1 -azure
Connecting to Microsoft services:
Checking for MsOnline Module ... DONE
Checking for AzureAD Module ... DONE
Connecting to AzureAD with Connect-AzureADCould not connect to AzureAD.
Exception: /Users/xxx/Documents/github/o365recon/o365recon.ps1:56
Line |
56 | Connect-AzureAD -Credential $userauth > $null
| ~~~~~~~~~~~~~~~
| The term 'Connect-AzureAD' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the
| spelling of the name, or if a path was included, verify that the path is correct and try again.
To run the script I first installed powershell using:
brew install --cask powershell
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.