-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add windows check battery #501
base: master
Are you sure you want to change the base?
Conversation
any news? |
Source: https://github.com/hak5/usbrubberducky-payloads/tree/master/payloads/extensions/community/SAVE_FILES_IN_RUBBER_DUCKY_STORAGE | ||
END_REM | ||
|
||
EXTENSION SAVE_FILES_IN_RUBBER_DUCKY_STORAGE_WINDOWS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please review this payload using Payloadstudio as there is compiler errors within the extension you are using.
I will go through the extension and review the errors.
|
||
1. **Battery Report Generation**: It retrieves the battery report using PowerShell. | ||
2. **File Saving Functionality**: It can save one or more files to the USB Rubber Ducky storage, based on the configuration. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please include that this payload removes powershell history.
Some people might not want their history removed and should be aware of that.
END_REM | ||
|
||
REM Clear the command history in PowerShell by deleting the history file | ||
STRINGLN Remove-Item (Get-PSReadlineOption).HistorySavePath; exit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As stated in the comment on the read me, please include a notice to make the end user aware that this payload deletes powershell history.
This script is a Rubber Ducky payload designed for Windows environments to check battery information and save files to a USB Rubber Ducky storage. The script performs two primary functions: