Emulate Removing and Connecting a USB Flash Drive in Windows

I forgot my WD Passport Ultra hard drive encryption password and I have Delphi software programmed to find that password using brute force. The original WD Security software will be used to enter the password, but the WD Security software will be blocked every 5 invalid password entries. Then the drive must be physically removed and connected to reset this counter.

Therefore, programmable software must emulate the safe removal and connection of an external USB hard drive on Windows at the software level, as it is necessary to reset the incorrect password counter of the WD Security software.

Disabling / enabling a drive using "devcon" does not reset the counter.

Finding where to store this counter information will be very helpful. When the counter is 4, safely removing the disk and connecting to another computer resets the counter. This made me guess that the counter is stored on a USB drive and reset using the drive firmware when connected.

Any ideas are welcome.

+4
source share
1 answer

http://www.uwe-sieber.de/drivetools.html , USB-, . , . , , :

  • RemoveDrive:
  • DriveCleanup: usb . , Windows . . , , WD Security , (, , ).
  • RestartSrDev: , , , . ( ), USB, , . . , reset , , . , .

, , , , , , , .

2 3 .

.

+1

Source: https://habr.com/ru/post/1651677/


All Articles