brandonlw / Psychson

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

Firmware, which work only one time. #133

Open ghost opened 8 years ago

ghost commented 8 years ago

Hey, Is possible to do firmware, which work only one time? Something like that: if(read_flash_at(FLAG_ADDR) == 0) then send_keys(); write_flash_at(FLAG_ADDR, 1); end

What should I know to do it?

Will be nice if I get answer from person, who is practitioner, not theoretician :-) Regards