{"id":18387176,"url":"https://github.com/shkudw/entramail","last_synced_at":"2025-04-07T00:34:04.627Z","repository":{"id":251814943,"uuid":"838529349","full_name":"ShkudW/EntraMail","owner":"ShkudW","description":"A PowerShell tool designed to identify valid users in Entra-ID (Azure AD).","archived":false,"fork":false,"pushed_at":"2024-10-29T20:27:46.000Z","size":860,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-29T22:48:28.515Z","etag":null,"topics":["azure","entra-id","pentesting","powershell","reconnaissance","redteam"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ShkudW.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-08-05T20:38:31.000Z","updated_at":"2024-10-29T20:27:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"bed8549e-5761-4b81-bf29-cea843c683a4","html_url":"https://github.com/ShkudW/EntraMail","commit_stats":null,"previous_names":["shkudw/entramail"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShkudW%2FEntraMail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShkudW%2FEntraMail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShkudW%2FEntraMail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShkudW%2FEntraMail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ShkudW","download_url":"https://codeload.github.com/ShkudW/EntraMail/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223268452,"owners_count":17116812,"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","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","entra-id","pentesting","powershell","reconnaissance","redteam"],"created_at":"2024-11-06T01:25:05.556Z","updated_at":"2025-04-07T00:34:04.618Z","avatar_url":"https://github.com/ShkudW.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"**EntraMail** is a PowerShell based tool for penetration testers and Red Teamers to enumerate user accounts within EntraID (Azure AD) environments. It uses multiple APIs to identify valid User Principal Names (UPNs) and provides detailed HTML reports. The tool offers flexible options for querying by first names, last names, usernames, and supports both single queries and bulk operations via files.\n\n## Features\n\n- **Multiple Query Options:** Supports querying by first name, last name, or full username, as well as bulk queries from files.\n- **Domain-Specific UPN Enumeration:** Validate UPNs within a specific domain to identify active accounts in EntraID.\n- **Stop On First Match:** Optionally stop searching after finding the first valid user to optimize large-scale enumeration efforts.\n- **Customizable Delays:** Control the delay between requests to prevent rate-limiting or IP blocking.\n- **Detailed HTML Reporting:** Generate comprehensive, user-friendly HTML reports of the results.\n- **Flexible Input Sources:** Accepts individual names or files containing multiple names or usernames for streamlined bulk enumeration.\n\n### Prerequisites\n\n- PowerShell 5.0 or higher\n\n### Command Line Usage\n\n```powershell\n# Load The Script\nImport-Module .\\EntraMail.psm1\n```\n```powershell\n# Searching by single first name and last name\n  Invoke-EntraMail -FirstName Shaked -LastName Wiessman -DomainName domain.co.il\n```\n```powershell\n# Searching by Names-File it is recommended to use -StopOnFirstMatch flag\n  Invoke-EntraMail -NamesFile names.txt -DomainName domain.co.il -StopOnFirstMatch\n```\n```powershell\n# Searching by NUserNames File\n  Invoke-EntraMail -UsernameFile usernames.txt -DomainName domain.co.il -OutputFilePath report.html\n```\n\n```powershell\n# Convert NamesFile to UserNames File :\n  Invoke-EntraMail -ConvertNameFile names.txt -Style firstl \n```\n\n### PoC\n\n![image](https://github.com/user-attachments/assets/11e2771c-78c7-46c9-b049-6a1634bbf9c1)\n\n![image](https://github.com/user-attachments/assets/54e93d3d-e9f8-4c91-8dfd-fecc40381219)\n\n![image](https://github.com/user-attachments/assets/a7670d0c-4525-476e-8c8c-715231619409)\n\n![image](https://github.com/user-attachments/assets/f0470fb4-e6f5-44fa-b4bb-96a938642633)\n\n![image](https://github.com/user-attachments/assets/024f808e-9c00-4f8a-9c7f-c03d82b88b60)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshkudw%2Fentramail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshkudw%2Fentramail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshkudw%2Fentramail/lists"}