Welcome to AutorunUSB, a powerful tool designed to provide an autorun feature for USB drives. It allows you to automatically execute a script or application when the USB drive is connected to a computer.
- Automatic Execution: Seamlessly run scripts or applications upon USB connection.
- Customizable: Easily configure and customize to fit your needs.
- Lightweight: Minimal resource usage ensures efficiency.
- Compatibility: Fully compatible with Windows operating systems.
- Open Source: Free to use and modify under the MIT License.
- Open the Powershell or Command Prompt as an administrator.
- go to the USB drive directory.
- Run the following command to remove the autorun.inf file.
cd /d <USB Drive Letter>: attrib -h -r -s autorun.inf del autorun.inf attrib -h -r -s *.ico del <delete Your icon in autorun.inf>.ico attrib -h -r -s <Your Script/App>.<the extension> del <Your Script/App>.<the extension>
or You can double click solve.bat
- Clone the repository to your local machine:
git clone https://github.com/Xnuvers007/AutorunUSB.git
- Navigate to the project directory:
cd AutorunUSB
- Follow the configuration instructions below to set up your autorun script.
Simply connect the USB drive to a computer, and the specified script or application will run automatically.
You can use it easily on Windows. Just follow the steps below:
- go to Apps folder.
- Run USB Autorun By Xnuvers007.exe.
- Don't move the Files USB Autorun By Xnuvers007.exe
- Follow the instructions on the screen.
You can also use it on Python. Just follow the steps below:
- Navigate to the
python
directory:cd python
- Install the required packages:
pip install -r python/requirements.txt
- Run the script:
python main.py
- Follow the instructions on the screen.
NOTE : Python Version 3.8 or higher is required.
You can also use it on C++. Just follow the steps below:
- Navigate to the
cpp
directory:cd cpp
- Compile the source code:
g++ main.cpp -o autorun
- Run the executable:
./autorun
- Follow the instructions on the screen.
NOTE : GCC Compiler is required.
Download GCC Compiler from Server 1. or Server 2.
You can also use it on Java. Just follow the steps below:
- Navigate to the
java
directory:cd javva
- Compile the source code:
javac USBAutorunCreator.java
- Run the executable:
java Main
- Follow the instructions on the screen.
or You Can use this command
-
Navigate to the
java
directory:cd javva\usbautorun\src\main\java\dev\xnuvers007\usbautorun\
-
Compile the source code:
javac USBAutorunCreator.java
-
Run the executable:
java USBAutorunCreator
-
Follow the instructions on the screen.
Or you can use command like this:
& 'C:\Program Files\Java\jdk-xx\bin\java.exe' '-XX:+ShowCodeDetailsInExceptionMessages' '-cp' '<YourDrive:\>AutorunUSB\javva\usbautorun\target\classes' 'dev.xnuvers007.usbautorun.USBAutorunCreator'
Change xx with your Version Java and change YourDrive:\ with your location path download this repository
Batch
You can also use it on Batch/CMD/Powershell. Just follow the steps below:
- Navigate to the
batch
directory:cd batch
- Run the script:
cmd /c main.bat
cmd .\batch\main.cmd
powershell .\batch\main.ps1
- Follow the instructions on the screen.
You can also use the following command to run the script:
& 'C:\Windows\System32\cmd.exe' '/c' 'main.bat'
you can Double click the main.bat/main.cmd/main.ps1 file to run the script
Contributions are welcome! Please fork the repository and submit a pull request with your changes.
This project is licensed under the MIT License. See the LICENSE file for details.
For any questions or suggestions, please open an issue on GitHub or contact the project maintainer at my Email.
- This project is for educational purposes only. Do not use it for malicious purposes.
- Use it at your own risk. The author is not responsible for any damage caused by this project.
- This project is still in development and may contain bugs or errors. Use it with caution.
- If you have any issues or problems with this project, please open an issue on GitHub.
- If you have any improvements or suggestions for this project, please submit a pull request.