mirror of
https://github.com/HackTricks-wiki/hacktricks-cloud.git
synced 2026-01-28 07:44:24 -08:00
Translated ['src/pentesting-cloud/azure-security/az-services/az-file-sha
This commit is contained in:
@@ -45,6 +45,11 @@ az storage file list --account-name <name> --share-name <share-name>
|
||||
az storage file list --account-name <name> --share-name <prev_dir/share-name>
|
||||
# Download a complete share (with directories and files inside of them)
|
||||
az storage file download-batch -d . --source <share-name> --account-name <name>
|
||||
# List snapshots
|
||||
az storage share snapshot --name <share-name>
|
||||
# List file shares, including deleted ones
|
||||
az rest --method GET \
|
||||
--url "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{storageAccountName}/fileServices/default/shares?%24skipToken=&%24maxpagesize=20&%24filter=&%24expand=deleted&api-version=2019-06-01"
|
||||
|
||||
# Get snapshots/backups
|
||||
az storage share list --account-name <name> --include-snapshots --query "[?snapshot != null]"
|
||||
|
||||
Reference in New Issue
Block a user