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.2.6b1.tar.gz
(205.7 kB
view details)
Built Distribution
azol-0.2.6b1-py3-none-any.whl
(216.2 kB
view details)
File details
Details for the file azol-0.2.6b1.tar.gz
.
File metadata
- Download URL: azol-0.2.6b1.tar.gz
- Upload date:
- Size: 205.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bffedef54f581f054424cc3f1829799a532b38d5c6bc09950917e63798796a5 |
|
MD5 | fe601e8f05d5740e83f65e21e07ce958 |
|
BLAKE2b-256 | dde65f26fd9b720499e02293c9a656b4abe8ffe6bbef20adc2b0e7a3ed3cb773 |
File details
Details for the file azol-0.2.6b1-py3-none-any.whl
.
File metadata
- Download URL: azol-0.2.6b1-py3-none-any.whl
- Upload date:
- Size: 216.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd3335fd9fb6196f7f0befa6eac177acc3e127ba20328576bcd8ca8ba485beb4 |
|
MD5 | 913afc3c5a0e01ecefc5c6554a280c04 |
|
BLAKE2b-256 | 4a1df93e2221c0f0307b9246e38295c201a0bcf68202b73bc365bfc2362bed46 |