Az - ACR

Reading time: 3 minutes

tip

Aprenda e pratique Hacking AWS:HackTricks Training AWS Red Team Expert (ARTE)
Aprenda e pratique Hacking GCP: HackTricks Training GCP Red Team Expert (GRTE) Aprenda e pratique Hacking Azure: HackTricks Training Azure Red Team Expert (AzRTE)

Support HackTricks

Informações Básicas

Azure Container Registry (ACR) é um serviço gerenciado fornecido pela Microsoft Azure para armazenar e gerenciar imagens de contêiner Docker e outros artefatos. Ele oferece recursos como ferramentas de desenvolvedor integradas, geo-replicação, medidas de segurança como controle de acesso baseado em função e verificação de imagens, builds automatizados, webhooks e gatilhos, e isolamento de rede. Funciona com ferramentas populares como Docker CLI e Kubernetes, e se integra bem com outros serviços do Azure.

Enumerar

Para enumerar o serviço, você pode usar o script Get-AzACR.ps1:

bash
# 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
bash
az acr list --output table
az acr show --name MyRegistry --resource-group MyResourceGroup

Login e Puxar do registro

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

tip

Aprenda e pratique Hacking AWS:HackTricks Training AWS Red Team Expert (ARTE)
Aprenda e pratique Hacking GCP: HackTricks Training GCP Red Team Expert (GRTE) Aprenda e pratique Hacking Azure: HackTricks Training Azure Red Team Expert (AzRTE)

Support HackTricks