brandonlw / Psychson

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

EmbedPayload not working? #26

Open grigor108 opened 10 years ago

grigor108 commented 10 years ago

Hi, I generated a RubberDucky script via http://www.ducktoolkit.com and downloaded the .bin file. I embedded it on to custom firmware and... nothing. After sendng it to ducky the drive is not doscovered and no matter what's in the script NOTHING gets executed. (embedding and sending firmware both ended "successfully" or so was written in console). Another thing: why is my firmware file exactly the same size after injecting payload? Payload is 9KB in my case so shouldn't it increase size of my fw.bin?

brandonlw commented 10 years ago

What USB port did you try it on, 2.0 or 3.0? There have been reports of it not behaving correctly on a 3.0 port.

No, the BIN will not increase in size -- it is padded to the maximum allowed size, and the payload is embedded within the existing data.