Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add windows check battery #501

wants to merge 1 commit into from

Conversation

bst04
Copy link
Contributor

@bst04 bst04 commented Nov 20, 2024

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:

  • Battery Report Generation: It retrieves the battery report using PowerShell.
  • File Saving Functionality: It can save one or more files to the USB Rubber Ducky storage, based on the configuration.

@bst04
Copy link
Contributor Author

bst04 commented Jan 8, 2025

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
Copy link
Member

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.

Copy link
Member

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
Copy link
Member

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.

@hak5peaks hak5peaks added bug Something isn't working pending requested changes requires changes before merge labels Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pending requested changes requires changes before merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants