Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

renamebin

This allows me to rename a "inject*.bin" to "inject.bin" for Hak5 Rubber Ducky

Inject File Management Script

This repository contains a bash script designed to manage inject*.bin files within a specified directory. The script handles the renaming and deletion of these files following specific logic.

Table of Contents

  1. Getting Started
  2. Usage
  3. Script Logic
  4. Contributing
  5. License

Getting Started

Clone the repository to your local machine:

git clone https://github.com/yourusername/your-repo-name.git
cd your-repo-name

Ensure you have the necessary permissions to execute scripts:

chmod +x script.sh

Usage

Run the script in the directory containing the inject*.bin files:

./script.sh

Script Logic

The script operates with the following logic:

  1. Directory Navigation: It navigates to the specified directory where the inject*.bin files are located.
  2. File Counting: It counts and checks the presence of files matching the pattern inject*.bin.
  3. Existence Check: It specifically checks if inject.bin exists in the directory.
  4. Conditional Actions:
    • If only inject.bin exists, no action is taken.
    • If there are multiple inject*.bin files:
      • Deletes inject.bin if it exists.
      • Renames one of the inject*.bin files to inject.bin.
    • If no inject*.bin files are found, a message is displayed indicating no files to rename.

Contributing

We welcome contributions! Please fork the repository and submit a pull request with proposed changes.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

This allows me to rename a "inject*.bin" to "inject.bin" for Hak5 Rubber Ducky

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages