Skip to content

Commit cbc8ed5

Browse files
authored
Merge pull request #21 from brunoooost/patch-4
Create payload.txt
2 parents fbb1bf7 + 59bbc92 commit cbc8ed5

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
REM =======================================
2+
REM payload by bst04
3+
REM For Windows Devices
4+
REM =======================================
5+
6+
DELAY 1000
7+
GUI r
8+
DELAY 750
9+
STRING powershell powercfg /batteryreport
10+
DELAY 750
11+
ENTER
12+
DELAY 250
13+
GUI r
14+
DELAY 850
15+
STRING powershell Start-Process "battery-report.html"
16+
DELAY 750
17+
ENTER
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# 🔋 CheckBateryWin-FlipZero by bst04
2+
3+
## ℹ️ Description
4+
5+
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.
6+
7+
---
8+
9+
## Technical Explanation
10+
11+
1. **Initialization**:
12+
- `DELAY 1000`: Waits for 1 second to ensure the system is ready.
13+
- `GUI r`: Simulates pressing "Windows" + "R" to open the Run dialog.
14+
- `DELAY 750`: Waits for 0.75 seconds to ensure the Run dialog is open.
15+
16+
2. **Generate Battery Report**:
17+
- `STRING powershell powercfg /batteryreport`: Types a PowerShell command to generate a battery report.
18+
- `DELAY 750`: Waits for 0.75 seconds to ensure the command is fully typed.
19+
- `ENTER`: Executes the PowerShell command to generate the battery report.
20+
21+
3. **Open Battery Report**:
22+
- `DELAY 250`: Waits for 0.25 seconds to ensure the previous command is processed.
23+
- `GUI r`: Simulates pressing "Windows" + "R" again to open the Run dialog.
24+
- `DELAY 850`: Waits for 0.85 seconds to ensure the Run dialog is open.
25+
- `STRING powershell Start-Process "battery-report.html"`: Types a PowerShell command to open the battery report in the default web browser.
26+
- `DELAY 750`: Waits for 0.75 seconds.
27+
- `ENTER`: Executes the PowerShell command to open the battery report.
28+
29+
---
30+
31+
## Usage
32+
33+
1. Copy the payload script to your DuckyScript-enabled device.
34+
2. Ensure the device is connected to a Windows system.
35+
3. Execute the payload to generate and open the battery report.

0 commit comments

Comments
 (0)