Hack Forums
Creating Autorun Command for USB Drives - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45)
+--- Forum: Grayhat • Purple Team • Hybrid Security (https://hackforums.net/forumdisplay.php?fid=449)
+---- Forum: Beginner Hacking (https://hackforums.net/forumdisplay.php?fid=4)
+----- Forum: Hacking Tutorials (https://hackforums.net/forumdisplay.php?fid=47)
+----- Thread: Creating Autorun Command for USB Drives (/showthread.php?tid=6212488)



Creating Autorun Command for USB Drives - Isolate - Jul 7, 2022

if you want to autorun programs via "USB Stick" the best way is this way. 

create a simple Erase C: code and save it as .bat make it autorun.

Step 1

Open notepad and write

Code
Run "Notepad"
Type in: [Autorun] Open=MyApp.exe. Action=Start MyApp. Label=My Portable PC. Icon=MyApp.exe.
Save the file as autorun.inf in the root of the USB flash drive


Step 2.

Put this ‘autorun.inf’ and your actual .exe virus "hex.exe" in the USB Drive.

When you plug in the USB drive, the autorun.inf will launch anything.exe and commands in .exe file virus would execute.

You can also do it for files other than .EXE


Enjoy 😈


Btw
Will only work for older versions for windows.