{"id":30653869,"url":"https://github.com/tbhaxor/cartx","last_synced_at":"2026-02-27T23:21:10.165Z","repository":{"id":310793493,"uuid":"970169220","full_name":"tbhaxor/CARTX","owner":"tbhaxor","description":"Collection of powershell scripts I used to complete my CARTP and CARTE courses.","archived":false,"fork":false,"pushed_at":"2025-08-20T07:50:45.000Z","size":24,"stargazers_count":42,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-20T09:31:35.225Z","etag":null,"topics":["azure-ad","carte","entraid","powershell","red-team"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tbhaxor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-21T15:34:24.000Z","updated_at":"2025-08-20T07:50:48.000Z","dependencies_parsed_at":"2025-08-22T01:30:46.851Z","dependency_job_id":null,"html_url":"https://github.com/tbhaxor/CARTX","commit_stats":null,"previous_names":["tbhaxor/cartx"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/tbhaxor/CARTX","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbhaxor%2FCARTX","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbhaxor%2FCARTX/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbhaxor%2FCARTX/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbhaxor%2FCARTX/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tbhaxor","download_url":"https://codeload.github.com/tbhaxor/CARTX/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbhaxor%2FCARTX/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272953955,"owners_count":25021136,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure-ad","carte","entraid","powershell","red-team"],"created_at":"2025-08-31T08:08:47.850Z","updated_at":"2026-02-27T23:21:10.160Z","avatar_url":"https://github.com/tbhaxor.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CARTX\n\n**CARTX** is a collection of PowerShell scripts created during the **CARTP** and **CARTE** exams to streamline assessments and enhance results in Azure and Entra ID environments.\n\n## Included Functions\n\n- `Connect-AzRedLab`  \n  Connect to Azure RedLabs and Microsoft Graph.\n\n- `Get-AzResourcePermission`  \n  Retrieve permissions on Azure resources, even without Reader role.\n\n- `Get-MgRoleAssignment`  \n  Get role assignments of identities in Entra ID, with directory scope expansion.\n\n- `Invoke-AzClientCredentialsFlow`  \n  Obtain access tokens for enterprise applications using client ID and secret or certificate. Supports JWT signing via Azure Key Vault.\n\n- `Invoke-AzDeviceCodeLogin`  \n  Initiate the device code login flow. Waits for authentication and returns tokens upon success.\n\n- `Invoke-AzRefreshToken`  \n  Refresh tokens using FOCI abuse techniques.\n\n- `Invoke-EmailGenerator`  \n  Generate email addresses using a domain or display name wordlist.\n\n- `Invoke-AzAddAppCredentialEnumerate`  \n  Enumerates Microsoft Entra applications for which a principal can potentially add or update credentials.\n\n- `New-AzStorageAccountSAS`  \n  Generate SAS URLs for Azure Storage accounts or containers.\n\n- `Read-AccessTokenFromDescryptedTBRES`  \n  Extract JWT tokens from decrypted TBRES files. Expired tokens are filtered out by default.\n\n- `Test-AADUserLogin`  \n  Perform password spraying against AAD user accounts. Includes throttling bypass using the `Start-Sleep` cmdlet.\n\n## Compatibility\n\n✅ **Tested on**: PowerShell 7 (Linux)  \n⚠️ **Partial PowerShell 5 support**: Some scripts work on PowerShell 5, but the full set has not been tested. PRs to improve compatibility are welcome.\n\n## Contact\n\n- 🐦 Twitter: [@tbhaxor](https://twitter.com/tbhaxor)\n- 💼 LinkedIn: [@tbhaxor](https://www.linkedin.com/in/tbhaxor)\n- 📧 Email: [info@tbhaxor.com](mailto:info@tbhaxor.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftbhaxor%2Fcartx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftbhaxor%2Fcartx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftbhaxor%2Fcartx/lists"}