mirror of
https://github.com/HackTricks-wiki/hacktricks-cloud.git
synced 2026-01-09 11:44:59 -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>
|
az storage file list --account-name <name> --share-name <prev_dir/share-name>
|
||||||
# Download a complete share (with directories and files inside of them)
|
# Download a complete share (with directories and files inside of them)
|
||||||
az storage file download-batch -d . --source <share-name> --account-name <name>
|
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
|
# Get snapshots/backups
|
||||||
az storage share list --account-name <name> --include-snapshots --query "[?snapshot != null]"
|
az storage share list --account-name <name> --include-snapshots --query "[?snapshot != null]"
|
||||||
@@ -80,7 +85,7 @@ Get-AzStorageFile -ShareName "<share-name>" -Context (New-AzStorageContext -Stor
|
|||||||
{{#endtabs}}
|
{{#endtabs}}
|
||||||
|
|
||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
> डिफ़ॉल्ट रूप से `az` cli एक खाता कुंजी का उपयोग करेगा एक कुंजी पर हस्ताक्षर करने और क्रिया करने के लिए। Entra ID प्रिंसिपल विशेषाधिकारों का उपयोग करने के लिए `--auth-mode login --enable-file-backup-request-intent` पैरामीटर का उपयोग करें।
|
> डिफ़ॉल्ट रूप से `az` cli एक खाता कुंजी का उपयोग करेगा एक कुंजी पर हस्ताक्षर करने और क्रिया करने के लिए। Entra ID प्रमुख विशेषाधिकारों का उपयोग करने के लिए `--auth-mode login --enable-file-backup-request-intent` पैरामीटर का उपयोग करें।
|
||||||
|
|
||||||
> [!TIP]
|
> [!TIP]
|
||||||
> उपयोग करें पैरामीटर `--account-key` यह इंगित करने के लिए कि किस खाता कुंजी का उपयोग करना है\
|
> उपयोग करें पैरामीटर `--account-key` यह इंगित करने के लिए कि किस खाता कुंजी का उपयोग करना है\
|
||||||
@@ -88,7 +93,7 @@ Get-AzStorageFile -ShareName "<share-name>" -Context (New-AzStorageContext -Stor
|
|||||||
|
|
||||||
### कनेक्शन
|
### कनेक्शन
|
||||||
|
|
||||||
ये स्क्रिप्ट्स हैं जो Azure ने लेखन के समय एक फ़ाइल शेयर से कनेक्ट करने के लिए प्रस्तावित की थीं:
|
ये स्क्रिप्ट्स हैं जो Azure ने लेखन के समय फ़ाइल साझा करने के लिए प्रस्तावित की थीं:
|
||||||
|
|
||||||
आपको `<STORAGE-ACCOUNT>`, `<ACCESS-KEY>` और `<FILE-SHARE-NAME>` प्लेसहोल्डर्स को बदलना होगा।
|
आपको `<STORAGE-ACCOUNT>`, `<ACCESS-KEY>` और `<FILE-SHARE-NAME>` प्लेसहोल्डर्स को बदलना होगा।
|
||||||
|
|
||||||
@@ -145,7 +150,7 @@ az-storage.md
|
|||||||
../az-privilege-escalation/az-storage-privesc.md
|
../az-privilege-escalation/az-storage-privesc.md
|
||||||
{{#endref}}
|
{{#endref}}
|
||||||
|
|
||||||
## पोस्ट एक्सप्लॉइटेशन
|
## पोस्ट एक्सप्लोइटेशन
|
||||||
|
|
||||||
{{#ref}}
|
{{#ref}}
|
||||||
../az-post-exploitation/az-file-share-post-exploitation.md
|
../az-post-exploitation/az-file-share-post-exploitation.md
|
||||||
|
|||||||
Reference in New Issue
Block a user