azol


Nameazol JSON
Version 0.2.2b1 PyPI version JSON
download
home_pagehttps://github.com/cdburkard/azol
SummaryA python-based pentesting library for Azure and Entra ID
upload_time2024-04-16 22:16:24
maintainerNone
docs_urlNone
authorCody Burkard
requires_pythonNone
licenseNone
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": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "Cody Burkard",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/82/bf/80cb65fbd46a14f328cddbccaebb73408ef7f563234d078bc17dfff377c6/azol-0.2.2b1.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": null,
    "summary": "A python-based pentesting library for Azure and Entra ID",
    "version": "0.2.2b1",
    "project_urls": {
        "Homepage": "https://github.com/cdburkard/azol"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "41f4c70d038302442eee851a6a47251967f36f8f204bec96de29d04e06671b63",
                "md5": "720aa819a8ef95347e1a3035a51ff8a5",
                "sha256": "31006f4f6ab4e911cf336af4bd476b5c982d53c3aaab3d081ef257c464dff3be"
            },
            "downloads": -1,
            "filename": "azol-0.2.2b1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "720aa819a8ef95347e1a3035a51ff8a5",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 146115,
            "upload_time": "2024-04-16T22:16:23",
            "upload_time_iso_8601": "2024-04-16T22:16:23.121664Z",
            "url": "https://files.pythonhosted.org/packages/41/f4/c70d038302442eee851a6a47251967f36f8f204bec96de29d04e06671b63/azol-0.2.2b1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "82bf80cb65fbd46a14f328cddbccaebb73408ef7f563234d078bc17dfff377c6",
                "md5": "5dff7168e4e15745446ae0ef01161986",
                "sha256": "4855608b32c2f4d46221eceb1bcce8ee04b1060d9a8535b77a9e24c34da38cb5"
            },
            "downloads": -1,
            "filename": "azol-0.2.2b1.tar.gz",
            "has_sig": false,
            "md5_digest": "5dff7168e4e15745446ae0ef01161986",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 135625,
            "upload_time": "2024-04-16T22:16:24",
            "upload_time_iso_8601": "2024-04-16T22:16:24.992079Z",
            "url": "https://files.pythonhosted.org/packages/82/bf/80cb65fbd46a14f328cddbccaebb73408ef7f563234d078bc17dfff377c6/azol-0.2.2b1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-16 22:16:24",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "cdburkard",
    "github_project": "azol",
    "github_not_found": true,
    "lcname": "azol"
}
        
Elapsed time: 0.20771s