Hack Forums
Is there any way to make a particular script run automatically when you insert a disk - 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)
+---- Thread: Is there any way to make a particular script run automatically when you insert a disk (/showthread.php?tid=6137330)



Is there any way to make a particular script run automatically when you insert a disk - CactusRainbow12 - Jan 31, 2021

Is there any way to make a particular script run automatically when you insert a disk on key into your computer? Sorry for the bad English and thanks for the helpers in advance.


RE: Is there any way to make a particular script run automatically when you insert a disk - rbldz - Jan 31, 2021

Generally, not anymore (if we're talking about windows)


RE: Is there any way to make a particular script run automatically when you insert a disk - Shadow_Cloud - Jan 31, 2021

(Jan 31, 2021 04:40 PM)rbldz Wrote:  Generally, not anymore (if we're talking about windows)

Yeah its been locked down quite a bit from an autorun perspective, however, you could install a listener on the device that will react to future disks being inserted.

I've had to build this for a server before, once the service is installed, it downloads a dictionary of instructions based on disk info. This was used to deploy software automatically (if the guys insert the disk with a setup.exe in root that matches the hash, we xcopy that to c:/temp and run a command line silent install and return the exit code in a popup so the tech guys can move on to the next machine)