You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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