brandonlw / Psychson

Phison 2251-03 (2303) Custom Firmware & Existing Firmware Patches (BadUSB)
MIT License
4.11k stars 1.28k forks source link

"Unidentified Device" in Windows 7 for HID #46

Open jeroen-80 opened 9 years ago

jeroen-80 commented 9 years ago

Hi,

Windows 7 x64 reports an "Unidentified Device" when I tried to run the HID example. I'm connecting to an USB 2.0 port. Steps I've followed:

1 - compiled /firmware/bin/fw.bin. 2 - created keys.txt:

  GUI r
  DELAY 50
  STRING notepad.exe
  ENTER
  DELAY 100
  STRING Hello World!

3 - java -jar encoder.jar -i keys.txt -o inject.bin

  Hak5 Duck Encoder 2.6.3
  Loading File .....              [ OK ]
  Loading Keyboard File .....     [ OK ]
  Loading Language File .....     [ OK ]
  Loading DuckyScript .....       [ OK ]
  DuckyScript Complete.....       [ OK ]

4- copy fw.bin (step 1) to hid.bin and embed inject.bin, EmbedPayload.exe inject.bin hid.bin:

  File updated.

5 - flash the updated hid.bin to the USB stick:

  C:\tmp>tools\DriveCom.exe /drive=D /action=SendFirmware /burner=BN03V104M.BIN /firmware=hid.bin
  Action specified: SendFirmware
  Gathering information...
  Reported chip type: 2303
  Reported chip ID: 98-DE-92-72-14-14
  Reported firmware version: 1.01.10
  Mode: BootMode
  Rebooting...
  Sending firmware...
  Executing...
  Mode: Firmware

  C:\tmp>tools\DriveCom.exe /drive=D /action=GetInfo
  Action specified: GetInfo
  Gathering information...
  Reported chip type: 2303
  Reported chip ID: 98-DE-98-92-72-D7
  Reported firmware version: 0.99.53
  Mode: Firmware

5 - remove and plugin the USB stick, waiting for a notepad, magically typing Hello World!

However, instead of a notepad, a new hardware found windows pops up, telling me that an "Unidentified Device" is found. The result after looking for a driver: "No driver found". So no HID and no notepad :(

I've tried sending hid.bin with all burner images (BN03V1*.BIN). In some cases the uploading fails. In all successful cases the "Unidentified Device" is found.

Am I doing something wrong? Any clues about what the problem is? Thanks! unidentified

llamasoft commented 9 years ago

What USB drive are you using? At least one device is using the correct 2303 chip but isn't compatible.

jeroen-80 commented 9 years ago

I'm using two - physically completely different - noname 8 GB devices: no 1:

  Reported chip type: 2303
  Reported chip ID: 98-DE-98-92-72-D7
  Reported firmware version: 1.10.53
  Mode: Firmware

no 2:

  Reported chip type: 2303
  Reported chip ID: 98-DE-84-93-72-D7
  Reported firmware version: 1.09.10
  Mode: Firmware

I opened up no 1, which contains a Phison PS2251-03. Pictures are attached. dsc00296 dsc00297

x64x6a commented 9 years ago

I was having similar problems as you, and I plugged the usb into a usb 2.0 slot and then it worked. Maybe that will work for you aswell?