Skip to content

Instantly share code, notes, and snippets.

View comprofix's full-sized avatar

Matthew McKinnon comprofix

View GitHub Profile
@comprofix
comprofix / Get-MSIPs.sh
Created November 23, 2025 02:41
Get list of Microsoft 365 IPs
curl -s -H "Accept: application/json" "https://endpoints.office.com/endpoints/Worldwide?ClientRequestId=b10c5ed1-bad1-445f-b386-b919946339a7" | jq -r '.[] | select(.urls and .ips) | .urls[], .ips[]'
@comprofix
comprofix / Get-GoogleIPs.sh
Created November 23, 2025 02:42
Get Google IPs
curl -s -H "Accept: application/json" https://www.gstatic.com/ipranges/cloud.json | jq -r '.prefixes[].ipv4Prefix, .prefixes[].ipv6Prefix | select (. != null)' >> googleips
curl -s -H "Accept: application/json" https://www.gstatic.com/ipranges/goog.json | jq -r '.prefixes[].ipv4Prefix, .prefixes[].ipv6Prefix | select (. != null)' > googleips
@comprofix
comprofix / WindowsPowerShellProfile.ps1
Created November 23, 2025 02:43
Powershell Profile
function reload-profile {
& $profile
}
Function Get-PubIP {
(Invoke-WebRequest -UseBasicParsing http://ifconfig.me/ip).Content
}
Function Get-Zulu {
Get-Date -Format u