Skip to content

Commit 0d36459

Browse files
authored
Merge pull request #688 from christophetd/use-jwt-from-az-cli-2
Add instructions to use the JWT from the az cli
2 parents a78dff3 + cd4b4b0 commit 0d36459

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/data-collection/azurehound.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,13 @@ need to supply a username or password when supplying a JWT:
4848
::
4949

5050
./azurehound -j "ey..." list users --tenant "contoso.onmicrosoft.com"
51-
51+
52+
If you're currently authenticated through the Azure CLI, you can use:
53+
54+
::
55+
56+
./azurehound -j "$(az account get-access-token --resource=https://graph.microsoft.com/ | jq -r .accessToken)" list users --tenant "contoso.onmicrosoft.com"
57+
5258
When collecting data for import into BloodHound, you must use the -o switch to instruct
5359
AzureHound to output to a file. For example, to list all available data in both AzureAD
5460
and AzureRM, you can do this:

0 commit comments

Comments
 (0)