azol


Nameazol JSON
Version 0.1.1a14 PyPI version JSON
download
home_pagehttps://github.com/cdburkard/azol
SummaryA python-based pentesting library for Azure and Entra ID
upload_time2024-02-14 15:13:15
maintainer
docs_urlNone
authorCody Burkard
requires_python
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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")
armClient = ArmClient(tenant="tenant.com", cred=cred)

subscriptions=armClient.get_subscriptions()

for sid in subscriptions:
  print(sid)
```

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" )

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

groups=GraphClient.get_all_groups_and_owners()

for group in groups:
  pprint(group)

```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/cdburkard/azol",
    "name": "azol",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Cody Burkard",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/6d/46/c9fd3ab2616e5528e73f5fa085d6ddb0c46beb65bba58d12f98e5dfe202a/azol-0.1.1a14.tar.gz",
    "platform": null,
    "description": "# Azure Offensive Library\n\nA python-based pentesting library for Azure and Entra ID\n\n## Installation\n\nInstall the library using Python3 pip:\n\n```pip install azol```\n\n## Basic Usage\n\nLog in as a user and get all subscriptions:\n\n```\nfrom azol.credentials import User\nfrom azol.clients import ArmClient\n\ncred = User(username=\"user@domain.com\")\narmClient = ArmClient(tenant=\"tenant.com\", cred=cred)\n\nsubscriptions=armClient.get_subscriptions()\n\nfor sid in subscriptions:\n  print(sid)\n```\n\nLog in as a Service Principal and get all groups, with owners\n\n```\nfrom pprint import pprint\nfrom azol.credentials import ServicePrincipal\nfrom azol.clients import GraphClient\n\ncred = ServicePrincipal(client_id=\"00000000-0000-0000-0000-000000000000\", client_secret=\"your secret\" )\n\nGraphClient = GraphClient(tenant=\"tenant.com\", cred=cred)\n\ngroups=GraphClient.get_all_groups_and_owners()\n\nfor group in groups:\n  pprint(group)\n\n```\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "A python-based pentesting library for Azure and Entra ID",
    "version": "0.1.1a14",
    "project_urls": {
        "Homepage": "https://github.com/cdburkard/azol"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "54429f692c9dda3ce015c622d943e143ac3b23874c058e3314168eb6096606ac",
                "md5": "3ed40cfb281c253f5b4f2aa7674e9074",
                "sha256": "900f394e8fb9bf69c3b375d20f837ad8dd945579306ab91ad3df79d76ff87ad4"
            },
            "downloads": -1,
            "filename": "azol-0.1.1a14-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3ed40cfb281c253f5b4f2aa7674e9074",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 125267,
            "upload_time": "2024-02-14T15:13:12",
            "upload_time_iso_8601": "2024-02-14T15:13:12.306630Z",
            "url": "https://files.pythonhosted.org/packages/54/42/9f692c9dda3ce015c622d943e143ac3b23874c058e3314168eb6096606ac/azol-0.1.1a14-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6d46c9fd3ab2616e5528e73f5fa085d6ddb0c46beb65bba58d12f98e5dfe202a",
                "md5": "2e0211fcb1df6e9714471834b09b122f",
                "sha256": "d0e4a592b9fa5164e7f26e89c98603dd55696775dc9f810cefba4e13e2d31295"
            },
            "downloads": -1,
            "filename": "azol-0.1.1a14.tar.gz",
            "has_sig": false,
            "md5_digest": "2e0211fcb1df6e9714471834b09b122f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 117349,
            "upload_time": "2024-02-14T15:13:15",
            "upload_time_iso_8601": "2024-02-14T15:13:15.059476Z",
            "url": "https://files.pythonhosted.org/packages/6d/46/c9fd3ab2616e5528e73f5fa085d6ddb0c46beb65bba58d12f98e5dfe202a/azol-0.1.1a14.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-14 15:13:15",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "cdburkard",
    "github_project": "azol",
    "github_not_found": true,
    "lcname": "azol"
}
        
Elapsed time: 0.28344s