Skip to content

Commit

Permalink
Add instructions to use the JWT from the az cli
Browse files Browse the repository at this point in the history
  • Loading branch information
christophetd authored Aug 7, 2023
1 parent 18df722 commit cd4b4b0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/data-collection/azurehound.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,13 @@ need to supply a username or password when supplying a JWT:
::

./azurehound -j "ey..." list users --tenant "contoso.onmicrosoft.com"

If you're currently authenticated through the Azure CLI, you can use:

::

./azurehound -j "$(az account get-access-token --resource=https://graph.microsoft.com/ | jq -r .accessToken)" list users --tenant "contoso.onmicrosoft.com"

When collecting data for import into BloodHound, you must use the -o switch to instruct
AzureHound to output to a file. For example, to list all available data in both AzureAD
and AzureRM, you can do this:
Expand Down

0 comments on commit cd4b4b0

Please sign in to comment.