Skip to content

Commit

Permalink
tested
Browse files Browse the repository at this point in the history
  • Loading branch information
carlospolop committed Dec 22, 2024
1 parent d576055 commit aa5f5c0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions linPEAS/builder/linpeas_parts/3_cloud/8_Azure_app_service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ API_VERSION="2019-08-01" #https://learn.microsoft.com/en-us/azure/app-service/ov

if [ "$is_az_app" = "Yes" ]; then
print_2title "Azure App Service Enumeration"
echo "I haven't tested this one, if it doesn't work, please send a PR fixing and adding functionality :)"

HEADER="X-IDENTITY-HEADER:$IDENTITY_HEADER"

Expand All @@ -33,13 +32,13 @@ if [ "$is_az_app" = "Yes" ]; then
if [ "$az_req" ]; then
print_3title "Management token"
exec_with_jq eval $az_req "$IDENTITY_ENDPOINT?api-version=$API_VERSION\&resource=https://management.azure.com/"

echo
print_3title "Graph token"
exec_with_jq eval $az_req "$IDENTITY_ENDPOINT?api-version=$API_VERSION\&resource=https://graph.microsoft.com/"

echo
print_3title "Vault token"
exec_with_jq eval $az_req "$IDENTITY_ENDPOINT?api-version=$API_VERSION\&resource=https://vault.azure.net/"

echo
print_3title "Storage token"
exec_with_jq eval $az_req "$IDENTITY_ENDPOINT?api-version=$API_VERSION\&resource=https://storage.azure.com/"
fi
Expand Down

0 comments on commit aa5f5c0

Please sign in to comment.