-
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.
- Loading branch information
1 parent
3c8fbbf
commit 962aef6
Showing
5 changed files
with
136 additions
and
48 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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,97 @@ | ||
# Az - Enumeration Tools | ||
|
||
{% hint style="success" %} | ||
Learn & practice AWS Hacking:<img src="../../.gitbook/assets/image (1) (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) (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) | ||
|
||
<details> | ||
|
||
<summary>Support HackTricks</summary> | ||
|
||
* Check the [**subscription plans**](https://github.com/sponsors/carlospolop)! | ||
* **Join the** 💬 [**Discord group**](https://discord.gg/hRep4RUj7f) or the [**telegram group**](https://t.me/peass) or **follow** us on **Twitter** 🐦 [**@hacktricks\_live**](https://twitter.com/hacktricks\_live)**.** | ||
* **Share hacking tricks by submitting PRs to the** [**HackTricks**](https://github.com/carlospolop/hacktricks) and [**HackTricks Cloud**](https://github.com/carlospolop/hacktricks-cloud) github repos. | ||
|
||
</details> | ||
{% endhint %} | ||
|
||
## Install PowerShell in Linux | ||
|
||
{% hint style="success" %} | ||
In linux you will need to install PowerShell Core: | ||
|
||
```bash | ||
sudo apt-get update | ||
sudo apt-get install -y wget apt-transport-https software-properties-common | ||
|
||
# Ubuntu 20.04 | ||
wget -q https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb | ||
|
||
# Update repos | ||
sudo apt-get update | ||
sudo add-apt-repository universe | ||
|
||
# Install & start powershell | ||
sudo apt-get install -y powershell | ||
pwsh | ||
|
||
# Az cli | ||
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash | ||
``` | ||
{% endhint %} | ||
|
||
## Install PowerShell in MacOS | ||
|
||
Instructions from the [**documentation**](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-macos?view=powershell-7.4): | ||
|
||
1. Install `brew` if not installed yet: | ||
|
||
```bash | ||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | ||
``` | ||
|
||
2. Install the latest stable release of PowerShell: | ||
|
||
```sh | ||
brew install powershell/tap/powershell | ||
``` | ||
|
||
3. Run PowerShell: | ||
|
||
```sh | ||
pwsh | ||
``` | ||
|
||
4. Update: | ||
|
||
```sh | ||
brew update | ||
brew upgrade powershell | ||
``` | ||
|
||
## Main Enumeration Tools | ||
|
||
### az cli | ||
|
||
[**Azure Command-Line Interface (CLI)**](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli) is a cross-platform tool written in Python for managing and administering (most) Azure and Entra ID resources. It connects to Azure and executes administrative commands via the command line or scripts. | ||
|
||
Follow this link for the [**installation information**](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli#install). | ||
|
||
Commands in Azure CLI are structured using a pattern of: `az <service> <action> <parameters>` | ||
|
||
### Az PowerShell | ||
|
||
Azure PowerShell is a module with cmdlets for managing Azure resources directly from the PowerShell command line. | ||
|
||
Follow this link for the [**installation information**](https://learn.microsoft.com/en-us/powershell/azure/install-azure-powershell). | ||
|
||
Commands in Azure PowerShell AZ Module are structured like: `<Action>-Az<Service> <parameters>` | ||
|
||
### **PowerShell module** [**AzureAD**](https://www.powershellgallery.com/packages/AzureAD/) | ||
|
||
### | ||
|
||
#### **Modules differences** | ||
|
||
* **AzureAD** is a PowerShell module from Microsoft for **managing Azure AD. It doesn't' show all the properties of Azure AD objects and cannot be used to access Azure resources info**. | ||
* **Az PowerShell** is a module for **managing Azure resource**s from the PowerShell command line. |