Skip to main content

Recently Updated Pages

Get all content from all KeyVault

Azure - Cheatsheet Security Auditing

Show-AzureKeyVaultContent -All Resource: https://hausec.com/2020/01/31/attacking-azure-azure-ad...

Updated 1 year ago by Ryan

Create a new user

Azure - Cheatsheet Create Azure Objects

New-AzureUser -Username 'test@test.com' -Password reallyAwesomePassword123!  

Updated 1 year ago by Ryan

MicroBurst

Azure - Cheatsheet Security Auditing

git clone git@github.com:NetSPI/MicroBurst.git cd MicroBurst pwsh-preview # Authenticate ...

Updated 1 year ago by Ryan

SkyArk

Azure - Cheatsheet Security Auditing

git clone https://github.com/cyberark/SkyArk cd SkyArk pwsh-preview Import-Module .\SkyArk.ps1...

Updated 1 year ago by Ryan

List all applications

Azure - Cheatsheet Azure AD

az ad app list --output=table --query='[].{Name:displayName,URL:homepage}'  

Updated 1 year ago by Ryan

List all service principles

Azure - Cheatsheet Azure AD

az ad sp list --output=table --query='[].{Name:displayName,Enabled:accountEnabled,URL:homepage,Pu...

Updated 1 year ago by Ryan

List all groups

Azure - Cheatsheet Azure AD

az ad group list --output=json --query='[].{Group:displayName,Description:description}' Resource...

Updated 1 year ago by Ryan

View all VMSS in a subscription

Azure - Cheatsheet VMSS

Simply navigate to this page and use the magical Try it button to use the REST API to grab this i...

Updated 1 year ago by Ryan

Get VMSS by name and associated resource group

Azure - Cheatsheet VMSS

az vmss list | jq '.[].name, .[].resourceGroup'  

Updated 1 year ago by Ryan

List vms in a VMSS

Azure - Cheatsheet VMSS

az vmss list-instances -n $VMSS_NAME -g $RESOURCE_GROUP Resource: https://docs.microsoft.com/en-...

Updated 1 year ago by Ryan

Get computer name of vms in a VMSS

Azure - Cheatsheet VMSS

az vmss list-instances -n $VMSS_NAME -g $RESOURCE_GROUP | jq '.[].osProfile.computerName'

Updated 1 year ago by Ryan

Run command in VM in a VMSS

Azure - Cheatsheet VMSS

This will run commands in the instance with an id of 0. See the above commands for how to get the...

Updated 1 year ago by Ryan

Get all instance metadata

Azure - Cheatsheet Metadata Service

curl -s -H Metadata:true --noproxy "*" "http://169.254.169.254/metadata/instance?api-version=2020...

Updated 1 year ago by Ryan

Get access token

Azure - Cheatsheet Metadata Service

curl -s -H Metadata:true --noproxy "*" "http://169.254.169.254/metadata/identity/oauth2/token?api...

Updated 1 year ago by Ryan

Request storage account token

Azure - Cheatsheet Metadata Service

# Get OAuth Token TOKEN=$(curl -s "http://169.254.169.254/metadata/identity/oauth2/token?api-ver...

Updated 1 year ago by Ryan

Get AKS node IP

Azure - Cheatsheet Metadata Service

curl -s -H Metadata:true "http://169.254.169.254/metadata/instance?api-version=2017-08-01" | jq -...

Updated 1 year ago by Ryan

Create new role assignment

Azure - Cheatsheet Roles

This will try to assign the assignee the owner role: az role assignment create --assignee <user ...

Updated 1 year ago by Ryan

Show registered features in a table format

Azure - Cheatsheet Features

az feature list -o table  

Updated 1 year ago by Ryan

Find features associated w/ ContainerService

Azure - Cheatsheet Features

az feature list -o table --query "[?contains(name, 'Microsoft.ContainerService')].{Name:name,Stat...

Updated 1 year ago by Ryan

Active Directory Details

Active Directory - Cheatsheet

Active Directory components in Windows Server 2008 The range of Active Directory (AD) has expa...

Updated 1 year ago by Ryan