Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
bst04 committed Nov 11, 2024
1 parent a5ae75f commit 59bbc92
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions Windows/Execution/CheckBattery-by_bst04/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# 🔋 CheckBateryWin-FlipZero by bst04

## ℹ️ Description

This script, created by bst04, is designed to work on Windows devices. It generates a battery report using PowerShell and then opens the report in the default web browser.

---

## Technical Explanation

1. **Initialization**:
- `DELAY 1000`: Waits for 1 second to ensure the system is ready.
- `GUI r`: Simulates pressing "Windows" + "R" to open the Run dialog.
- `DELAY 750`: Waits for 0.75 seconds to ensure the Run dialog is open.

2. **Generate Battery Report**:
- `STRING powershell powercfg /batteryreport`: Types a PowerShell command to generate a battery report.
- `DELAY 750`: Waits for 0.75 seconds to ensure the command is fully typed.
- `ENTER`: Executes the PowerShell command to generate the battery report.

3. **Open Battery Report**:
- `DELAY 250`: Waits for 0.25 seconds to ensure the previous command is processed.
- `GUI r`: Simulates pressing "Windows" + "R" again to open the Run dialog.
- `DELAY 850`: Waits for 0.85 seconds to ensure the Run dialog is open.
- `STRING powershell Start-Process "battery-report.html"`: Types a PowerShell command to open the battery report in the default web browser.
- `DELAY 750`: Waits for 0.75 seconds.
- `ENTER`: Executes the PowerShell command to open the battery report.

---

## Usage

1. Copy the payload script to your DuckyScript-enabled device.
2. Ensure the device is connected to a Windows system.
3. Execute the payload to generate and open the battery report.

0 comments on commit 59bbc92

Please sign in to comment.