-
Notifications
You must be signed in to change notification settings - Fork 128
Modules: PowerDump
zenityinbar edited this page Jul 31, 2023
·
13 revisions
powerdump is a tool for exploring information in Microsoft PowerPlatform from a Red Team perspective. In short, this is what it does:
- Generates access tokens for fetching available resources in Microsoft PowerApps.
- Uses HTTP calls in Python to dump all available information in the Microsoft PowerPlatform into a local directory.
- Generates access tokens for performing advanced actions on the discovered resources.
- Provides a basic GUI for presenting the collected resources and data.
Notice: For its GUI, powerpwn uses browsepy Python library and is therefore only compatible with Python 3.6-3.8 (development is done with Python 3.8).
Using pip
Use pip to install the powerpwn tool:
pip install powerpwn
Using a version from GitHub
Clone the repository and run:
pip install .
Clone the repository and setup a virtual environment in your IDE. Install python packages by running:
python init_repo.py
To activate the virtual environment (.venv) run:
.\.venv\Scripts\activate (Windows)
./.venv/bin/activate (Linux)
- Run
powerpwn dump --tenant {tenantId} --cache-path {path}to collect data from tenantId and store it in path. The default cache-path is.cache. - For more options run
powerpwn dump --help - On first execution, a device flow will initiate for acqruring an access token to the designated tenant.
- Collection may take a while, depending on the tenant size. Once collection is done, you can find the collected resources and data under the
pathdirectory. - Access tokens to powerapps and apihub are cached in tokens.json file.
- Run
powerpwn gui --cache-path {path}, with the path used for thedumpcommand. The default cache-path remains.cache. - At http://127.0.0.1:5000/ you can find an application with all the collected resources.
- For connections, Playground will generate the connections swagger, that allow you to run these connections and perform actions on the platform. To authenticate, use the generated apihub access token generated in the previous step.
- At http://127.0.0.1:8080/ you can find a simple file browser with the dump of all resources and data.
Open Chatgpt