diff --git a/src/pentesting-cloud/azure-security/az-services/az-file-shares.md b/src/pentesting-cloud/azure-security/az-services/az-file-shares.md index 0f57975e5..fa955d511 100644 --- a/src/pentesting-cloud/azure-security/az-services/az-file-shares.md +++ b/src/pentesting-cloud/azure-security/az-services/az-file-shares.md @@ -45,6 +45,11 @@ az storage file list --account-name --share-name az storage file list --account-name --share-name # Download a complete share (with directories and files inside of them) az storage file download-batch -d . --source --account-name +# List snapshots +az storage share snapshot --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 --include-snapshots --query "[?snapshot != null]" @@ -80,7 +85,7 @@ Get-AzStorageFile -ShareName "" -Context (New-AzStorageContext -Stor {{#endtabs}} > [!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] > उपयोग करें पैरामीटर `--account-key` यह इंगित करने के लिए कि किस खाता कुंजी का उपयोग करना है\ @@ -88,7 +93,7 @@ Get-AzStorageFile -ShareName "" -Context (New-AzStorageContext -Stor ### कनेक्शन -ये स्क्रिप्ट्स हैं जो Azure ने लेखन के समय एक फ़ाइल शेयर से कनेक्ट करने के लिए प्रस्तावित की थीं: +ये स्क्रिप्ट्स हैं जो Azure ने लेखन के समय फ़ाइल साझा करने के लिए प्रस्तावित की थीं: आपको ``, `` और `` प्लेसहोल्डर्स को बदलना होगा। @@ -145,7 +150,7 @@ az-storage.md ../az-privilege-escalation/az-storage-privesc.md {{#endref}} -## पोस्ट एक्सप्लॉइटेशन +## पोस्ट एक्सप्लोइटेशन {{#ref}} ../az-post-exploitation/az-file-share-post-exploitation.md