Hi,
i'm working on my thesis and as a project i want to demonstrate some HID attacks. Some of the attacks need the teensy to be both keyboard and USB Mass storage, i have the SD card Adapter soldered. The problem i'm, having is that on the windows 7 the Generic USB Mass Storage is taking too much time to be recognized and mounted. At first i had a teensy 2.0 that i think at first was mounted below 10 seconds, then it slowly gone to 50 seconds and then it bricked (it was a ebay clone, lesson learned!), now i have purchased a official teensy 2.0++ and i'm seeing the same thing, the usb mass storage mounting time is not consistent.
To summarize i want to reliably have the mass storage as soonest possible from when i plug the teensy
So what i'm asking is:
a) Is the mounting time supposed to vary on each use?
b) I read somewhere about windows caching the usb devices, is that a thing? can i delete something to make it faster to mount?
c) can i edit some .h files to speed things or optimize the process?
d) Will it help if a change vendor,product id?
e) can set a "priority" and tell teensy to run the code after is been recognized as Mass Storage.
Most of the attacks execute scripts and save the output on the teensy Mass Storage, so sometimes i have to wait more than a minute to complete.
Tested on 3 win7 machines.
Note: If i put a delay somewhere(top,bottom) in the setup() it usually affects the mounting time.
Details:
Teensy 2.0 ++
SD card adapter
Samsung Evo 16gb HC U1
Arduino 1.0.6
Teensyduino 134
i'm working on my thesis and as a project i want to demonstrate some HID attacks. Some of the attacks need the teensy to be both keyboard and USB Mass storage, i have the SD card Adapter soldered. The problem i'm, having is that on the windows 7 the Generic USB Mass Storage is taking too much time to be recognized and mounted. At first i had a teensy 2.0 that i think at first was mounted below 10 seconds, then it slowly gone to 50 seconds and then it bricked (it was a ebay clone, lesson learned!), now i have purchased a official teensy 2.0++ and i'm seeing the same thing, the usb mass storage mounting time is not consistent.
To summarize i want to reliably have the mass storage as soonest possible from when i plug the teensy
So what i'm asking is:
a) Is the mounting time supposed to vary on each use?
b) I read somewhere about windows caching the usb devices, is that a thing? can i delete something to make it faster to mount?
c) can i edit some .h files to speed things or optimize the process?
d) Will it help if a change vendor,product id?
e) can set a "priority" and tell teensy to run the code after is been recognized as Mass Storage.
Most of the attacks execute scripts and save the output on the teensy Mass Storage, so sometimes i have to wait more than a minute to complete.
Tested on 3 win7 machines.
Note: If i put a delay somewhere(top,bottom) in the setup() it usually affects the mounting time.
Details:
Teensy 2.0 ++
SD card adapter
Samsung Evo 16gb HC U1
Arduino 1.0.6
Teensyduino 134
Last edited: