repositories

daemon-sec-cheatsheet

The cheatsheet vault for operators: AD, enumeration, exploitation, priv-esc, web, DFIR

clonegit clone https://git.daemon-sec.xyz/daemon-sec-cheatsheet.git
azure-services-web-apps.mdMarkdown60 lines2.4 KiBsource raw download

title: "Azure Services - Web Apps" section: "Cloud" sectionSlug: "cloud" sourcePath: "docs/cloud/azure/azure-services-web-apps.md" sourceUrl: "https://github.com/swisskyrepo/InternalAllTheThings/blob/203bb0c0b290/docs/cloud/azure/azure-services-web-apps.md" sha: "203bb0c0b290" isIndex: false#

Azure Services - Web Apps#

List Web App#

az webapp list

Execute Commands#

$ARMToken = Get-ARMTokenWithRefreshToken `
    -RefreshToken "0.ARwA6WgJJ9X2qk..." `
    -TenantID "contoso.onmicrosoft.com"

Invoke-AzureRMWebAppShellCommand `
    -KuduURI "https://<webapp>.scm.azurewebsites.net/api/command" `
    -Token $ARMToken `
    -Command "whoami"

SSH Connection#

First check if the SSH over HTTP connection is enabled: (curl https://${appName}?app.scm.azurewebsites.net/webssh/host).statuscode

az webapp create-remote-connection --subscription <SUBSCRIPTION-ID> --resource-group <RG-NAME> -n <APP-SERVICE-NAME>

Kudu#

In Azure App Service, Kudu is the advanced management and deployment tool used for various operations such as continuous integration, troubleshooting, and diagnostic tasks for your web applications. It provides a set of utilities and features for managing your app’s environment, including access to application settings, log streams, and deployment management.

You can access this Kudu app at the following URLs:

Key Features of Kudu in App Service:

References#