Skip to main content

A python-based pentesting library for Azure and Entra ID

Project description

Azure Offensive Library

A python-based pentesting library for Azure and Entra ID

Installation

Install the library using Python3 pip:

pip install azol

Basic Usage

Log in as a user and get all subscriptions:

from azol.credentials import User
from azol.clients import ArmClient

cred = User(username="user@domain.com")
arm_client = ArmClient(tenant="tenant.com", cred=cred)

subscriptions=arm_client.get_subscriptions()

for sub_id in subscriptions:
  print(sub_id)

Log in as a Service Principal and get all groups, with owners

from pprint import pprint
from azol.credentials import ServicePrincipal
from azol.clients import GraphClient

cred = ServicePrincipal(client_id="00000000-0000-0000-0000-000000000000", client_secret="your secret" )

graph_client = GraphClient(tenant="tenant.com", cred=cred)

groups=graph_client.get_all_groups_and_owners()

for group in groups:
  pprint(group)

Log in as a user to their default tenant, but use an interactive signin. Get all tenants the user belongs to.

from azol import *

cred=User("user@domain.com")
arm_client=ArmClient(cred=cred, oauth_flow="authorization_code")

tenants=arm_client.get_tenants()

for tenant in tenants:
  print(tenant["defaultDomain"])

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

azol-0.5.0b8.tar.gz (229.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

azol-0.5.0b8-py3-none-any.whl (243.6 kB view details)

Uploaded Python 3

File details

Details for the file azol-0.5.0b8.tar.gz.

File metadata

  • Download URL: azol-0.5.0b8.tar.gz
  • Upload date:
  • Size: 229.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for azol-0.5.0b8.tar.gz
Algorithm Hash digest
SHA256 c13475fa299807a8b33cc0949dbd035f2e9f3447edd496868388c8b3bf284cd0
MD5 dc0daf47ee76d74a2e51a0bdc4cc07b1
BLAKE2b-256 ec705c25a0a8fddc89b1b658e5b170b8359e6dc77101e2ede5a7777edd2d83fc

See more details on using hashes here.

File details

Details for the file azol-0.5.0b8-py3-none-any.whl.

File metadata

  • Download URL: azol-0.5.0b8-py3-none-any.whl
  • Upload date:
  • Size: 243.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for azol-0.5.0b8-py3-none-any.whl
Algorithm Hash digest
SHA256 f18ce744ad876d1cc4bacf5e870b81f12c0914c0e54f7e05f98c27c8536afae0
MD5 cbda6f90e357a6d577e1d6ebbf10eb23
BLAKE2b-256 8b1e4b24cad302ae45c363d1c1a696cf2e434c88dcc871004909c183cb301dfa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page