Skip to content

Commit

Permalink
Merge pull request SpecterOps#688 from christophetd/use-jwt-from-az-c…
Browse files Browse the repository at this point in the history
…li-2

Add instructions to use the JWT from the az cli
  • Loading branch information
andyrobbins authored Feb 9, 2024
2 parents a78dff3 + cd4b4b0 commit 0d36459
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 @@ -48,7 +48,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 0d36459

Please sign in to comment.