TODO: Write a project description
TODO: Describe the installation process
# Define the Get-Office365Endpoint function in the current PowerShell session | |
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/janegilring/PSCommunity/master/Office%20365/Get-Office365Endpoint.ps1')) | |
# Retrieve endpoints for Exchange Online and filter on TCP port 25 | |
$ExchangeOnlineEndpoints = Get-Office365Endpoint -Services Exchange | |
$ExchangeOnlineSMTPEndpoints = $ExchangeOnlineEndpoints | Where-Object { | |
$PSItem.ip -and | |
$PSItem.DisplayName -eq 'Exchange Online' -and |
using namespace System.Net.Http | |
#requires -version 7.2 | |
# This is the bootstrap script for Modules | |
[CmdletBinding(PositionalBinding = $false)] | |
param ( | |
#Specify a specific release to use, otherwise 'latest' is used | |
[string]$Release = 'latest', | |
#Specify the user | |
[string]$User = 'JustinGrote', | |
#Specify the repo |
# %UserProfile%\Documents\PowerShell\Microsoft.PowerShell_profile.ps1 | |
Add-Type -AssemblyName WindowsBase | |
Add-Type -AssemblyName PresentationCore | |
if (-not [Windows.Input.Keyboard]::IsKeyDown([System.Windows.Input.Key]::LeftCtrl)) | |
{ | |
Import-Module posh-git | |
Import-Module Pscx | |
} |
# Dictionary to hold superclass names | |
$superClass = @{} | |
# List to hold class names that inherit from container and are allowed to live under computer object | |
$vulnerableSchemas = [System.Collections.Generic.List[string]]::new() | |
# Resolve schema naming context | |
$schemaNC = (Get-ADRootDSE).schemaNamingContext | |
# Enumerate all class schemas |