mirror of
https://github.com/HackTricks-wiki/hacktricks-cloud.git
synced 2025-12-18 10:19:28 -08:00
Translated ['src/pentesting-cloud/azure-security/az-permissions-for-a-pe
This commit is contained in:
@@ -46,8 +46,8 @@ def ref(matchobj):
|
|||||||
match = re.search('<title>(.*?)</title>', raw_html)
|
match = re.search('<title>(.*?)</title>', raw_html)
|
||||||
title = match.group(1) if match else href
|
title = match.group(1) if match else href
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.debug(f'Error opening URL {href}: {e}')
|
logger.error(f'Error opening URL {href}: {e}')
|
||||||
pass #nDont stop on broken link
|
pass #Dont stop on broken link
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
if href.endswith("/"):
|
if href.endswith("/"):
|
||||||
@@ -73,7 +73,7 @@ def ref(matchobj):
|
|||||||
title = chapter["name"]
|
title = chapter["name"]
|
||||||
logger.debug(f'Recursive title search result: {chapter["name"]}')
|
logger.debug(f'Recursive title search result: {chapter["name"]}')
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.debug(e)
|
logger.error(f"Error: {e}")
|
||||||
logger.error(f'Error getting chapter title: {path.normpath(path.join(dir,href))}')
|
logger.error(f'Error getting chapter title: {path.normpath(path.join(dir,href))}')
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
@@ -101,7 +101,7 @@ def files(matchobj):
|
|||||||
logger.debug(f'File search result: {os.path.join(root, href)}')
|
logger.debug(f'File search result: {os.path.join(root, href)}')
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.debug(e)
|
logger.error(f"Error: {e}")
|
||||||
logger.error(f'Error searching file: {href}')
|
logger.error(f'Error searching file: {href}')
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,6 @@
|
|||||||
|
|
||||||
{{#include ../../banners/hacktricks-training.md}}
|
{{#include ../../banners/hacktricks-training.md}}
|
||||||
|
|
||||||
टेस्ट शुरू करने के लिए आपके पास **सदस्यता पर Reader permissions** और **AzureAD में Global Reader role** के साथ एक उपयोगकर्ता का एक्सेस होना चाहिए। यदि फिर भी आप **Storage accounts के कंटेंट तक पहुँचने में असमर्थ हैं** तो आप इसे **Storage Account Contributor role** के साथ ठीक कर सकते हैं।
|
टेस्ट शुरू करने के लिए, आपके पास **सदस्यता पर Reader permissions** और **AzureAD में Global Reader role** के साथ एक उपयोगकर्ता के साथ पहुंच होनी चाहिए। यदि फिर भी आप **Storage accounts के सामग्री तक पहुंचने में असमर्थ हैं**, तो आप इसे **Storage Account Contributor role** के साथ ठीक कर सकते हैं।
|
||||||
|
|
||||||
{{#include ../../banners/hacktricks-training.md}}
|
{{#include ../../banners/hacktricks-training.md}}
|
||||||
|
|||||||
Reference in New Issue
Block a user