0

People keep saying never put a random USB in your device because it could ruin it with a virus. Hackers are able to program USBs to automatically run a virus when it is put in a device. So I decided to search how to program a USB to auto run a file. It said to use autorun.inf so I tested out autorun.inf and found out that it no longer works because laptops are no longer always checking for batch files. So it seemed like the only method to do this was patched, yet we are still warned about using random USBs. So how do hackers program USBs to auto run a file.

schroeder
  • 129,372
  • 55
  • 299
  • 340
  • @ThoriumBR No, I am asking how they program it to autorun. – Donald Trump Apr 30 '20 at 19:46
  • Actually it does. It's the firmware. The answers walk you through this. You will want to look at BadUSB for one specific implementation. – schroeder Apr 30 '20 at 19:58
  • User plugs in unknown, mysterious USB stick. 2. User sees an attracting file on it. What fraction of users do you think will double click on it? There is your autorun scheme.
  • – Tony Apr 30 '20 at 20:12