View g.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: command-demo-2 | |
labels: | |
purpose: demonstrate-command | |
spec: | |
containers: | |
- name: command-demo-container | |
image: debian |
View d.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: nginx | |
spec: | |
containers: | |
- name: nginx | |
image: nginx:1.14.2 | |
ports: | |
- containerPort: 8123 |
View DiscoverT0SPs.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Function for getting an MS Graph Token | |
Function Get-MSGraphToken { | |
<# | |
.DESCRIPTION | |
Requests a token from STS with the MS Graph specified as the resource/intended audience | |
#> | |
[cmdletbinding()] | |
param( | |
[Parameter(Mandatory = $True)] | |
[string] |
View GetACRTasks.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function Get-ARMAPIToken { | |
<# | |
.DESCRIPTION | |
Requests a token from STS with the MS Graph specified as the resource/intended audience | |
#> | |
[cmdletbinding()] | |
param( | |
[Parameter(Mandatory = $True)] | |
[string] | |
$ClientID, |
View psversiontable.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$psversiontable |
View API Abuse to GA.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Granting Global Admin rights by chaining AppRoleAssignment.ReadWrite.All into RoleManagement.ReadWrite.Directory | |
# Helper function to let us parse Azure JWTs: | |
function Parse-JWTtoken { | |
<# | |
.DESCRIPTION | |
Decodes a JWT token. This was taken from link below. Thanks to Vasil Michev. | |
.LINK | |
https://www.michev.info/Blog/Post/2140/decode-jwt-access-and-id-tokens-via-powershell | |
#> |
View AuditAppRoles.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Find dangerous API permissions as a user | |
$AzureTenantID = '<Your tenant ID>' | |
$AccountName = '<Username>@<Domain.com>' | |
$Password = ConvertTo-SecureString '<Your password>' -AsPlainText -Force | |
$Credential = New-Object System.Management.Automation.PSCredential($AccountName, $Password) | |
Connect-AzAccount -Credential $Credential -TenantID $AzureTenantID | |
function Get-AzureGraphToken | |
{ |
View computer-security-groups.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Groups | ||
---|---|---|
Domain Controllers | ||
Read-Only Domain Controllers | ||
Enterprise Domain Controllers | ||
Cloneable Domain Controllers |
View security-groups.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Groups | ||
---|---|---|
Domain Admins | ||
Enterprise Admins | ||
Schema Admins | ||
DNS Admins | ||
Print Operators | ||
Server Operators | ||
Account Operators |
View targets.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Target Principals | ||
---|---|---|
Domain Admins | ||
Enterprise Admins | ||
Schema Admins | ||
DNS Admins | ||
Print Operators | ||
Server Operators | ||
Account Operators | ||
The domain head object |
NewerOlder