Files
hacktricks-cloud/src/pentesting-cloud/azure-security/az-services/az-acr.md

1.7 KiB

Az - ACR

{{#include ../../../banners/hacktricks-training.md}}

Basiese Inligting

Azure Container Registry (ACR) is 'n bestuurde diens wat deur Microsoft Azure verskaf word vir die stoor en bestuur van Docker houerbeelde en ander artefakte. Dit bied funksies soos geïntegreerde ontwikkelaarstoestelle, geo-replikaasie, sekuriteitsmaatreëls soos rolgebaseerde toegangbeheer en beeldskandering, outomatiese boue, webhooks en triggers, en netwerkisolasie. Dit werk saam met gewilde gereedskap soos Docker CLI en Kubernetes, en integreer goed met ander Azure-dienste.

Enumereer

Om die diens te enumereer kan jy die skrif Get-AzACR.ps1 gebruik:

# List Docker images inside the registry
IEX (New-Object Net.Webclient).downloadstring("https://raw.githubusercontent.com/NetSPI/MicroBurst/master/Misc/Get-AzACR.ps1")

Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Internet Explorer\Main" -Name "DisableFirstRunCustomize" -Value 2

Get-AzACR -username <username> -password <password> -registry <corp-name>.azurecr.io

{{#tabs }} {{#tab name="az cli" }}

az acr list --output table
az acr show --name MyRegistry --resource-group MyResourceGroup

{{#endtab }}

{{#tab name="Az Powershell" }}

# List all ACRs in your subscription
Get-AzContainerRegistry

# Get a specific ACR
Get-AzContainerRegistry -ResourceGroupName "MyResourceGroup" -Name "MyRegistry"

{{#endtab }} {{#endtabs }}

Teken in & Trek vanaf die registrasie

docker login <corp-name>.azurecr.io --username <username> --password <password>
docker pull <corp-name>.azurecr.io/<image>:<tag>

{{#include ../../../banners/hacktricks-training.md}}